/**
 * Sabunaria Theme - Custom CSS
 * WooCommerce style overrides (Tailwind CDN compatible - no @apply)
 */

/* ===== Dropdown Menu ===== */

/* Hide all dropdowns by default */
.sabunaria-dropdown,
.sabunaria-subdropdown {
    display: none;
    pointer-events: none;
}

/* Show first-level dropdown on parent hover */
#primaryNav .group:hover > .sabunaria-dropdown {
    display: block;
    pointer-events: auto;
}

/* Show sub-dropdown on parent hover */
.dropdown-parent:hover > .sabunaria-subdropdown {
    display: block;
    pointer-events: auto;
}

/* Dropdown enter animation */
.sabunaria-dropdown > div,
.sabunaria-subdropdown > div {
    animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }

}

/* Scrollable dropdown if too many items */
.sabunaria-dropdown > div {
    max-height: 70vh;
    overflow-y: auto;
}

/* WooCommerce Notices */
/* WooCommerce Notices - use font-size:0 to hide emoji text, reset on children */
.woocommerce-message,
.woocommerce-info {
   background-color: rgb(225 180 147 / 0.1);
    border-left: 4px solid #e1b493;
    color: #334155;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-left: 35px;
    border-top-color: #e1b493;
}

.woocommerce-message *,
.woocommerce-info * {
    font-size: 0.875rem;
}

/* Material icon as pseudo-element */
.woocommerce-message::before,
.woocommerce-info::before {
    content: "check_circle";
    font-family: "Material Symbols Outlined";
    font-size: 1.25rem !important;
    color: #e1b493;
    font-variation-settings: 'FILL' 1, 'wght' 400;
    flex-shrink: 0;
 
}

.woocommerce-info::before {
    content: "info";
}

/* Notice text — wrap in a span by JS, or style direct text via ::after won't work
   so we use a JS snippet to wrap the text node */

/* Undo / action link inside notice */
.woocommerce-message a,
.woocommerce-info a {
    color: #e1b493;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: auto;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover {
    color: #c89b7a;
}

.woocommerce-error {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0;
    font-weight: 500;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-left: 35px;
    border-top-color: #ef4444;
}

.woocommerce-error * {
    font-size: 0.875rem;
}

.woocommerce-error::before {
    content: "error";
    font-family: "Material Symbols Outlined";
    font-size: 1.25rem !important;
    color: #ef4444;
    font-variation-settings: 'FILL' 1, 'wght' 400;
    flex-shrink: 0;
       left:10px;
    top:10px;
}

/* Product data tabs */
.woocommerce-tabs {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.woocommerce-tabs ul.tabs li a:hover {
    color: #e1b493;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #e1b493;
    border-bottom-color: #e1b493;
    background: white;
}

.woocommerce-tabs .panel {
    padding: 1.5rem 2rem;
}

.woocommerce-tabs .panel h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.woocommerce-tabs .panel p {
    color: #475569;
    line-height: 1.625;
    margin-bottom: 1rem;
}

/* Pagination */
.woocommerce-pagination,
nav.woocommerce-pagination,
.sabunaria-pagination,
.nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    justify-content: center !important;
}

.woocommerce-pagination ul,
.woocommerce-pagination ul.page-numbers,
nav.woocommerce-pagination ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-pagination ul li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-pagination .page-numbers,
.nav-links .page-numbers {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s;
}

.woocommerce-pagination .page-numbers:not(.current):not(.dots),
.nav-links .page-numbers:not(.current):not(.dots) {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.woocommerce-pagination .page-numbers:not(.current):not(.dots):hover,
.nav-links .page-numbers:not(.current):not(.dots):hover {
    border-color: #e1b493;
    color: #e1b493;
}

.woocommerce-pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: #e1b493;
    color: white;
    border: 1px solid #e1b493;
}

.woocommerce-pagination .page-numbers.dots,
.nav-links .page-numbers.dots {
    color: #94a3b8;
    border: none;
    background: none;
}

/* WooCommerce ordering dropdown */
.woocommerce-ordering select {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #475569;
}

