/* ==================================================
   BASE & ELEMENTOR WIDGET
   ================================================== */
.elementor-widget-woocommerce-checkout-page,
.elementor-widget-woocommerce-cart .woocommerce {
    font-family: inherit !important;
}

.woocommerce {
    --wc-form-border-color: #e5e5e5;
    --forms-fields-normal-color: #444444;
    --sections-radio-buttons-color: #444;
}

.woocommerce-notices-wrapper {
    border-top: 0 !important;
}

.woocommerce-additional-fields {
    border: 0 !important;
}

.e-checkout__order_review {
    border: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

ins {
    text-decoration: none;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    height: 1px;
    width: 1px;
}

/* ==================================================
   FORMS
   ================================================== */
.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select,
.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container .select2-dropdown,
.select2-container .select2-selection,
.woocommerce form p.form-row > .woocommerce-input-wrapper > strong,
.woocommerce form p.form-row input[type="email"],
.woocommerce form p.form-row input[type="password"],
.woocommerce form p.form-row input[type="tel"],
.woocommerce form p.form-row input[type="text"],
.woocommerce form p.form-row select,
.woocommerce form p.form-row textarea {
    border-color: #e5e5e5;
    padding: 15px !important;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
    border: 1px solid var(--wc-red) !important;
}

.elementor-widget-woocommerce-checkout-page .select2-container--default .select2-selection--single {
    height: auto !important;
}

#ship-to-different-address {
    font-size: 1.2em;
}

#ship-to-different-address label {
    color: #7C6992 !important;
}

#ship-to-different-address label,
.woocommerce-page form .form-row.create-account label.checkbox,
.woocommerce-page form .form-row label.checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ==================================================
   CUSTOM CHECKBOXES & RADIO BUTTONS
   ================================================== */
.woocommerce ul#shipping_method li input,
li.wc_payment_method input,
#ship-to-different-address-checkbox,
#kl_newsletter_checkbox,
#createaccount {
    display: flex;
    grid-area: radio;
}

input[type="radio"].shipping_method,
.wc_payment_method input[type="radio"],
#ship-to-different-address-checkbox,
#createaccount,
#kl_newsletter_checkbox,
#kl_sms_consent_checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    position: relative;
    width: 1.4em;
    height: 1.4em;
    border: 1px solid #4141417A;
    overflow: visible;
    border-radius: 3px;
    cursor: pointer;
    padding: 0.3em 0.4em;
    margin: 0;
    font-size: inherit;
}

input[type="radio"].shipping_method::before,
.wc_payment_method input[type="radio"]::before,
#ship-to-different-address-checkbox::before,
#createaccount:before,
#kl_newsletter_checkbox::before,
#kl_sms_consent_checkbox::before {
    content: "\2713";
    font-size: 120%;
    color: #455A64;
    position: absolute;
    top: -4px;
    right: 2px;
    bottom: 2px;
    left: 2px;
    background-color: transparent;
    border-radius: 2px;
    -webkit-transform: scale(0);
    transform: scale(0);
    -webkit-transition: -webkit-transform 0.25s ease-in-out;
    transition: transform 0.25s ease-in-out;
}

input[type="radio"].shipping_method:checked::before,
.wc_payment_method input[type="radio"]:checked::before,
#ship-to-different-address-checkbox:checked::before,
#createaccount:checked::before,
#kl_newsletter_checkbox:checked::before,
#kl_sms_consent_checkbox:checked::before {
    -webkit-transform: scale(1);
    transform: scale(1);
    border-color: #726897;
    color: #726897;
    border-width: 2px !important;
    font-weight: 600;
}

#add_payment_method #payment ul.payment_methods li input,
.woocommerce-cart #payment ul.payment_methods li input,
.woocommerce-checkout #payment ul.payment_methods li input {
    margin-right: 0;
}

/* ==================================================
   SHIPPING METHODS
   ================================================== */
.woocommerce-shipping-methods {
    list-style: none;
    margin: 25px 0 0 0 !important;
    padding: 0;
}

.woocommerce-shipping-methods li,
li.wc_payment_method {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 3px;
    transition: all 0.3s ease;
    background: #fff;
    align-items: start;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "radio label"
        "radio description";
    column-gap: 15px;
    row-gap: 5px;
}

