/*
 * WooCommerce Styles — Sakura Theme
 */

/* Product Loop */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
}

/* Single Product */
.sakura-single-product .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.sakura-single-product .woocommerce-product-gallery {
    border-radius: var(--sakura-radius);
    overflow: hidden;
}

.sakura-single-product .summary {
    padding: 1rem 0;
}

.sakura-single-product .product_title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--sakura-brown);
    margin-bottom: 1rem;
}

.sakura-single-product .price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--sakura-rose);
    margin-bottom: 1.5rem;
}

.sakura-single-product .woocommerce-product-details__short-description {
    color: var(--sakura-text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Add to cart button */
.woocommerce .single_add_to_cart_button,
.woocommerce .button {
    background: var(--sakura-rose) !important;
    color: white !important;
    border: none !important;
    padding: 0.85rem 2rem !important;
    border-radius: var(--sakura-radius) !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer;
    transition: all 0.2s var(--ease-out) !important;
}

.woocommerce .single_add_to_cart_button:hover,
.woocommerce .button:hover {
    background: var(--sakura-pink-deep) !important;
    box-shadow: 0 8px 24px rgba(212, 86, 122, 0.3) !important;
}

/* Quantity */
.woocommerce .quantity .qty {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--sakura-border);
    border-radius: 8px;
    font-family: var(--font-body);
    background: var(--sakura-cream);
}

/* Cart */
.woocommerce-cart .woocommerce table.shop_table {
    border: 1px solid var(--sakura-border);
    border-radius: var(--sakura-radius);
    overflow: hidden;
}

.woocommerce-cart .woocommerce table.shop_table th {
    background: var(--sakura-pink-light);
    color: var(--sakura-brown);
    font-weight: 600;
}

.woocommerce-cart .woocommerce table.shop_table td {
    border-color: var(--sakura-border);
}

/* Checkout */
.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout .woocommerce-input-wrapper textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--sakura-border);
    border-radius: 8px;
    font-family: var(--font-body);
    background: var(--sakura-cream);
    transition: border-color 0.2s;
}

.woocommerce-checkout .woocommerce-input-wrapper input:focus,
.woocommerce-checkout .woocommerce-input-wrapper select:focus {
    border-color: var(--sakura-pink);
    outline: none;
    box-shadow: 0 0 0 3px rgba(248, 180, 200, 0.3);
}

/* Notices */
.woocommerce-message {
    border-top-color: var(--sakura-green) !important;
    background: #F0FFF4;
}

.woocommerce-error {
    border-top-color: var(--sakura-rose) !important;
}

.woocommerce-info {
    border-top-color: var(--sakura-pink) !important;
    background: var(--sakura-pink-light);
}

/* Sale badge */
.woocommerce span.onsale {
    background: var(--sakura-rose);
    border-radius: var(--sakura-radius);
    font-family: var(--font-body);
    font-weight: 700;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: none;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--sakura-border);
    color: var(--sakura-brown);
    transition: all 0.2s;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--sakura-rose);
    border-color: var(--sakura-rose);
    color: white;
}

/* Ordering */
.woocommerce .woocommerce-ordering {
    margin: 0;
    text-align: right;
}

.woocommerce .woocommerce-ordering select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--sakura-border);
    border-radius: 8px;
    font-family: var(--font-body);
    background: var(--sakura-cream);
}