.woocommerce-ordering select:focus {
    outline: none;
    ring: 2px;
    border-color: rgb(225 180 147 / 0.3);
    box-shadow: 0 0 0 3px rgb(225 180 147 / 0.2);
}

/* Result count */
.woocommerce-result-count {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Price display */
.woocommerce .price {
    font-size: 1.125rem;
    font-weight: 900;
    color: #e1b493;
}

.woocommerce .price del {
    font-size: 0.75rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 0.25rem;
    font-weight: 400;
}

.woocommerce .price ins {
    text-decoration: none;
}

/* Cart/Checkout form fields */
.woocommerce form .form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.375rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem !important;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: rgb(225 180 147 / 0.3);
    box-shadow: 0 0 0 3px rgb(225 180 147 / 0.2);
}

/* Buttons */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
    background: #e1b493;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    transition: all 0.2s;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
    background: #c89b7a;
    color: white;
}

.woocommerce .button.alt,
.woocommerce button.button.alt {
    background: #274028;
}

.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover {
    background: #1e321e;
}

/* My Account content */
.woocommerce-MyAccount-content {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    padding: 1.5rem 2rem;
}

/* Login/Register forms */
.woocommerce-form-login,
.woocommerce-form-register {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    padding: 1.5rem 2rem;
}

/* Product loop - hide defaults */
.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    width: 100%;
    float: none;
}

/* Variable product form */
.variations_form .variations {
    margin-bottom: 1.25rem;
    width: 100%;
}

.variations_form .variations tr {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.variations_form .variations td {
    padding: 0;
    display: block;
}

.variations_form .variations td.label label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 0.5rem;
}

.variations_form .variations td.value select {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    appearance: auto;
}

.variations_form .variations td.value .reset_variations {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #e1b493;
    font-weight: 500;
}

/* Variation price display */
.woocommerce-variation-price {
    margin-bottom: 1rem;
}

.woocommerce-variation-price .price {
    font-size: 1.5rem;
    font-weight: 900;
    color: #e1b493;
}

/* Add to cart area */
.single_variation_wrap .woocommerce-variation-add-to-cart,
form.cart:not(.variations_form) {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

/* Quantity input wrapper */
.single_variation_wrap .quantity,
form.cart:not(.variations_form) .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: white;
    overflow: hidden;
    flex-shrink: 0;
}

.single_variation_wrap .quantity input,
form.cart:not(.variations_form) .quantity input {
    width: 3rem;
    text-align: center;
    font-weight: 700;
    color: #1e293b;
    border: 0;
    padding: 0.75rem 0;
    -moz-appearance: textfield;
}

.single_variation_wrap .quantity input::-webkit-outer-spin-button,
.single_variation_wrap .quantity input::-webkit-inner-spin-button,
form.cart .quantity input::-webkit-outer-spin-button,
form.cart .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart button */
.single_variation_wrap button.single_add_to_cart_button,
form.cart button.single_add_to_cart_button,
form.cart .single_add_to_cart_button {
    flex: 1;
    background: #274028 !important;
    color: white !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(39, 64, 40, 0.25);
}

.single_variation_wrap button.single_add_to_cart_button:hover,
form.cart button.single_add_to_cart_button:hover,
form.cart .single_add_to_cart_button:hover {
    background: #1e321e !important;
    box-shadow: 0 6px 20px rgba(39, 64, 40, 0.3);
}

/* Disabled state */
.single_variation_wrap button.single_add_to_cart_button.disabled,
form.cart button.single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Star ratings */
.star-rating {
    color: #e1b493;
}

/* Hide default WooCommerce breadcrumb */
.woocommerce-breadcrumb {
    display: none;
}

/* Hide duplicate order review table on checkout (we show items in custom sidebar) */
.woocommerce-checkout-review-order-table {
    display: none !important;
}

/* Hide original WC place order button (we have custom one in sidebar) */
.woocommerce-checkout #place_order {
    display: none !important;
}