li.wc_payment_method {
    background-color: transparent;
    margin: 20px 0;
    padding: 20px 0 !important;
    align-items: center;
}

.payment_box {
    grid-column: span 2;
}

.woocommerce-shipping-methods li:hover {
    border-color: #ddd;
    background: #fff;
}

.woocommerce-shipping-methods li:has(input:checked) {
    border-color: #726897;
    background: #f4f4f4;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.1);
}

.woocommerce-shipping-methods label,
.wc_payment_method label {
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 5px;
    grid-area: label;
    display: flex !important;
    line-height: 1.5em;
}

.woocommerce-shipping-methods label {
    align-items: start !important;
}

.wc_payment_method label {
    font-weight: 600;
}

.woocommerce-shipping-methods .woocommerce-Price-amount {
    font-weight: 600;
    color: #444;
}

.shipping-method-description {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    font-weight: 400;
}

.woocommerce-shipping-methods input[type="radio"]:checked + label {
    color: #0073aa;
}

.woocommerce-shipping-methods input[type="radio"]:focus {
    outline: 2px solid #f4f4f4;
    outline-offset: 2px;
}

/* ==================================================
   PAYMENT
   ================================================== */
.payment {
    border-radius: 4px;
}

/* ==================================================
   CART TABLE
   ================================================== */
.shop_table .cart-subtotal td,
.shop_table .woocommerce-shipping-totals.shipping td {
    padding-left: 0 !important;
}

.shop_table.cart,
.shop_table.cart tbody,
.shop_table.cart tbody td {
    display: block !important;
}

.shop_table.cart thead {
    display: none;
}

.elementor-widget-woocommerce-cart .woocommerce table.cart td {
    border-top: 0 !important;
}

.elementor-widget-woocommerce-cart .woocommerce table.cart td span {
    font-size: 16px !important;
}

.elementor-widget-woocommerce-cart .e-cart-section {
    padding: 0;
}

.elementor-widget-woocommerce-cart .woocommerce .coupon-col-start {
    padding-inline-end: 0 !important;
}

.elementor-widget-woocommerce-cart .woocommerce button.button.e-apply-coupon {
    border-radius: 0 3px 3px 0;
    font-weight: 400 !important;
}

.cart-item,
.shop_table.cart tbody tr {
    display: grid;
    grid-template-columns: auto 200px 1fr auto auto auto;
    grid-template-areas: "thumbnail name price quantity subtotal remove";
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef !important;
}

.elementor-widget-woocommerce-cart .woocommerce table.cart tr {
    border-top: 0 !important;
}

.product-remove {
    grid-area: remove;
}

.product-remove .remove,
.elementor-widget-woocommerce-cart .woocommerce .shop_table .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--links-normal-color) !important;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    font-size: 2.3em;
}

.shop_table .remove:focus {
    outline: none !important;
}

.product-remove .remove:hover {
    color: #c82333;
}

.product-thumbnail {
    grid-area: thumbnail;
}

.product-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    max-width: 100px;
}

.product-name {
    grid-area: name;
}

.product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
}

.product-name a:hover {
    color: #007cba;
    text-decoration: underline;
}

.product-price {
    grid-area: price;
    font-weight: 600;
    color: #333;
}

.product-quantity {
    grid-area: quantity;
}

