/* ═══════════════════════════════════════════════════════
   WallDecor – Modern WooCommerce Cart & Checkout
   Block-style look & feel for classic shortcode pages
   ═══════════════════════════════════════════════════════ */

/* ─── Modern Layout Wrapper ─── */
.wd-wc-modern {
    background: #f6f7f7;
    min-height: 60vh;
}

.wd-wc-modern__header {
    background: var(--wd-primary);
    padding: 40px 0 32px;
    text-align: center;
}

.wd-wc-modern__title {
    font-family: var(--wd-font-heading);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -.4px;
}

.wd-wc-modern__subtitle {
    color: rgba(255,255,255,.65);
    font-size: 14px;
    margin: 8px 0 0;
    font-family: var(--wd-font-body);
}

.wd-wc-modern__subtitle i {
    margin-right: 5px;
    font-size: 13px;
}

.wd-wc-modern__body {
    padding: 40px 0 80px;
}

.wd-wc-modern__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════
   NOTICES
   ═══════════════════════════════════════════════════════ */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    border-radius: 8px;
    font-family: var(--wd-font-body);
    font-size: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: none;
    border-left: 4px solid;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    background: #fff;
    list-style: none;
}

.woocommerce .woocommerce-message {
    border-color: #22c55e;
    color: #166534;
}

.woocommerce .woocommerce-info {
    border-color: #3b82f6;
    color: #1e40af;
}

.woocommerce .woocommerce-error {
    border-color: #ef4444;
    color: #991b1b;
}

.woocommerce .woocommerce-error li,
.woocommerce .woocommerce-message li {
    list-style: none;
}

.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-error .button {
    float: right;
    padding: 8px 16px;
    background: transparent;
    border: 1.5px solid currentColor;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: .2s;
}

.woocommerce .woocommerce-message .button:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════
   CART PAGE — Modern Block Style
   ═══════════════════════════════════════════════════════ */

/* Force full-width */
.woocommerce-cart .wd-main { padding: 0; }
.woocommerce-cart .wd-page-content-area { max-width: 100% !important; padding: 0; }
.woocommerce-cart .woocommerce { width: 100%; }

/* ─── Cart Table ─── */
.woocommerce table.shop_table.cart {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    width: 100%;
    margin-bottom: 24px;
}

/* Generic shop_table (also used in cart totals) */
.woocommerce table.shop_table {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

/* Table header */
.woocommerce table.shop_table.cart thead th {
    background: #fff;
    color: #1e1e1e;
    font-family: var(--wd-font-body);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 14px 20px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
}

/* Table cells */
.woocommerce table.shop_table.cart tbody td {
    padding: 20px;
    vertical-align: middle;
    font-family: var(--wd-font-body);
    font-size: 14px;
    color: #1e1e1e;
    border-top: none;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.woocommerce table.shop_table.cart tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce table.shop_table.cart tbody tr:hover td {
    background: #fafafa;
}

/* Product thumbnail */
.woocommerce table.shop_table .product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

/* Product name */
.woocommerce table.shop_table .product-name a {
    color: #1e1e1e;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: .2s;
}

.woocommerce table.shop_table .product-name a:hover {
    color: var(--wd-accent);
}

/* Price */
.woocommerce table.shop_table .product-price .woocommerce-Price-amount,
.woocommerce table.shop_table .product-subtotal .woocommerce-Price-amount {
    font-weight: 600;
    color: #1e1e1e;
    font-size: 14px;
}

/* Quantity */
.woocommerce table.shop_table .quantity .qty {
    width: 64px;
    height: 40px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--wd-font-body);
    color: #1e1e1e;
    outline: none;
    -moz-appearance: textfield;
    transition: .2s;
}

.woocommerce table.shop_table .quantity .qty:focus {
    border-color: var(--wd-accent);
    box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}

/* Remove btn */
.woocommerce table.shop_table .product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    color: #d0d5dd !important;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    transition: .2s;
    line-height: 1;
}

.woocommerce table.shop_table .product-remove a.remove:hover {
    background: #fef2f2;
    color: #ef4444 !important;
}