/* Checkout payment section */
.woocommerce-checkout-payment {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Payment tabs container: flex-wrap so payment_box can span full width */
.woocommerce-checkout-payment .wc_payment_methods {
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0 0 1.5rem !important;
    padding: 0.25rem !important;
    background: #f1f5f9;
    border-radius: 0.75rem;
}

/* Each li uses display:contents so its children join the flex layout directly */
.woocommerce-checkout-payment .wc_payment_methods .wc_payment_method {
    display: contents;
}

/* Hide radio inputs */
.woocommerce-checkout-payment .wc_payment_methods .wc_payment_method > input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none;
}

/* Tab label: each takes equal space on the first row */
.woocommerce-checkout-payment .wc_payment_methods .wc_payment_method > label {
    flex: 1;
    display: block !important;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s;
    text-align: center;
}

.woocommerce-checkout-payment .wc_payment_methods .wc_payment_method > label img {
    display: none;
}

/* Inactive tab hover */
.woocommerce-checkout-payment .wc_payment_methods .wc_payment_method:not(:has(input:checked)) > label:hover {
    color: #e1b493;
}

/* Active tab */
.woocommerce-checkout-payment .wc_payment_methods .wc_payment_method:has(input:checked) > label {
    background: #e1b493;
    color: white;
    font-weight: 700;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Payment box: full-width row below the tabs */
.woocommerce-checkout-payment .payment_box {
    flex-basis: 100% !important;
    order: 10;
    background: none !important;
    padding: 1rem 0.75rem 0.5rem !important;
    margin: 0 !important;
    font-size: 0.875rem;
    color: #64748b;
}

.woocommerce-checkout-payment .payment_box::before {
    display: none !important;
}

/* Terms checkbox area */
.woocommerce-checkout-payment .woocommerce-terms-and-conditions-wrapper {
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
}

/* ── Fatura Bilgileri (Flatisler Tax ID plugin) ── */

/* === WooCommerce Blocks native select (Müşteri Tipi) === */

/* Select container — disable floating label layout */
.wc-block-components-select:has(#billing-flatisler-customer-type) .wc-block-components-select__container {
    position: relative !important;
}

/* Label — force above, not floating inside */
.wc-block-components-select:has(#billing-flatisler-customer-type) .wc-block-components-select__label {
    position: static !important;
    transform: none !important;
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 0.375rem !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    line-height: 1.5 !important;
    top: auto !important;
    left: auto !important;
}

/* The select element itself */
#billing-flatisler-customer-type {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: auto !important;
    cursor: pointer !important;
    height: auto !important;
    line-height: 1.5 !important;
}

#billing-flatisler-customer-type:focus {
    border-color: rgba(225, 180, 147, 0.3) !important;
    box-shadow: 0 0 0 3px rgba(225, 180, 147, 0.15) !important;
    outline: none !important;
}

/* Hide the custom chevron SVG — native appearance provides its own */
.wc-block-components-select:has(#billing-flatisler-customer-type) .wc-block-components-select__chevron {
    display: none !important;
}

/* === WooCommerce Blocks native text inputs (TC No, Vergi Dairesi, Vergi No) === */