.quantity input {
    width: 70px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.product-subtotal {
    grid-area: subtotal;
    font-weight: 700;
    color: #333;
    font-size: 1.1em;
}

/* ==================================================
   CHECKOUT CART ITEM (ORDER REVIEW)
   ================================================== */
.cart_item,
.cart-subtotal {
    display: flex;
    padding: 8px;
    font-size: 16px;
    color: #444;
    gap: 6px;
}

.cart_item {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "thumbnail name total"
        "thumbnail qty total";
    gap: 8px 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.product-thumbnail-container {
    grid-area: thumbnail;
    width: auto;
}

.checkout-product-thumbnail {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
    border-radius: 4px !important;
    border: 1px solid #eee !important;
    flex-shrink: 0;
    max-width: 100px !important;
    display: block;
}

.product-name-container {
    grid-area: name;
    min-width: 0;
}

.product-name-link {
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-qty {
    grid-area: qty;
    font-size: 0.9em;
}

.product-total,
.product-subtotal,
.order-total-price {
    grid-area: total;
    font-weight: 600;
    white-space: nowrap;
    align-self: center;
    text-align: right;
}

.product-info {
    line-height: 1.4;
}

/* ==================================================
   VARIATION
   ================================================== */
.variation {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    margin: 0;
    font-size: 0.85em;
    color: #666;
}

.variation dt {
    font-weight: 600;
    margin: 0;
}

.variation dd {
    margin: 0;
}

.variation dd p {
    margin: 0;
}

/* ==================================================
   COUPON
   ================================================== */
.coupon.e-cart-section.shop_table {
    padding: 10px;
    border: 0;
}

.coupon.e-cart-section.shop_table input#coupon_code {
    background-color: #f9fafa;
    border: 2px solid #ccc;
    color: var(--forms-fields-normal-color, #69727d);
    font-size: 14px;
    font-weight: 400 !important;
    border-radius: 3px 0 0 3px;
    padding: 11px 15px;
}

/* ==================================================
   TOTALS & PRICING
   ================================================== */
.cart-subtotal {
    font-weight: 600;
}

.cart-subtotal td:before,
.order-total td:before {
    text-transform: uppercase !important;
}

.cart-subtotal span,
.order-total span {
    font-size: 18px !important;
}

.product-subtotal span,
.awdr-you-saved-text,
.awdr-you-saved-text span {
    font-weight: 600 !important;
}

.awdr-you-saved-text,
.awdr-you-saved-text span,
.cart-savings .woocommerce-Price-amount {
    color: #726897 !important;
}

.awdr_free_product_text {
    background-color: #B3D0EA !important;
}

.awdr-you-saved-text.awdr-you-saved-cart-total,
#you-saved-total-row,
.cart-discount,
.woocommerce-checkout-review-order-table .woocommerce-Price-amount {
    text-align: right;
}

#you-saved-total-row {
    font-weight: 600;
}

.order-total {
    font-size: 1.2em;
    padding: 15px;
    color: #726897 !important;
    font-weight: 400;
    display: flex;
    border: 1px solid #726897;
    background: #f4f4f4;
    border-radius: 3px;
    white-space: nowrap;
    text-align: right;
}

.order-total bdi {
    font-weight: 600;
    color: #444;
}

.includes_tax {
    display: block;
    font-weight: 400;
    color: #666;
    font-size: 0.85em;
}

.e-shop-table {
    padding: 10px;
}

/* ==================================================
   CHECKOUT REVIEW ORDER TABLE
   ================================================== */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table .cart_item {
    border-bottom: 1px solid #eee;
}

.woocommerce-checkout-review-order-table .cart_item td {
    padding: 15px 10px;
    vertical-align: top;
}

.elementor-widget-woocommerce-checkout-page .woocommerce .shop_table tbody td,
.elementor-widget-woocommerce-checkout-page .woocommerce .shop_table tfoot td,
.elementor-widget-woocommerce-checkout-page .woocommerce .shop_table tfoot th {
    color: #444 !important;
    padding: 0;
}

#order_review_heading {
    margin-bottom: 15px;
}

.mi-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #726897;
    color: #fff;
    padding: 6px 12px;
    border-radius: 3px;
}

.mi-head-row .product-name,
.mi-head-row .product-total {
    grid-area: unset;
    font-weight: 600;
    color: #fff;
}

/* ==================================================
   POINTS SIGN UP
   ================================================== */
.wlr-signup-message {
    background-color: #b3d0ea;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    display: block;
}

.wlr-signup-message p {
    margin: 0 !important;
    font-size: .875em;
    text-align: center;
    line-height: 1.1em;
}

.wlr-signup-message br {
    display: none !important;
}

/* ==================================================
   THANK YOU PAGE
   ================================================== */
.woocommerce-table__product-name {
    width: 100%;
}

.woocommerce-table__product-total,
.woocommerce-table td:nth-child(2) {
    text-align: right;
}

.shipped_via {
    display: block;
    color: #666;
    font-style: italic;
}