/* Responsive */
@media (max-width: 768px) {
    .sakura-single-product .product {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

/* WooCommerce Block Cart & Checkout buttons */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-proceed-to-checkout-block a,
.wc-block-cart .wc-block-cart__submit-button,
.wc-block-components-button.wc-block-cart__submit-button,
.wc-block-components-button:not(.is-link) {
    background: #D4567A !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 1rem 2.5rem !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(212, 86, 122, 0.3) !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button:not(.is-link):hover {
    background: #C14468 !important;
    box-shadow: 0 8px 25px rgba(212, 86, 122, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Cart page title styling */
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.wc-block-cart .wp-block-heading,
.page-id-6 h1,
.page-id-7 h1 {
    font-family: 'Playfair Display', serif !important;
    color: #5D3D2E !important;
}

/* WooCommerce block links */
.wc-block-components-product-name {
    color: #D4567A !important;
}

/* Quantity buttons */
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    color: #5D3D2E !important;
}

/* Remove button */
.wc-block-cart-item__remove-link {
    color: #D4567A !important;
}

/* Coupon section */
.wc-block-components-totals-coupon__button {
    background: #D4567A !important;
    color: white !important;
    border-radius: 50px !important;
}

/* Cart totals */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: #5D3D2E !important;
    font-weight: 700 !important;
}

/* Checkout form inputs */
.wc-block-components-text-input input,
.wc-block-components-text-input select {
    border-radius: 8px !important;
    border-color: #F0D4C8 !important;
}

.wc-block-components-text-input input:focus {
    border-color: #F8B4C8 !important;
    box-shadow: 0 0 0 3px rgba(248, 180, 200, 0.3) !important;
}

/* Single Product - Fix layout */
.sakura-single-product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100%;
}
.sakura-single-product .woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    display: block;
}
.sakura-single-product .woocommerce-tabs {
    grid-column: 1 / -1;
}
.sakura-single-product .related.products {
    grid-column: 1 / -1;
}
.sakura-single-product .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
}
/* Related products grid - uses same card styles as shop page */

/* Fix gallery opacity - WooCommerce sets opacity:0 inline and waits for JS */
.woocommerce-product-gallery {
    opacity: 1 !important;
}
.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}

/* Override WooCommerce layout float/width for grid layout */
.sakura-single-product .product div.images,
.sakura-single-product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
}
.sakura-single-product .product div.summary {
    width: 100% !important;
    float: none !important;
}

/* Related products: full card layout matching main menu */
.sakura-single-product .related.products .product-quantity-wrap {
    display: flex !important;
}
.sakura-single-product .related.products .quantity-selector {
    display: flex !important;
}

/* Related products: show full card with quantity selector */

/* === Fix: Center product images in grid (show full dish) === */
.products .product-card-image img,
.woocommerce ul.products li.product a img {
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* === Fix: Admin bar header overlap === */
body.admin-bar .site-header {
    top: 32px !important;
}
body.admin-bar {
    padding-top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px !important;
    }
    body.admin-bar {
        padding-top: 46px !important;
    }
}

/* === Fix: Related products images also centered === */


/* === Fix: Product card images - show full dish without cropping === */
.product-card-image {
    background: transparent !important;
}
.product-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    padding: 0 !important;
}

/* === Fix: Admin bar header - add proper margin === */
body.admin-bar .site-header {
    margin-top: 32px !important;
    top: 0 !important;
}
body.admin-bar .site-content,
body.admin-bar .page-content {
    margin-top: 0 !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        margin-top: 46px !important;
    }
}

/* === Fix: Style ALL buttons in sakura pink theme === */
/* Review form submit button */
#review_form .form-submit input[type="submit"],
.comment-form input[type="submit"],
.woocommerce-Reviews #respond input#submit,
input[type="submit"],
button[type="submit"]:not(.sakura-search-submit):not(.mobile-toggle):not(.qty-btn):not(.scroll-to-top) {
    letter-spacing: 0.02em;
}
#review_form .form-submit input[type="submit"]:hover,
.comment-form input[type="submit"]:hover,
.woocommerce-Reviews #respond input#submit:hover,
input[type="submit"]:hover,
button[type="submit"]:not(.sakura-search-submit):not(.mobile-toggle):not(.qty-btn):not(.scroll-to-top):hover {
}

/* WooCommerce tabs styling */
.woocommerce-tabs .tabs li a {
}
.woocommerce-tabs .tabs li.active a {
}

/* Review form textarea */
.woocommerce-Reviews #respond textarea,
.comment-form textarea {
}
.woocommerce-Reviews #respond textarea:focus,
.comment-form textarea:focus {
}

/* Star rating in reviews */
.woocommerce-Reviews .stars a {
}

