/*!
Theme Name: kingdrivewp
Version: 1.0.0
Text Domain: kingdrivewp
*/

.woobewoo-filter-loader {
    background: url('./assets/img/main/logo.png') no-repeat center center / contain !important;
}

.checkout-wrap__form h3,
.woocommerce-order-details,
.woocommerce-customer-details {
    display: none;
}

.modal-wrap__content--cart .item-price del {
    display: none;
}

.header-wrap__right--search {
    position: relative;
}

.woocommerce-shipping-fields {
    margin-top: 40px;
}

.checkout-wrap__form--delivery-np {
    margin-bottom: 40px;
}

ins {
    text-decoration: none;
}

.checkout-inline-error-message {
    color: red;
}

.woocommerce-error a {
    color: #fff;
}

.kd-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.kd-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: #121212;
    border-bottom: 1px solid #f1f1f1;
    transition: background .2s;
}

.kd-search-item:hover {
    background: #f9f9f9;
}

.kd-search-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.kd-search-item span:first-of-type {
    flex: 1;
    font-size: 13px;
    line-height: 1.3;
}

.kd-search-item span:last-of-type {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.shop-wrap__sidebar--categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.shop-wrap__sidebar--categories a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background .2s;
}

.shop-wrap__sidebar--categories a:hover,
.shop-wrap__sidebar--categories a.active {
    background: rgba(255, 255, 255, .15);
}

.kd-load-more-wrap {
    text-align: center;
    margin-top: 30px;
}

.kd-load-more {
    min-width: 200px;
}