/* Wrapper — disable floating label */
.wc-block-components-text-input:has(#billing-flatisler-tc-no),
.wc-block-components-text-input:has(#billing-flatisler-tax-office),
.wc-block-components-text-input:has(#billing-flatisler-tax-no) {
    position: relative !important;
}

/* Labels — force above */
.wc-block-components-text-input:has(#billing-flatisler-tc-no) label,
.wc-block-components-text-input:has(#billing-flatisler-tax-office) label,
.wc-block-components-text-input:has(#billing-flatisler-tax-no) label {
    position: static !important;
    transform: none !important;
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 0.375rem !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    line-height: 1.5 !important;
    top: auto !important;
    left: auto !important;
}

/* Text inputs */
#billing-flatisler-tc-no,
#billing-flatisler-tax-office,
#billing-flatisler-tax-no {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    height: auto !important;
    line-height: 1.5 !important;
}

#billing-flatisler-tc-no:focus,
#billing-flatisler-tax-office:focus,
#billing-flatisler-tax-no:focus {
    border-color: rgba(225, 180, 147, 0.3) !important;
    box-shadow: 0 0 0 3px rgba(225, 180, 147, 0.15) !important;
    outline: none !important;
    background: #fff !important;
}

/* Required asterisk color */
.wc-block-components-select:has(#billing-flatisler-customer-type) .required,
.wc-block-components-text-input:has([id*="billing-flatisler"]) .required {
    color: #e1b493 !important;
}

/* === checkout-block.js ExperimentalOrderMeta component (if rendered) === */
.fwtip-tax-id-block {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.fwtip-tax-id-block .wc-block-components-checkout-step__title {
    color: #0f172a !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin: 0 0 1rem !important;
}

/* === Classic checkout: Müşteri Tipi radio as tab toggle === */

/* The <p> wrapper — block layout, heading label on top */
.fwtip-customer-type {
    display: block !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
    background: none !important;
}

/* Heading label: "Müşteri Tipi *" — sits above the toggle */
.fwtip-customer-type > label:first-child {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
}

.fwtip-customer-type > label:first-child .required {
    color: #e1b493 !important;
}

/* The wrapper <span> becomes the tab bar */
.fwtip-customer-type .woocommerce-input-wrapper {
    display: flex !important;
    gap: 0.25rem !important;
    background: #f1f5f9 !important;
    border-radius: 0.75rem !important;
    padding: 0.25rem !important;
}

/* Hide radio inputs */
.fwtip-customer-type .woocommerce-input-wrapper input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Radio labels become tab buttons */
.fwtip-customer-type .woocommerce-input-wrapper label.radio {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0.625rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    cursor: pointer !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s !important;
    text-align: center !important;
}

.fwtip-customer-type .woocommerce-input-wrapper label.radio .required {
    display: none !important;
}

.fwtip-customer-type .woocommerce-input-wrapper label.radio:hover {
    color: #e1b493 !important;
}

/* Active tab — radio checked + next sibling label */
.fwtip-customer-type .woocommerce-input-wrapper input[type="radio"]:checked + label.radio {
    background: #e1b493 !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Hide add to cart in loop (we use custom card) */
.products .product .button.add_to_cart_button {
    display: none;
}

/* Remove default WooCommerce float layout */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

/* Cart table responsive */
.woocommerce-cart-form table {
    width: 100%;
}

/* Select2 overrides for WooCommerce */
.select2-container--default .select2-selection--single {
    height: auto !important;
    min-height: 2.75rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding: 0.5rem 1rem;
    color: #334155;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 0.5rem;
}

/* WooCommerce MyAccount navigation - hide default (we use custom sidebar) */
.woocommerce-MyAccount-navigation {
    display: none;
}

/* Remove empty notices wrapper from space-y flow */
.woocommerce-notices-wrapper:empty {
    display: none;
}

/* Order table styling */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    text-align: left;
}

.woocommerce-orders-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

/* Quantity input in cart */
.woocommerce .quantity .qty {
    width: 4rem;
    text-align: center;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.5rem;
}

/* Coupon form */
.woocommerce-cart .coupon input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
}

/* Cart totals */
.cart_totals {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
}

.cart_totals h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart_totals table {
    width: 100%;
}

.cart_totals table th,
.cart_totals table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Lost password link */
.woocommerce-LostPassword a {
    color: #e1b493;
    font-size: 0.875rem;
    font-weight: 500;
}

.woocommerce-LostPassword a:hover {
    color: #c89b7a;
}

/* Remember me checkbox */
.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
}

/* ===== Contact Form 7 ===== */
.wpcf7 {
    width: 100%;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wpcf7-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.375rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    color: #334155;
    transition: all 0.2s;
    font-family: inherit;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: rgb(225 180 147 / 0.3);
    box-shadow: 0 0 0 3px rgb(225 180 147 / 0.15);
    background: white;
}

.wpcf7-form textarea {
    resize: vertical;
    min-height: 140px;
}

.wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* Two-column row for name/email, phone/subject */
.wpcf7-form .cf7-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .wpcf7-form .cf7-row {
        grid-template-columns: 1fr;
    }
}

/* Submit button */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #e1b493;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgb(225 180 147 / 0.3);
    width: auto;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: #c89b7a;
    box-shadow: 0 4px 12px rgb(225 180 147 / 0.3);
}

/* Validation messages */
.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.wpcf7-not-valid {
    border-color: #fca5a5 !important;
    background: #fef2f2 !important;
}