/* === Fix: Style ALL buttons in sakura pink theme === */
/* Review form submit button */
#review_form .form-submit input[type="submit"],
.comment-form input[type="submit"],
.woocommerce-Reviews #respond input#submit,
input[type="submit"],
button[type="submit"]:not(.sakura-search-submit):not(.mobile-toggle):not(.qty-btn):not(.scroll-to-top) {
    background: #D4567A !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.75rem 2rem !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(212, 86, 122, 0.3) !important;
    letter-spacing: 0.02em;
}
#review_form .form-submit input[type="submit"]:hover,
.comment-form input[type="submit"]:hover,
.woocommerce-Reviews #respond input#submit:hover,
input[type="submit"]:hover,
button[type="submit"]:not(.sakura-search-submit):not(.mobile-toggle):not(.qty-btn):not(.scroll-to-top):hover {
    background: #C14468 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212, 86, 122, 0.4) !important;
}

/* WooCommerce tabs styling */
.woocommerce-tabs .tabs li a {
    color: #5D3D2E !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 600 !important;
}
.woocommerce-tabs .tabs li.active a {
    color: #D4567A !important;
    border-bottom-color: #D4567A !important;
}

/* Review form textarea */
.woocommerce-Reviews #respond textarea,
.comment-form textarea {
    border: 1px solid #F0E4DC !important;
    border-radius: 12px !important;
    font-family: 'Nunito', sans-serif !important;
    padding: 1rem !important;
    background: #fff !important;
    transition: border-color 0.2s ease !important;
}
.woocommerce-Reviews #respond textarea:focus,
.comment-form textarea:focus {
    border-color: #F8B4C8 !important;
    box-shadow: 0 0 0 3px rgba(248, 180, 200, 0.2) !important;
    outline: none !important;
}

/* Star rating in reviews */
.woocommerce-Reviews .stars a {
    color: #D4567A !important;
}

/* === Fix: Round form inputs in sakura style === */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
#review_form input[type="text"],
#review_form input[type="email"],
#review_form input[type="url"],
.woocommerce-Reviews #respond input[type="text"],
.woocommerce-Reviews #respond input[type="email"] {
    border: 1px solid #F0E4DC !important;
    border-radius: 50px !important;
    font-family: 'Nunito', sans-serif !important;
    padding: 0.75rem 1.5rem !important;
    background: #fff !important;
    transition: border-color 0.2s ease !important;
    width: 100% !important;
    max-width: 400px;
    font-size: 0.9rem !important;
    color: #5D3D2E !important;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
#review_form input[type="text"]:focus,
#review_form input[type="email"]:focus,
#review_form input[type="url"]:focus,
.woocommerce-Reviews #respond input[type="text"]:focus,
.woocommerce-Reviews #respond input[type="email"]:focus {
    border-color: #F8B4C8 !important;
    box-shadow: 0 0 0 3px rgba(248, 180, 200, 0.2) !important;
    outline: none !important;
}
.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
#review_form input[type="text"]::placeholder,
#review_form input[type="email"]::placeholder {
    color: #C4A99A !important;
}

/* === Fix: Gallery image black background === */
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image a,
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery__wrapper {
    background: transparent !important;
}
.woocommerce-product-gallery img {
    background: transparent !important;
    object-fit: contain !important;
}

/* === Fix: Single product quantity selector - use sakura +/- style === */
.sakura-single-product .quantity.quantity-selector {
    display: inline-flex !important;
    align-items: center;
    border: 1px solid #F4A7B9;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    margin-right: 1rem;
}
.sakura-single-product .quantity.quantity-selector .qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: bold;
    color: #5D3D2E;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.sakura-single-product .quantity.quantity-selector .qty-btn:hover {
    background: #FFF0F3;
}
.sakura-single-product .quantity.quantity-selector .qty-btn:active {
    background: #F4A7B9;
    color: #fff;
}
.sakura-single-product .quantity.quantity-selector .qty-input,
.sakura-single-product .quantity.quantity-selector input.qty {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #5D3D2E;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}
.sakura-single-product .quantity.quantity-selector input::-webkit-outer-spin-button,
.sakura-single-product .quantity.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Align quantity and add-to-cart button on single product page */
.sakura-single-product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 1rem;
}