.woocommerce-order-details__title,
.woocommerce-column__title {
    font-size: 1.8em;
}

.woocommerce-button,
.wc_pip_view_invoice {
    color: #fff !important;
    background-color: var(--e-global-color-primary);
}

/* ==================================================
   ORDER DETAILS TABLE
   ================================================== */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    overflow: hidden;
}

.woocommerce-table--order-details thead {
    display: none;
}

.woocommerce-table--order-details,
.woocommerce-table--order-details tbody,
.woocommerce-table--order-details tfoot,
.woocommerce-table--order-details tr,
.woocommerce-table--order-details td,
.woocommerce-table--order-details th {
    display: block;
}

.woocommerce-table--order-details tr {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.woocommerce-table--order-details tbody tr {
    position: relative;
    display: flex;
    gap: 15px;
}

.woocommerce-table--order-details td,
.woocommerce-table--order-details th {
    padding: 8px 0;
    border: none;
    text-align: left;
}

.woocommerce-table--order-details tfoot tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px !important;
    margin-bottom: 2px;
    background: #fff;
}

.woocommerce-table--order-details tfoot tr:nth-child(3) {
    font-weight: 600;
    font-size: 1.2em;
    background-color: #f4f4f4;
}

.woocommerce-table--order-details tfoot th {
    font-weight: 600;
    margin: 0;
    padding: 0 0 0 10px !important;
}

.woocommerce-table--order-details tfoot td {
    margin: 0;
    padding: 0 0 0 10px !important;
    text-align: right;
}

.order-item-with-image,
.woocommerce-table__product-name {
    display: flex !important;
    gap: 10px;
}

.order-item-image {
    width: 35%;
}

.order-item-thumbnail {
    max-width: 100%;
}

/* ==================================================
   MOBILE ORDER SUMMARY DROPDOWN
   ================================================== */
.mobile-order-toggle {
    display: none;
    padding: 15px 20px;
    background: #726897;
    border: 1px solid #726897;
    cursor: pointer;
    user-select: none;
    position: relative;
    border-radius: 3px;
    color: #fff;
}

.mobile-order-toggle .toggle-text {
    font-weight: 400;
}

.mobile-order-toggle .toggle-total {
    font-weight: 600;
    margin-left: 10px;
}

.mobile-order-toggle .dropdown-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #fff;
}

.mobile-order-toggle.expanded .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-order-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.mobile-order-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.mobile-order-content.expanded {
    max-height: 1000px;
    opacity: 1;
}

/* ==================================================
   RESPONSIVE - 1100px
   ================================================== */
@media (max-width: 1100px) {
    .cart-item,
    .shop_table.cart tbody tr {
        grid-template-columns: 80px 1fr auto;
        grid-template-areas:
            "thumbnail name remove"
            "price quantity subtotal";
        gap: 10px;
    }

    .woocommerce table.shop_table_responsive tr td::before,
    .woocommerce-page table.shop_table_responsive tr td::before {
        content: "";
    }

    .elementor-widget-woocommerce-cart .woocommerce table.cart tr {
        border-top: 0 !important;
    }
}

/* ==================================================
   RESPONSIVE - 769px
   ================================================== */
@media (max-width: 769px) {
    .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
        padding: 10px;
    }

    .wp-block-woocommerce-checkout {
        padding-top: 0 !important;
    }

    .alignwide {
        margin-inline: 0 !important;
    }

    .is-small table.wc-block-cart-items .wc-block-cart-items__row {
        grid-template-columns: 120px 150px !important;
    }

    .wc-block-cart-item__quantity {
        align-self: start !important;
    }

    .wc-block-cart-item__remove-link {
        justify-content: start !important;
    }

    .wc-block-cart-item__wrap {
        display: flex;
        flex-direction: column;
    }

    .wp-block-woocommerce-checkout-order-summary-block {
        margin: -10px;
    }

    .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
        padding: 20px;
    }
}

/* ==================================================
   RESPONSIVE - 768px
   ================================================== */