/* Response output */
.wpcf7-response-output {
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 1rem 0 0 !important;
    border: none !important;
}

.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
    background: rgb(225 180 147 / 0.1);
    color: #274028;
    border-left: 4px solid #e1b493 !important;
}

.wpcf7-validation-errors,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background: #fef2f2;
    color: #b91c1c;
    border-left: 4px solid #ef4444 !important;
}

/* Spinner */
.wpcf7-spinner {
    display: none;
}

.wpcf7 form.submitting .wpcf7-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgb(225 180 147 / 0.3);
    border-top-color: #e1b493;
    border-radius: 50%;
    animation: cf7spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

@keyframes cf7spin {
    to { transform: rotate(360deg); }
}

/* Hide the ugly default CF7 paragraph wrapper spacing */
.wpcf7-form p {
    margin: 0;
}

/* Acceptance checkbox */
.wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e1;
    accent-color: #e1b493;
}

/* ===== MyAccount Forms (Edit Account, Edit Address) ===== */

/* Form wrapper card */
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    padding: 1.5rem 2rem;
}

/* Form rows */
.woocommerce-EditAccountForm .woocommerce-form-row,
.woocommerce-address-fields .woocommerce-form-row,
.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
    margin-bottom: 1.25rem;
}

/* Labels */
.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.375rem;
}

/* Inputs */
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="tel"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="email"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields select,
.woocommerce-EditAccountForm select {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus {
    border-color: rgba(225, 180, 147, 0.3);
    box-shadow: 0 0 0 2px rgba(225, 180, 147, 0.2);
    outline: none;
}

/* Save button */
.woocommerce-EditAccountForm .woocommerce-Button,
.woocommerce-address-fields .woocommerce-Button,
.woocommerce-EditAccountForm button[type="submit"],
.woocommerce-address-fields button[type="submit"] {
    background: #274028 !important;
    color: white !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    border: 0;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(39, 64, 40, 0.25);
}

.woocommerce-EditAccountForm .woocommerce-Button:hover,
.woocommerce-address-fields .woocommerce-Button:hover,
.woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-address-fields button[type="submit"]:hover {
    background: #1e321e !important;
}

/* Address card display */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.woocommerce-Addresses .woocommerce-Address {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.woocommerce-Addresses .woocommerce-Address header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.woocommerce-Addresses .woocommerce-Address header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.woocommerce-Addresses .woocommerce-Address header a {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e1b493;
    background: rgba(225, 180, 147, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.woocommerce-Addresses .woocommerce-Address header a:hover {
    background: rgba(225, 180, 147, 0.2);
}

.woocommerce-Addresses .woocommerce-Address address {
    font-style: normal;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}

/* Password fieldsets */
.woocommerce-EditAccountForm fieldset {
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.woocommerce-EditAccountForm fieldset legend {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    padding: 0 0.5rem;
}

/* Inline form-row halves */
.woocommerce-EditAccountForm .form-row-first,
.woocommerce-address-fields .form-row-first {
    width: 48%;
    display: inline-block;
    vertical-align: top;
    margin-right: 2%;
}

.woocommerce-EditAccountForm .form-row-last,
.woocommerce-address-fields .form-row-last {
    width: 48%;
    display: inline-block;
    vertical-align: top;
}

/* View order detail */
.woocommerce-order-details {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.woocommerce-order-details h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

.woocommerce-order-details table {
    width: 100%;
}

.woocommerce-order-details table th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    text-align: left;
}

.woocommerce-order-details table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

/* Order detail sections */
.woocommerce-customer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .woocommerce-customer-details {
        grid-template-columns: 1fr;
    }
    .woocommerce-EditAccountForm .form-row-first,
    .woocommerce-EditAccountForm .form-row-last,
    .woocommerce-address-fields .form-row-first,
    .woocommerce-address-fields .form-row-last {
        width: 100%;
        display: block;
        margin-right: 0;
    }
}

.woocommerce-customer-details .woocommerce-column {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
}

.woocommerce-customer-details .woocommerce-column h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.woocommerce-customer-details address {
    font-style: normal;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}