/* === Related products - same card layout as shop page === */
.sakura-single-product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
}
@media (max-width: 768px) {
    .sakura-single-product .related.products ul.products {
        grid-template-columns: 1fr !important;
    }
}
.sakura-single-product .related.products ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}


/* ============================================
   CHECKOUT PAGE - COMPLETE FIX v3
   Overrides .form-row { display:grid; grid-template-columns:1fr 1fr }
   from main.css line 747 which breaks checkout layout
   ============================================ */

/* Reset form-row inside checkout to block (NOT grid) */
.woocommerce-checkout .form-row,
.woocommerce-checkout p.form-row {
    display: block !important;
    grid-template-columns: none !important;
}

/* Coupon section - flex row with input taking remaining space */
.woocommerce-checkout .checkout_coupon {
    
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    background: #fff5f7 !important;
    border: 1px solid #F8B4C8 !important;
    border-radius: 12px !important;
    margin-bottom: 24px !important;
}
.woocommerce-checkout .checkout_coupon p.form-row-first {
    display: block !important;
    flex: 1 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-checkout .checkout_coupon p.form-row-first label {
    display: none !important;
}
.woocommerce-checkout .checkout_coupon p.form-row-first .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
}
.woocommerce-checkout .checkout_coupon p.form-row-first input.input-text {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #F0D4C8 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    background: white !important;
    height: 48px !important;
    box-sizing: border-box !important;
}
.woocommerce-checkout .checkout_coupon p.form-row-first input.input-text:focus {
    border-color: #F8B4C8 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(248, 180, 200, 0.2) !important;
}
.woocommerce-checkout .checkout_coupon p.form-row-last {
    display: block !important;
    flex: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-checkout .checkout_coupon p.form-row-last .button {
    height: 48px !important;
    padding: 0 28px !important;
    background: #D4567A !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background 0.2s !important;
}
.woocommerce-checkout .checkout_coupon p.form-row-last .button:hover {
    background: #C14468 !important;
}

/* Billing fields wrapper - 2 column grid */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 20px !important;
    width: 100% !important;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first {
    grid-column: 1 !important;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last {
    grid-column: 2 !important;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1 !important;
}

/* All form rows inside billing - block layout (label on top, input below) */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Labels */
.woocommerce-checkout label {
    display: block !important;
    text-align: left !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #5D3D2E !important;
    margin-bottom: 6px !important;
}

/* Input wrappers - full width */
.woocommerce-checkout .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
}

/* All inputs in checkout */
.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout .woocommerce-input-wrapper textarea,
.woocommerce-checkout input.input-text,
.woocommerce-checkout select {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #F0D4C8 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    background: white !important;
    font-family: 'Nunito', sans-serif !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
}
.woocommerce-checkout .woocommerce-input-wrapper input:focus,
.woocommerce-checkout .woocommerce-input-wrapper select:focus,
.woocommerce-checkout .woocommerce-input-wrapper textarea:focus {
    border-color: #F8B4C8 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(248, 180, 200, 0.2) !important;
}

/* Shipping and additional fields */
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 24px !important;
}
.woocommerce-checkout .woocommerce-additional-fields .form-row {
    display: block !important;
    grid-template-columns: none !important;
}
.woocommerce-checkout .woocommerce-additional-fields textarea {
    width: 100% !important;
    min-height: 100px !important;
    padding: 12px 16px !important;
    border: 1px solid #F0D4C8 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    background: white !important;
    font-family: 'Nunito', sans-serif !important;
    resize: vertical !important;
}

/* Section headings */
.woocommerce-checkout h3 {
    font-family: 'Playfair Display', serif !important;
    color: #5D3D2E !important;
    font-size: 1.4rem !important;
    margin-bottom: 20px !important;
    text-align: left !important;
}