/* ─── Actions row (coupon + update) ─── */
.woocommerce td.actions {
    padding: 16px 20px !important;
    background: #fff !important;
    border-top: 1px solid #f0f0f0 !important;
}

.woocommerce .coupon {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.woocommerce .coupon label { display: none; }

.woocommerce .coupon #coupon_code {
    width: 200px;
    height: 40px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 14px;
    font-family: var(--wd-font-body);
    font-size: 13px;
    outline: none;
    transition: .2s;
}

.woocommerce .coupon #coupon_code:focus {
    border-color: var(--wd-accent);
    box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}

.woocommerce .coupon .button {
    height: 40px;
    padding: 0 18px;
    background: #1e1e1e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--wd-font-body);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}

.woocommerce .coupon .button:hover { background: #333; }

.woocommerce button[name="update_cart"] {
    height: 40px;
    padding: 0 18px;
    background: transparent;
    color: #1e1e1e;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    font-family: var(--wd-font-body);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
    float: right;
}

.woocommerce button[name="update_cart"]:hover {
    background: #f5f5f5;
    border-color: #1e1e1e;
}

.woocommerce button[name="update_cart"]:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* ─── Cart Totals ─── */
.woocommerce .cart-collaterals {
    width: 100%;
    margin-top: 0;
}

.woocommerce .cart_totals {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    padding: 28px;
    max-width: 420px;
    margin-left: auto;
}

.woocommerce .cart_totals > h2 {
    font-family: var(--wd-font-body);
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: -.2px;
}

.woocommerce .cart_totals table.shop_table {
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    margin-bottom: 16px;
}

.woocommerce .cart_totals table.shop_table thead { display: none; }

.woocommerce .cart_totals table.shop_table th {
    font-weight: 400;
    color: #757575;
    padding: 10px 0;
    font-size: 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce .cart_totals table.shop_table td {
    text-align: right;
    font-weight: 500;
    color: #1e1e1e;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.woocommerce .cart_totals .order-total th {
    font-weight: 600;
    color: #1e1e1e;
    font-size: 15px;
    border-bottom: none;
    padding-top: 14px;
}

.woocommerce .cart_totals .order-total td {
    font-weight: 700;
    font-size: 18px;
    color: #1e1e1e;
    border-bottom: none;
    padding-top: 14px;
}

.woocommerce .cart_totals .order-total .woocommerce-Price-amount {
    color: var(--wd-accent);
}

/* ─── Shipping Calculator in Cart ─── */
.woocommerce .cart_totals .shipping th {
    font-weight: 500;
    color: #1e1e1e;
    vertical-align: top;
    padding-top: 14px;
}

.woocommerce .cart_totals .shipping td {
    text-align: right;
    vertical-align: top;
}

.woocommerce .cart_totals .woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce .cart_totals .woocommerce-shipping-methods li {
    margin-bottom: 6px;
}

.woocommerce .cart_totals .woocommerce-shipping-methods li label {
    font-size: 14px;
    font-weight: 500;
    color: #1e1e1e;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.woocommerce .cart_totals .woocommerce-shipping-methods li input[type="radio"] {
    accent-color: var(--wd-accent);
    width: 15px;
    height: 15px;
}

.woocommerce .cart_totals .shipping-calculator-button {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wd-accent);
    text-decoration: none;
    transition: .2s;
}

.woocommerce .cart_totals .shipping-calculator-button:hover {
    color: var(--wd-accent-hover);
}

.woocommerce .cart_totals .shipping-calculator-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.woocommerce .cart_totals .shipping-calculator-form p {
    margin-bottom: 10px;
}

.woocommerce .cart_totals .shipping-calculator-form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #757575;
    margin-bottom: 4px;
}

.woocommerce .cart_totals .shipping-calculator-form select,
.woocommerce .cart_totals .shipping-calculator-form input.input-text {
    width: 100%;
    height: 40px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 12px;
    font-family: var(--wd-font-body);
    font-size: 13px;
    color: #1e1e1e;
    background: #fff;
    outline: none;
    transition: .2s;
}

.woocommerce .cart_totals .shipping-calculator-form select:focus,
.woocommerce .cart_totals .shipping-calculator-form input.input-text:focus {
    border-color: var(--wd-accent);
    box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}

.woocommerce .cart_totals .shipping-calculator-form .select2-container .select2-selection--single {
    height: 40px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.woocommerce .cart_totals .shipping-calculator-form button.button {
    display: block;
    width: 100%;
    height: 40px;
    background: #1e1e1e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--wd-font-body);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
    margin-top: 4px;
}

.woocommerce .cart_totals .shipping-calculator-form button.button:hover {
    background: #333;
}

.woocommerce .cart_totals .woocommerce-shipping-destination {
    font-size: 12px;
    color: #757575;
    margin-top: 6px;
    line-height: 1.5;
}

/* Proceed to checkout */
.woocommerce .cart_totals .wc-proceed-to-checkout { margin-top: 20px; }

.woocommerce .cart_totals .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--wd-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--wd-font-body);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: .2s;
    letter-spacing: .3px;
}