@media (max-width: 768px) {
    .col-1 {
        padding: 5px !important;
    }

    .woocommerce-additional-fields,
    .e-woocommerce-login-section {
        --sections-padding: 0;
        padding: 5px !important;
        margin: 0 !important;
    }

    .checkout-product-thumbnail {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
    }

    .woocommerce-shipping-methods label {
        align-items: flex-start;
        gap: 5px;
    }

    .shipping-method-description {
        margin-left: 0;
        font-size: 0.85em;
    }

    .woocommerce-checkout-review-order-table {
        font-size: 0.9em;
    }

    .elementor-widget-woocommerce-checkout-page {
        padding: 15px;
    }

    .woocommerce-order-overview,
    .wc-bacs-bank-details {
        padding-left: 0;
    }

    .woocommerce ul.order_details li {
        margin-bottom: 10px;
    }
}

/* ==================================================
   RESPONSIVE - 767px (Mobile Order Dropdown)
   ================================================== */
@media (max-width: 767px) {
    .mi-order-summary {
        display: none;
    }

    .e-checkout__container {
        gap: 0 !important;
    }

    .mobile-order-toggle {
        display: block;
    }

    #order_review_heading {
        display: none;
    }

    .mobile-order-content.collapsed {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }

    .mobile-order-content {
        margin-bottom: 20px;
    }

    .mobile-order-content.expanded {
        max-height: 1000px;
        opacity: 1;
        overflow: visible;
        border-radius: 0 0 4px 4px;
        border: 1px solid #726897;
        border-top: 0;
    }

    .mobile-order-toggle.expanded {
        border-radius: 4px 4px 0 0;
    }

    .mobile-order-content.expanded .mi-order-summary {
        display: block;
    }

    .mobile-order-content.expanded .mi-head-row {
        display: none;
    }
}

/* ==================================================
   RESPONSIVE - 480px
   ================================================== */
@media (max-width: 480px) {
    .elementor-widget-woocommerce-cart .e-cart-section {
        padding: 20px 10px !important;
    }

    .cart-item,
    .shop_table.cart tbody tr {
        grid-template-columns: 80px auto 1fr;
        grid-template-areas:
            "thumbnail name name"
            "thumbnail price ."
            "quantity subtotal remove";
        padding: 10px !important;
        align-items: start;
    }

    .woocommerce table.shop_table_responsive tr td {
        padding: 0 !important;
    }

    .woocommerce table.shop_table_responsive tr td.product-quantity:before,
    .woocommerce table.shop_table_responsive tr td.product-subtotal:before {
        content: attr(data-title) ": ";
        display: block;
        font-weight: bold;
        font-size: 0.9em;
        color: #333 !important;
        margin-bottom: 5px;
        float: none !important;
    }

    .product-name {
        padding-bottom: 0 !important;
    }

    .product-price {
        padding-top: 0 !important;
    }

    .woocommerce table.shop_table_responsive tr td.product-subtotal {
        padding-left: 20px !important;
    }

    .woocommerce table.shop_table_responsive tr td.product-name,
    .woocommerce table.shop_table_responsive tr td.product-price {
        text-align: left !important;
    }

    .elementor-widget-woocommerce-cart .woocommerce .input-text.qty {
        padding: 10px 0 10px 10px !important;
    }

    .elementor-widget-woocommerce-cart .woocommerce .coupon-col {
        display: flex !important;
    }

    .woocommerce-table--order-details tbody tr {
        padding: 20px;
    }

    .woocommerce-table--order-details .product-name {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

    .woocommerce-table--order-details .product-name a {
        display: block;
        line-height: 1.4;
        margin-bottom: 5px;
    }

    .woocommerce-table--order-details .product-quantity {
        display: block;
        margin-left: 0;
        color: #666;
        font-size: 0.9em;
    }

    .woocommerce-table--order-details .product-total {
        font-size: 1.1em;
        font-weight: 600;
        color: #333;
    }

    .woocommerce-table--order-details tfoot tr {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .woocommerce-table--order-details tfoot td {
        text-align: left;
        width: 100%;
    }

    .woocommerce-column--shipping-address {
        margin-top: 20px;
    }
}

/* ==================================================
   DESKTOP ONLY
   ================================================== */
@media (min-width: 768px) {
    .mobile-order-toggle,
    .mobile-order-content {
        display: none !important;
    }

    .mobile-order-content {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    #order_review_heading {
        display: block !important;
    }
}