/* Order review table */
.woocommerce-checkout #order_review_heading {
    font-family: 'Playfair Display', serif !important;
    color: #5D3D2E !important;
    font-size: 1.4rem !important;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
    text-align: left !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100% !important;
    border: 1px solid #F0D4C8 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 12px 16px !important;
    text-align: left !important;
    border-bottom: 1px solid #F0D4C8 !important;
    font-size: 14px !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
    background: #fff5f7 !important;
    font-weight: 700 !important;
    color: #5D3D2E !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #D4567A !important;
}

/* Payment section */
.woocommerce-checkout #payment {
    background: white !important;
    border: 1px solid #F0D4C8 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-top: 24px !important;
}
.woocommerce-checkout #payment .payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    border: none !important;
}
.woocommerce-checkout #payment .payment_methods li {
    padding: 12px 0 !important;
    border: none !important;
    background: none !important;
}
.woocommerce-checkout #payment .payment_methods li label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #5D3D2E !important;
    cursor: pointer !important;
    display: inline !important;
}
.woocommerce-checkout #payment .payment_box {
    background: #fff5f7 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin-top: 8px !important;
    color: #5D3D2E !important;
    font-size: 14px !important;
}
.woocommerce-checkout #payment .payment_box::before {
    display: none !important;
}

/* Privacy policy text */
.woocommerce-checkout .woocommerce-privacy-policy-text {
    text-align: left !important;
    width: 100% !important;
    margin: 16px 0 !important;
}
.woocommerce-checkout .woocommerce-privacy-policy-text p {
    font-size: 13px !important;
    color: #7a6a5f !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

/* Place order button */
.woocommerce-checkout #place_order {
    width: 100% !important;
    padding: 16px 32px !important;
    background: linear-gradient(135deg, #F8B4C8, #D4567A) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: 'Nunito', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(212, 86, 122, 0.3) !important;
    margin-top: 16px !important;
}
.woocommerce-checkout #place_order:hover {
    background: linear-gradient(135deg, #D4567A, #C14468) !important;
    box-shadow: 0 8px 25px rgba(212, 86, 122, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Coupon info bar (before the form) */
.woocommerce-checkout .woocommerce-info {
    background: #fff5f7 !important;
    border: 1px solid #F8B4C8 !important;
    border-top: none !important;
    border-radius: 10px !important;
    padding: 14px 20px !important;
    color: #5D3D2E !important;
    font-size: 14px !important;
    margin-bottom: 16px !important;
    text-align: left !important;
}
.woocommerce-checkout .woocommerce-info::before {
    display: none !important;
}
.woocommerce-checkout .woocommerce-info a {
    color: #D4567A !important;
    font-weight: 600 !important;
}

/* Checkbox styling */
.woocommerce-checkout input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px !important;
    accent-color: #D4567A !important;
    vertical-align: middle !important;
}

/* Responsive - mobile */
@media (max-width: 768px) {
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr !important;
    }
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first,
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last {
        grid-column: 1 !important;
    }
    .woocommerce-checkout .checkout_coupon {
        flex-direction: column !important;
    }
    .woocommerce-checkout .checkout_coupon p.form-row-first,
    .woocommerce-checkout .checkout_coupon p.form-row-last {
        width: 100% !important;
    }
    .woocommerce-checkout .checkout_coupon p.form-row-last .button {
        width: 100% !important;
    }
}

/* === v1.9.4 Mobile Checkout Fixes === */

/* Fix 1: Coupon form - add gap between input and button on mobile */
@media (max-width: 768px) {
    .woocommerce-checkout .checkout_coupon {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .woocommerce-checkout .checkout_coupon p.form-row-first,
    .woocommerce-checkout .checkout_coupon p.form-row-last {
        width: 100% !important;
        margin: 0 !important;
    }
    .woocommerce-checkout .checkout_coupon p.form-row-last {
        margin-top: 4px !important;
    }
    .woocommerce-checkout .checkout_coupon p.form-row-last .button {
        width: 100% !important;
    }
}

/* Fix 2: Smooth coupon toggle animation - override display:none with max-height transition */
.woocommerce-checkout .checkout_coupon {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    background: #fff5f7 !important;
    border: 1px solid #F8B4C8 !important;
    border-radius: 12px !important;
    margin-bottom: 24px !important;
    overflow: hidden !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-width: 0 !important;
    opacity: 0 !important;
    transition: max-height 0.35s ease, padding 0.35s ease, margin-bottom 0.35s ease, opacity 0.3s ease, border-width 0.35s ease !important;
}
.woocommerce-checkout .checkout_coupon.coupon-visible {
    max-height: 200px !important;
    padding: 16px 20px !important;
    margin-bottom: 24px !important;
    border-width: 1px !important;
    opacity: 1 !important;
}

/* Fix 3: Payment method alignment - match privacy text indentation */
.woocommerce-checkout #payment .payment_methods {
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.woocommerce-checkout #payment .payment_methods li {
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.woocommerce-checkout #payment .payment_box {
    margin-left: 0 !important;
    padding: 12px 16px !important;
}
.woocommerce-checkout #payment .place-order,
.woocommerce-checkout #payment div.form-row.place-order,
#payment div.form-row.place-order {
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce-checkout #payment .place-order .woocommerce-privacy-policy-text {
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
}