.woocommerce .cart_totals .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--wd-accent-hover);
    box-shadow: 0 4px 12px rgba(201,168,76,.25);
}

/* Empty cart */
.woocommerce .cart-empty {
    text-align: center;
    padding: 80px 20px;
    font-family: var(--wd-font-body);
    font-size: 16px;
    color: #757575;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.woocommerce .return-to-shop { text-align: center; margin-top: 24px; }

.woocommerce .return-to-shop a {
    display: inline-block;
    padding: 12px 28px;
    background: var(--wd-accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: .2s;
}

.woocommerce .return-to-shop a:hover {
    background: var(--wd-accent-hover);
}

/* ═══════════════════════════════════════════════════════
   CHECKOUT PAGE — Modern Block Style
   ═══════════════════════════════════════════════════════ */

/* Force full-width */
.woocommerce-checkout .wd-main { padding: 0; }
.woocommerce-checkout .wd-page-content-area { max-width: 100% !important; padding: 0; }
.woocommerce-checkout .woocommerce { width: 100%; }

/* ─── Checkout 2-column grid ─── */
.woocommerce form.checkout {
    display: grid;
    grid-template-columns: 1fr 400px;
    grid-template-rows: auto 1fr;
    gap: 32px;
    align-items: start;
    width: 100%;
}

.woocommerce form.checkout .col-1,
.woocommerce form.checkout #customer_details {
    grid-column: 1;
    grid-row: 1 / -1;
}

.woocommerce form.checkout .col-2 {
    grid-column: 2;
    grid-row: 1;
}

/* Hide standalone heading — show it inside the order review card */
.woocommerce form.checkout #order_review_heading {
    display: none;
}

.woocommerce form.checkout #order_review {
    grid-column: 2;
    grid-row: 1 / -1;
}

/* ─── Section Cards ─── */
.woocommerce form.checkout .woocommerce-billing-fields,
.woocommerce form.checkout .woocommerce-shipping-fields,
.woocommerce form.checkout .woocommerce-additional-fields {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    padding: 28px;
    margin-bottom: 20px;
}

/* ─── Section Headings ─── */
.woocommerce form.checkout h3,
.woocommerce-checkout h3#order_review_heading {
    font-family: var(--wd-font-body);
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 20px;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: -.2px;
}

.woocommerce form.checkout .woocommerce-billing-fields h3,
.woocommerce form.checkout .woocommerce-shipping-fields h3 {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

/* ─── Form Fields ─── */
.woocommerce form .form-row { margin-bottom: 14px; }

.woocommerce form .form-row label {
    display: block;
    font-family: var(--wd-font-body);
    font-size: 13px;
    font-weight: 500;
    color: #1e1e1e;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.woocommerce form .form-row label .required {
    color: #ef4444;
    font-weight: 400;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection--single {
    width: 100%;
    height: 44px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 14px;
    font-family: var(--wd-font-body);
    font-size: 14px;
    color: #1e1e1e;
    background: #fff;
    outline: none;
    transition: .2s;
    -webkit-appearance: none;
}

.woocommerce form .form-row textarea {
    height: 90px;
    padding: 10px 14px;
    resize: vertical;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--wd-accent);
    box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}

.woocommerce form .form-row .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 10px;
}

