/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* Polylang Dropdown */
.polylang-dropdown {
	position: relative;
	display: inline-block;
	font-size: 14px;
}
.polylang-dropdown .current-lang {
	display: flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px 14px;
	color: #333;
	/* box-shadow: 0 4px 10px rgba(0,0,0,0.1); */
}
.polylang-dropdown .current-lang img {
	width: 20px;
	height: auto;
}
.polylang-dropdown .lang-list {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 160px;
	background: #fff;
	list-style: none;
	padding: 0;
	margin: 0;
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
	z-index: 9999;
	/* Standardmäßig versteckt */
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* Dropdown bei Hover anzeigen */
.polylang-dropdown:hover .lang-list {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.polylang-dropdown .lang-list li a {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #242424;
	text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    line-height: 2;
	padding: 6px 14px;
}
.polylang-dropdown .lang-list li a:hover {
	background: rgba(0,0,0,0.05);
}
.polylang-dropdown .lang-list img {
	width: 20px;
	height: auto;
}
.polylang-dropdown .lang-list[hidden] {
	display: block !important;
}

/* Mobile tweaks */
@media (max-width: 768px) {
	.polylang-dropdown .lang-list {
		min-width: 140px;
	}
}
.whb-color-light .polylang-dropdown .current-lang {
	color: white;
}
.overflow-hidden .elementor-widget-container {
	overflow: hidden;
}




.cart-content-wrapper .woocommerce-info,
.cart-content-wrapper .woocommerce-notice,
.cart-content-wrapper .woocommerce-message {
    flex-basis: 100%;
    margin-bottom: 0;
}



.wd-nav-header a:hover:after { 
    width: 90%;
    left: 5%;
}

.wd-nav-header a:after {
    background: 0 0;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    background: black;
    transition: width .3s ease 0s, left .3s ease 0s;
    width: 0;
}

.wd-nav-header>li.bold>a {
	font-weight: bold !important;
}


/* Germanized Plugin */

.woocommerce-button {
	border-radius: 10px;
	margin-top: 20px;
}

.woocommerce-form-order-withdrawal-request .form-row {
	margin-bottom: 1rem;
}


/* Checkout Styles */

.wc-gzd-checkbox-placeholder-legal {
	margin-top: 3rem;
}

input[type="radio"],
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
		flex-shrink: 0;
}

input[type="radio"] + label, input[type="checkbox"] + label, .woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
		column-gap: 5px;
}


/* Checkout Steps */
.wd-checkout-steps .step-inactive {
	display: flex !important;
}

.elementor-element-ba52365 {
	margin-bottom: 1rem;
}

.wd-checkout-steps {
    counter-reset: wd-step;
    display: flex;
    align-items: center;
    justify-content: center !important;
    gap: 0;
    padding: 0;
    list-style: none;
	width: 100%;
}
.wd-checkout-steps li {
    counter-increment: wd-step;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    max-width: 220px;
	align-self: flex-start;
}
.wd-checkout-steps li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
}
.wd-checkout-steps li:not(:first-child)::after {
    content: "" !important;
    position: absolute;
    top: 17px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #dcdcdc;
    z-index: 0;
    background-image: none !important;
}
.wd-checkout-steps li::before {
    content: counter(wd-step);
    z-index: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    background: #fff;
    border: 2px solid #dcdcdc;
    color: #9a9a9a;
}
.wd-checkout-steps li.step-active::before {
    background: rgb(98,128,157);
    border-color: rgb(98,128,157);
    color: #fff;
}
.wd-checkout-steps li.step-inactive:has(~ li.step-active)::before {
    content: "\2713";
    background: rgb(98,128,157);
    border-color: rgb(98,128,157);
    color: #fff;
    font-size: 16px;
}
.wd-checkout-steps li.step-active::after,
.wd-checkout-steps li.step-inactive:has(~ li.step-active)::after {
    background: rgb(98,128,157) !important;
}
.wd-checkout-steps li a span,
.wd-checkout-steps li > span {
    font-size: 13px;
    font-weight: 500;
    color: #9a9a9a;
    line-height: 1.3;
    text-align: center;
}
.wd-checkout-steps li.step-active a span,
.wd-checkout-steps li.step-active > span {
    color: #242424;
    font-weight: 700;
}
.wd-checkout-steps li.step-inactive:has(~ li.step-active) a span,
.wd-checkout-steps li.step-inactive:has(~ li.step-active) > span {
    color: #6a6a6a;
}

.wd-checkout-steps li:not(:last-child):after {
	content: "" !important;
}