/* Hide radio button when only one payment method, align label with privacy text */
.woocommerce-checkout #payment .payment_methods li .input-radio {
    display: none !important;
}
.woocommerce-checkout #payment .payment_methods li input[type="radio"] {
    display: none !important;
}

/* Fix 3 (revised v4): Payment method alignment on mobile - match place-order padding */
@media (max-width: 768px) {
    .woocommerce-checkout #payment {
        padding: 20px 16px !important;
    }
    .woocommerce-checkout #payment .payment_methods {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    .woocommerce-checkout #payment .payment_methods li {
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
        background: none !important;
    }
    .woocommerce-checkout #payment .payment_methods li label {
        display: block !important;
        padding: 0 0 8px 0 !important;
        margin: 0 !important;
    }
    .woocommerce-checkout #payment .payment_box {
        margin: 0 !important;
        padding: 12px 16px !important;
        border-radius: 8px !important;
    }
    .woocommerce-checkout #payment div.form-row.place-order {
        padding: 0 !important;
        margin: 0 !important;
    }
    #payment div.form-row.place-order {
        padding: 0 !important;
        margin: 0 !important;
    }
    .woocommerce-checkout #payment .place-order .woocommerce-terms-and-conditions-wrapper {
        padding: 0 !important;
        margin: 0 !important;
    }
    .woocommerce-checkout #payment .place-order .woocommerce-privacy-policy-text {
        padding: 0 !important;
        margin: 0 0 16px 0 !important;
    }
    .woocommerce-checkout #payment .place-order .woocommerce-privacy-policy-text p {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Fix 1 (mobile): Coupon button spacing and layout when visible */
@media (max-width: 768px) {
    .woocommerce-checkout .checkout_coupon.coupon-visible {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    .woocommerce-checkout .checkout_coupon.coupon-visible p.form-row-first,
    .woocommerce-checkout .checkout_coupon.coupon-visible p.form-row-last {
        width: 100% !important;
        margin: 0 !important;
    }
    .woocommerce-checkout .checkout_coupon.coupon-visible p.form-row-last .button {
        width: 100% !important;
        margin-top: 4px !important;
    }
}

/* Fix payment alignment - match payment_methods padding to place-order */
@media (max-width: 768px) {
    .woocommerce-checkout #payment ul.payment_methods {
        padding: 16px !important;
    }
    .woocommerce-checkout #payment ul.payment_methods li {
        padding: 0 !important;
        margin: 0 !important;
    }
    .woocommerce-checkout #payment ul.payment_methods li label {
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        display: block !important;
    }
    .woocommerce-checkout #payment ul.payment_methods li .payment_box {
        margin: 0 !important;
        padding: 12px 16px !important;
    }
    .woocommerce-checkout #payment div.form-row.place-order {
        padding: 16px !important;
    }
}