/* Inline fields */
.woocommerce .form-row-first,
.woocommerce .form-row-last { width: 48.5%; }
.woocommerce .form-row-first { float: left; }
.woocommerce .form-row-last  { float: right; }
.woocommerce .form-row-wide  { clear: both; }

/* ─── Order Review (sticky sidebar) ─── */
.woocommerce-checkout #order_review {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    padding: 0;
    position: sticky;
    top: calc(var(--wd-header-height, 80px) + 20px);
    overflow: hidden;
}

.woocommerce form.checkout #order_review::before {
    content: 'Your order';
    display: block;
    font-family: var(--wd-font-body);
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
    padding: 24px 24px 16px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: -.2px;
}

.woocommerce-checkout #order_review table.shop_table {
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
    background: transparent;
    border: none;
}

.woocommerce-checkout #order_review table.shop_table thead th {
    background: #f9fafb;
    color: #757575;
    font-family: var(--wd-font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 10px 24px;
    border-bottom: 1px solid #f0f0f0;
    border-top: none;
}

.woocommerce-checkout #order_review table.shop_table tbody td,
.woocommerce-checkout #order_review table.shop_table tfoot td,
.woocommerce-checkout #order_review table.shop_table tfoot th {
    padding: 14px 24px;
    font-size: 14px;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    border-top: none;
    vertical-align: middle;
}

/* Product row - name cell */
.woocommerce-checkout #order_review table.shop_table td.product-name {
    color: #1e1e1e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
}

/* Product thumbnail */
.woocommerce-checkout #order_review .wd-checkout-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fafafa;
    position: relative;
}

.woocommerce-checkout #order_review .wd-checkout-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product info (name + qty) */
.woocommerce-checkout #order_review .wd-checkout-product-info {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.woocommerce-checkout #order_review .wd-checkout-product-info .product-quantity {
    display: block;
    color: #999;
    font-weight: 400;
    font-size: 12px;
    margin-top: 2px;
}

.woocommerce-checkout #order_review table.shop_table .product-name .product-quantity {
    color: #999;
    font-weight: 400;
}

/* Subtotal cell */
.woocommerce-checkout #order_review table.shop_table td.product-total {
    text-align: right;
    font-weight: 600;
    color: #1e1e1e;
    white-space: nowrap;
}

/* Subtotal / Shipping / Total rows */
.woocommerce-checkout #order_review table.shop_table tfoot th {
    font-weight: 500;
    color: #757575;
    font-size: 14px;
    text-align: left;
}

.woocommerce-checkout #order_review table.shop_table tfoot td {
    text-align: right;
    font-weight: 600;
    color: #1e1e1e;
}

.woocommerce-checkout #order_review .order-total th {
    font-weight: 600 !important;
    color: #1e1e1e !important;
    font-size: 15px !important;
    border-bottom: none !important;
    padding-top: 18px !important;
}

.woocommerce-checkout #order_review .order-total td {
    font-weight: 700 !important;
    font-size: 18px !important;
    border-bottom: none !important;
    padding-top: 18px !important;
}

.woocommerce-checkout #order_review .order-total .woocommerce-Price-amount {
    color: var(--wd-accent);
    font-size: 20px;
}

/* Payment box inside order review */
.woocommerce-checkout #order_review #payment {
    padding: 20px 24px 24px;
    margin-top: 0;
}

/* ─── Payment Methods ─── */
.woocommerce-checkout #payment {
    background: transparent;
    border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 8px;
    transition: .2s;
    cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: #d0d5dd;
}

.woocommerce-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) {
    border-color: var(--wd-accent);
    background: #fffdf5;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
    color: #1e1e1e;
    cursor: pointer;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.woocommerce-checkout #payment ul.payment_methods li label img {
    max-height: 24px;
    width: auto;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    accent-color: var(--wd-accent);
    width: 16px;
    height: 16px;
}

.woocommerce-checkout #payment div.payment_box {
    background: #f9fafb;
    border: none;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 10px;
    font-size: 13px;
    color: #757575;
    line-height: 1.6;
}