.item-content {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.item-content:hover {
    text-decoration: none;
    color: inherit;
}

.shop-wrap__list--top-orderby {
    min-width: 200px;
}

.modal-active {
    display: flex !important;
}

.wpcf7-not-valid-tip {
    font-size: 14px;
    margin-bottom: 5px;
}

.kd-search-none {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: #939393;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.item-wishlist {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}

.item-wishlist:hover {
    transform: scale(1.1);
}

.item-wishlist.active svg path {
    fill: #D82729;
    stroke: #D82729;
}

.wishlist {
    padding: 60px 0;
}

.wishlist-title {
    font-size: 32px;
    margin-bottom: 30px;
}

.wishlist-empty {
    padding: 40px 0;
    text-align: center;
    font-size: 18px;
    color: #939393;
}

.wishlist-loading {
    text-align: center;
    padding: 40px 0;
}

.item-status.out-of-stock {
    color: red !important;
    font-weight: bold;
}

.item-status.out-of-stock::after {
    background-color: red;
}

.product-wrap__content--status.out-of-stock {
    color: red !important;
    font-weight: bold;
}

.product-wrap__content--status.out-of-stock::after {
    background-color: red;
}

.product-wrap__content--actions-favorite {
    cursor: pointer;
    color: #939393;
    transition: color .2s;
}

.product-wrap__content--actions-favorite:hover {
    color: #D82729;
}

.product-wrap__content--actions-favorite.active {
    color: #D82729;
}

.shop-wrap__sidebar--banner-title p {
    margin: 0;
}

.shop-wrap__sidebar--banner-text p {
    margin: 0;
}

.contacts-wrap__flex--content-socials a svg {
    width: 45px;
    height: 45px;
}

@media (max-width: 768px) {
    .checkout-wrap__form--delivery-np .wcus-checkout-np-fields>div>div {
        flex-wrap: wrap;
    }
}

@keyframes kdPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes kdFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kdSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.kd-add-to-cart.kd-adding,
.kd-add-to-cart-single.kd-adding {
    pointer-events: none;
    opacity: .6;
}

.kd-cart-count.kd-bump {
    animation: kdPulse .4s ease;
}

.modal-wrap__content--cart .item.kd-item-updated {
    animation: kdFadeIn .3s ease;
}

.modal-wrap__content--cart .item.kd-item-removing {
    animation: kdSlideOut .3s ease forwards;
}

.kd-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2d2d2d;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    animation: kdFadeIn .3s ease;
    pointer-events: none;
}

.kd-toast.kd-toast-hide {
    animation: kdSlideOut .3s ease forwards;
}

.woocommerce-form-coupon-toggle,
.checkout>.woocommerce-form-coupon {
    display: none !important;
}

.checkout-wrap__sidebar--promo-form .woocommerce-form-coupon-toggle {
    display: none !important;
}

.checkout-wrap__sidebar--promo-form .checkout_coupon {
    display: flex !important;
    gap: 10px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

.checkout-wrap__sidebar--promo-form .checkout_coupon .clear {
    display: none;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-left: 4px solid #D82729 !important;
    color: #fff !important;
    padding: 15px 20px !important;
    margin: 0 0 20px !important;
    list-style: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.woocommerce-error li {
    list-style: none !important;
    color: #fff !important;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    display: none !important;
}

.woocommerce-info {
    border-left-color: #3b82f6 !important;
}

.woocommerce-message {
    border-left-color: #22c55e !important;
}

.woocommerce-NoticeGroup {
    width: 100%;
    margin-bottom: 20px;
}

.woocommerce-terms-and-conditions-wrapper {
    display: none !important;
}

.woocommerce-checkout #payment,
.woocommerce-checkout .woocommerce-checkout-payment {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.woocommerce-checkout #payment .payment_methods {
    padding: 0 !important;
    border: none !important;
    list-style: none !important;
    margin: 0 !important;
}

.woocommerce-checkout #payment .payment_methods li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 8px !important;
    background: transparent !important;
    border: none !important;
}

.woocommerce-checkout #payment .place-order {
    padding: 0 !important;
}

.woocommerce form .form-row {
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce form .form-row label {
    display: block !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100% !important;
}

.woocommerce-checkout .checkout-wrap__sidebar--cart {
    transition: opacity .3s ease;
}

.woocommerce-checkout .checkout-wrap__sidebar--cart.kd-updating {
    opacity: .5;
    pointer-events: none;
}


.blog-pagination {
    margin-top: 40px;
}

.blog-pagination .woocommerce-pagination {
    text-align: center;
}

.checkout-thankyou__success {
    text-align: center;
    padding: 60px 0;
}

.checkout-thankyou__success--icon {
    margin-bottom: 30px;
}

.checkout-thankyou__success--title {
    margin-bottom: 30px;
}

.checkout-thankyou__success--details {
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 30px 40px;
}

.checkout-thankyou__success--details-item {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.checkout-thankyou__success--details-item span {
    opacity: .6;
}

.checkout-thankyou__success--actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.checkout-thankyou__error {
    text-align: center;
    padding: 60px 0;
}

#kd_user_type_field {
    order: 10;
}

.kd-lang-switcher {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 20px;
    overflow: hidden;
    padding: 4px;
}

.kd-lang-switcher a.glink,
.kd-lang-switcher a.nturl {
    padding: 5px 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
    text-decoration: none !important;
    transition: color .2s;
    white-space: nowrap;
}

.kd-lang-switcher a.glink:hover,
.kd-lang-switcher a.nturl:hover {
    color: #fff;
}

.kd-lang-switcher a.glink.gt-current-lang,
.kd-lang-switcher a.nturl.gt-current-lang,
.kd-lang-switcher a.glink.active,
.kd-lang-switcher a.nturl.active {
    color: #fff;
}

.kd-lang-switcher img {
    display: none !important;
}

.goog-te-banner-frame,
.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.checkout-wrap__form--company-field {
    width: 100%;
    margin-bottom: 10px;
}

.kd-currency-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    font-size: 13px;
}

.kd-currency-switcher .kd-currency-current {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kd-currency-switcher .kd-currency-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #2d2d2d;
    border-radius: 6px;
    padding: 6px 0;
    min-width: 120px;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
}

.kd-currency-switcher.active .kd-currency-dropdown {
    display: block;
}

.kd-currency-switcher .kd-currency-dropdown a {
    display: block;
    padding: 6px 14px;
    color: #fff;
}

.checkout-wrap__form--delivery-np {
    width: 100% !important;
    margin-top: 15px !important;
}

.checkout-wrap__form--delivery-np h3 {
    display: none !important;
}

.checkout-wrap__form--delivery-np .wcus-checkout-np-fields>div>div {
    display: flex !important;
    gap: 20px !important;
}

.checkout-wrap__form--delivery-np .wcus-checkout-np-fields>div {
    width: 100%;
}

.zen-ui-select__value {
    height: 53px;
    display: flex;
    align-items: center;
}

.checkout-wrap__form--delivery-np .wcus-checkout-np-fields>div>div>p.form-row {
    width: 100% !important;
}

.checkout-wrap__form--delivery-np .zen-ui-select {
    margin-bottom: 10px;
}

.wcus-checkout-fields {
    display: flex !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.wcus-checkout-fields>p {
    flex: 1 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.wcus-checkout-fields .select2-container {
    width: 100% !important;
}

.comment-row {
    width: 100% !important;
    display: block !important;
    flex: 0 0 100% !important;
    margin-top: 20px !important;
}

.comment-row .form-row {
    width: 100% !important;
    margin: 0 !important;
}

.comment-row textarea {
    width: 100% !important;
    min-height: 100px !important;
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Remove checkout dimming and overlays completely */
.blockOverlay,
.blockUI,
.blockElement {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.processing,
.processing * {
    opacity: 1 !important;
}

form.checkout,
form.checkout .item,
#payment,
#order_review,
.woocommerce-checkout-review-order-table,
.checkout-wrap__sidebar--cart,
.checkout-wrap__sidebar--total,
.checkout-wrap__sidebar--total * {
    opacity: 1 !important;
}

/* Hide optional text globally in checkout labels */
.woocommerce-checkout .optional,
.woocommerce-checkout label .optional,
.comment-row label .optional {
    display: none !important;
}

.checkout-wrap__form--subtitle-second {
    margin-top: 30px !important;
}

/* Checkout Sidebar Total */
.checkout-wrap__sidebar--total-val {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #e31e24 !important;
}

.checkout-wrap__sidebar--promo-toggle {
    cursor: pointer !important;
    user-select: none !important;
}

.checkout-wrap__sidebar--promo-toggle.active svg {
    transform: rotate(180deg) !important;
}

.checkout-wrap__sidebar--total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
}

.checkout-wrap__sidebar--total span:last-child {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #e31e24 !important;
}

#order_comments_field label {
    padding-left: 27px;
    display: block;
    margin-bottom: 9px;
    font-weight: 500;
    color: #fff;
}

.woocommerce-additional-fields textarea {
    height: 145px;
    background: #fff !important;
    resize: none !important;
    color: #000 !important;
}

.custom-input img {
    display: none;
}

.page-default {
    padding: 40px 0 80px;
}

.page-default__title {
    margin-bottom: 30px;
}

.page-default__content {
    max-width: 900px;
}