.woocommerce-checkout #payment div.payment_box::before { display: none; }

/* PayPal USD estimate */
.wd-paypal-usd-estimate th,
.wd-paypal-usd-estimate td {
    background: #fffdf5 !important;
    color: var(--wd-accent);
}

/* ─── Place Order ─── */
.woocommerce-checkout #payment .place-order {
    padding: 0;
    margin-top: 4px;
}

.woocommerce #place_order {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: var(--wd-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--wd-font-body);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: .2s;
    letter-spacing: .3px;
}

.woocommerce #place_order:hover {
    background: var(--wd-accent-hover);
    box-shadow: 0 4px 12px rgba(201,168,76,.25);
}

/* ─── Terms ─── */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { margin: 14px 0; }

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #757575;
    line-height: 1.5;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    accent-color: var(--wd-accent);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ─── Login / Coupon Toggles ─── */
.woocommerce .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce .woocommerce-form-coupon-toggle .woocommerce-info {
    background: #f9fafb;
    border-left: 4px solid var(--wd-accent);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #1e1e1e;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce .woocommerce-form-coupon-toggle .woocommerce-info::before,
.woocommerce .woocommerce-form-login-toggle .woocommerce-info::before {
    display: none;
}

.woocommerce .woocommerce-form-coupon-toggle .woocommerce-info a,
.woocommerce .woocommerce-form-login-toggle .woocommerce-info a {
    color: var(--wd-accent);
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}

.woocommerce .woocommerce-form-coupon-toggle .woocommerce-info a:hover,
.woocommerce .woocommerce-form-login-toggle .woocommerce-info a:hover {
    color: var(--wd-accent-hover);
    text-decoration: underline;
}

/* ── Coupon & Login forms ── */
/* WooCommerce handles show/hide via inline style + slideToggle. Do NOT set display here. */
.woocommerce form.checkout_coupon,
.woocommerce form.login {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Hide description paragraph */
.woocommerce form.checkout_coupon > p:not(.form-row) {
    display: none;
}

/* Hide WooCommerce .clear div */
.woocommerce form.checkout_coupon .clear {
    display: none;
}

/* Inline layout: input + button side by side */
.woocommerce form.checkout_coupon p.form-row {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

.woocommerce form.checkout_coupon p.form-row-first {
    width: calc(100% - 160px);
    padding-right: 12px;
    box-sizing: border-box;
}

.woocommerce form.checkout_coupon p.form-row-last {
    width: auto;
}

.woocommerce form.checkout_coupon #coupon_code {
    display: block;
    width: 100%;
    height: 44px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 14px;
    font-family: var(--wd-font-body);
    font-size: 14px;
    color: #1e1e1e;
    outline: none;
    transition: .2s;
    background: #fff;
    box-sizing: border-box;
}

.woocommerce form.checkout_coupon #coupon_code:focus {
    border-color: var(--wd-accent);
    box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}

.woocommerce form.checkout_coupon .button {
    height: 44px;
    padding: 0 24px;
    background: var(--wd-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--wd-font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}

.woocommerce form.checkout_coupon .button:hover {
    background: var(--wd-accent-hover);
    box-shadow: 0 2px 8px rgba(201,168,76,.2);
}

/* ═══════════════════════════════════════════════════════
   ADD TO CART NOTIFICATION
   ═══════════════════════════════════════════════════════ */

.wd-cart-notification {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.16);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: top .4s cubic-bezier(.34, 1.56, .64, 1);
    max-width: 440px;
    width: calc(100% - 32px);
    border-left: 4px solid #22c55e;
}

.wd-cart-notification.wd-show { top: 24px; }

.wd-cart-notification__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    font-size: 18px;
}

.wd-cart-notification__content { flex: 1; min-width: 0; }

.wd-cart-notification__title {
    font-family: var(--wd-font-body);
    font-weight: 600;
    font-size: 14px;
    color: #1e1e1e;
    margin: 0 0 2px;
}

.wd-cart-notification__text {
    font-family: var(--wd-font-body);
    font-size: 13px;
    color: #757575;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wd-cart-notification__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.wd-cart-notification__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 16px;
    border-radius: 8px;
    font-family: var(--wd-font-body);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.wd-cart-notification__btn--cart {
    background: var(--wd-accent);
    color: #fff;
}

.wd-cart-notification__btn--cart:hover {
    background: var(--wd-accent-hover);
}

.wd-cart-notification__btn--continue {
    background: #f5f5f5;
    color: #1e1e1e;
}

.wd-cart-notification__btn--continue:hover {
    background: #e5e5e5;
}

.wd-cart-notification__close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
    transition: .15s;
}

.wd-cart-notification__close:hover { color: #333; }

.wd-cart-notification__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, var(--wd-accent));
    border-radius: 0 0 0 12px;
    animation: wd-progress 4s linear forwards;
}

@keyframes wd-progress {
    from { width: 100%; }
    to   { width: 0%; }
}

/* ═══════════════════════════════════════════════════════
   CROSS-SELLS
   ═══════════════════════════════════════════════════════ */
.woocommerce .cross-sells { margin-top: 40px; }

.woocommerce .cross-sells > h2 {
    font-family: var(--wd-font-body);
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 20px;
}

.woocommerce .cross-sells ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 960px) {
    .woocommerce form.checkout {
        grid-template-columns: 1fr;
    }

    .woocommerce form.checkout .col-1,
    .woocommerce form.checkout #customer_details,
    .woocommerce form.checkout .col-2,
    .woocommerce form.checkout #order_review_heading,
    .woocommerce form.checkout #order_review {
        grid-column: 1;
        grid-row: auto;
    }

    .woocommerce-checkout #order_review { position: static; }

    .woocommerce .cart_totals {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .wd-wc-modern__title { font-size: 26px; }
    .wd-wc-modern__body  { padding: 24px 0 60px; }
    .wd-wc-modern__container { padding: 0 16px; }

    /* Mobile cart table → card layout */
    .woocommerce table.shop_table.cart thead { display: none; }

    .woocommerce-cart table.shop_table.cart,
    .woocommerce-cart table.shop_table.cart tbody {
        display: block;
    }

    .woocommerce-cart table.shop_table.cart tr {
        display: grid;
        grid-template-columns: 72px 1fr;
        gap: 6px 14px;
        padding: 16px;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }

    .woocommerce-cart table.shop_table.cart td {
        padding: 0;
        border: none;
    }

    .woocommerce-cart table.shop_table.cart .product-thumbnail {
        grid-row: 1 / 3;
        grid-column: 1;
    }

    .woocommerce-cart table.shop_table.cart .product-name { grid-column: 2; }

    .woocommerce-cart table.shop_table.cart .product-price,
    .woocommerce-cart table.shop_table.cart .product-quantity,
    .woocommerce-cart table.shop_table.cart .product-subtotal {
        grid-column: 2;
    }

    .woocommerce-cart table.shop_table.cart .product-price::before,
    .woocommerce-cart table.shop_table.cart .product-quantity::before,
    .woocommerce-cart table.shop_table.cart .product-subtotal::before {
        content: attr(data-title) ": ";
        font-weight: 500;
        color: #757575;
        font-size: 12px;
    }

    .woocommerce-cart table.shop_table.cart .product-remove {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .woocommerce-cart table.shop_table.cart .actions {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .woocommerce .coupon {
        flex-direction: column;
        width: 100%;
    }

    .woocommerce .coupon #coupon_code,
    .woocommerce .coupon .button {
        width: 100%;
    }

    .woocommerce button[name="update_cart"] {
        float: none;
        width: 100%;
    }

    .woocommerce .form-row-first,
    .woocommerce .form-row-last {
        width: 100%;
        float: none;
    }

    .wd-cart-notification {
        flex-wrap: wrap;
        padding: 14px 18px;
        max-width: calc(100% - 24px);
    }

    .wd-cart-notification__actions {
        width: 100%;
        margin-top: 6px;
    }

    .wd-cart-notification__btn {
        flex: 1;
        justify-content: center;
    }
}
