/* WooCommerce Custom Styles - Tailwind-inspired */

/* General WooCommerce Styling */
.woocommerce {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Headings */
.woocommerce h1,
.woocommerce h2,
.woocommerce h3 {
    font-family: 'Playfair Display', serif;
    color: #141210;
}

/* Buttons - All variations with high specificity */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce-page .button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.woocommerce-page a.button,
.woocommerce .cart .button,
.woocommerce .cart button,
.woocommerce input[type="submit"],
.woocommerce button[type="submit"],
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart button[name="update_cart"],
body.woocommerce-checkout button#place_order {
    background: #d6a35b !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    transition: background-color 0.2s !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce-page .button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover,
.woocommerce-page a.button:hover,
.woocommerce .cart .button:hover,
.woocommerce .cart button:hover,
.woocommerce input[type="submit"]:hover,
.woocommerce button[type="submit"]:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart button[name="update_cart"]:hover,
body.woocommerce-checkout button#place_order:hover {
    background: #c06e3c !important;
    color: white !important;
}

/* Secondary/Alt Buttons */
.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce-page .button.alt,
.woocommerce input.button.alt {
    background: #c06e3c !important;
}

.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce-page .button.alt:hover,
.woocommerce input.button.alt:hover {
    background: #d6a35b !important;
}

/* Disabled buttons */
.woocommerce .button:disabled,
.woocommerce .button.disabled,
.woocommerce .button[disabled],
.woocommerce button:disabled,
.woocommerce button.disabled,
.woocommerce button[disabled] {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.woocommerce .button:disabled:hover,
.woocommerce button:disabled:hover {
    background: #9ca3af !important;
}

/* WooCommerce Blocks Buttons */
.wc-block-components-button,
.wp-element-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.contained,
button.wc-block-components-button,
a.wc-block-components-button,
.wc-block-components-button.wc-block-components-button--contained,
.wc-block-cart__submit-container button,
.wc-block-checkout__actions button {
    background: #d6a35b !important;
    background-color: #d6a35b !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    transition: background-color 0.2s !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.wc-block-components-button:hover,
.wp-element-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
button.wc-block-components-button:hover,
a.wc-block-components-button:hover,
.wc-block-cart__submit-container button:hover,
.wc-block-checkout__actions button:hover {
    background: #c06e3c !important;
    background-color: #c06e3c !important;
    color: white !important;
}

/* WooCommerce Blocks Disabled */
.wc-block-components-button:disabled,
.wc-block-components-button[disabled],
button.wc-block-components-button:disabled {
    background: #9ca3af !important;
    background-color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Override any block theme button styles */
.wp-block-button__link.wc-block-components-button {
    background: #d6a35b !important;
    background-color: #d6a35b !important;
}

.wp-block-button__link.wc-block-components-button:hover {
    background: #c06e3c !important;
    background-color: #c06e3c !important;
}

/* Product Cards on Shop Page */
.woocommerce ul.products li.product {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.woocommerce ul.products li.product img {
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    aspect-ratio: 1;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #141210;
    margin: 1rem 0 0.5rem;
}

.woocommerce ul.products li.product .price {
    color: #141210;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Single Product Page */
.woocommerce div.product {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 2rem;
}

.woocommerce div.product .product_title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #141210;
    margin-bottom: 1rem;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.woocommerce div.product p.price {
    color: #141210;
    font-size: 2rem;
    font-weight: 700;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: #6b7280;
    line-height: 1.75;
}

/* Variations/Attributes */
.woocommerce .variations select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: white;
    color: #141210;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s;
}

.woocommerce .variations select:hover {
    border-color: #d6a35b;
}

.woocommerce .variations select:focus {
    outline: none;
    border-color: #d6a35b;
    box-shadow: 0 0 0 3px rgba(214, 163, 91, 0.1);
}

.woocommerce .variations label {
    font-weight: 600;
    color: #141210;
    margin-bottom: 0.5rem;
    display: block;
}

/* Quantity Input */
.woocommerce .quantity input.qty {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-weight: 500;
    text-align: center;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
    border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: transparent;
    border-bottom: 2px solid #d6a35b;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #6b7280;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #141210;
}

/* Cart Page */
.woocommerce table.shop_table {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    overflow: hidden;
    width: 100%;
}

.woocommerce table.shop_table th {
    background: #f9fafb;
    color: #141210;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce table.shop_table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.woocommerce table.shop_table td.product-thumbnail img {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* Remove product links from cart */
.woocommerce-cart table.cart td.product-name a,
.woocommerce-cart table.cart td.product-thumbnail a {
    pointer-events: none;
    cursor: default;
    color: inherit;
    text-decoration: none;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 1.5rem;
}

/* Checkout Page */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 16px;
    margin-bottom: 2rem;
}

/* Hide express payment methods on checkout */
.woocommerce-checkout .woocommerce-checkout-payment ul.wc_payment_methods li[class*="payment_method_"] img,
.woocommerce-checkout #payment ul.payment_methods li img,
.woocommerce-checkout .payment_method_stripe img,
.woocommerce-checkout .payment_method_paypal img {
    display: none !important;
}

/* Improve form spacing */
.woocommerce form .form-row {
    margin-bottom: 1.25rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    width: 100%;
    font-size: 1rem;
    line-height: 1.5;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #d6a35b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 163, 91, 0.1);
}

.woocommerce form .form-row label {
    font-weight: 600;
    color: #141210;
    margin-bottom: 0.625rem;
    display: block;
}

/* Better spacing for two-column form rows */
.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
    margin-bottom: 1.25rem;
}

/* Checkout headings */
.woocommerce-checkout h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #141210;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Payment methods section */
/*.woocommerce-checkout #payment {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 2rem;
    margin-bottom: 2rem;
}*/

.woocommerce-checkout #payment ul.payment_methods {
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 600;
    color: #141210;
}

.woocommerce-checkout #payment div.payment_box {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1rem 0 0 0;
}

/* Order review spacing */
.woocommerce-checkout-review-order {
    padding: 0;
}

.woocommerce-checkout-review-order-table {
    margin-bottom: 1.5rem;
}


.woocommerce-account .page-content .woocommerce {
    display: flex;
}

/* My Account Page */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 1rem;
    width: 250px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #6b7280;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #f9fafb;
    color: #141210;
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 1.5rem;
    flex: 1;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid;
    margin-bottom: 1.5rem;
}

.woocommerce-message {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.woocommerce-info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.woocommerce-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.woocommerce-breadcrumb a {
    color: #d6a35b;
}

.woocommerce-breadcrumb a:hover {
    color: #c06e3c;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    margin-top: 2rem;
}

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

.woocommerce nav.woocommerce-pagination ul li {
    border: 1px solid #e5e7eb;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 0.5rem 0.75rem;
    color: #141210;
    background: white;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #d6a35b;
    color: white;
}

/* Result Count and Ordering */
.woocommerce-result-count,
.woocommerce-ordering select {
    color: #6b7280;
    font-size: 0.875rem;
}

.woocommerce-ordering select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
}

/* Remove default WooCommerce borders and styling that conflicts */
.woocommerce-page .entry-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #141210;
    margin-bottom: 1.5rem;
}

.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-main {
    background: #fff;
}

.wc-block-components-main {
    padding: 16px;
    border: 1px solid hsla(0, 0%, 7%, .11);
    border-radius: 5px;
    box-sizing: border-box;
}

/* Login / Register Pages */
.woocommerce-account:not(.logged-in) .woocommerce {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    justify-content: center;
}

/* Center single column on login-only pages */
.woocommerce-account:not(.logged-in) .woocommerce > :only-child {
    margin: 0 auto;
    max-width: 500px;
}

.woocommerce-form-login,
.woocommerce-form-register {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.woocommerce-form-login h2,
.woocommerce-form-register h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    color: #141210;
    margin-bottom: 1.5rem;
}

.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
    margin-bottom: 1rem;
}

.woocommerce-form-login label,
.woocommerce-form-register label {
    display: block;
    font-weight: 600;
    color: #141210;
    margin-bottom: 0.5rem;
}

.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="email"],
.woocommerce-form-register input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: white;
    color: #141210;
}

.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus {
    border-color: #d6a35b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 163, 91, 0.1);
}

.woocommerce-form-login .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.woocommerce-form-login .lost_password {
    text-align: right;
    margin-top: 1rem;
}

.woocommerce-form-login .lost_password a,
.woocommerce-form-register a {
    color: #d6a35b;
    text-decoration: none;
    transition: color 0.2s;
}

.woocommerce-form-login .lost_password a:hover,
.woocommerce-form-register a:hover {
    color: #c06e3c;
}

/* Lost Password Form */
.woocommerce-ResetPassword,
.woocommerce-lost-password {
    max-width: 500px;
    margin: 0 auto;
}

.woocommerce-ResetPassword form,
.woocommerce-lost-password form {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 2rem;
}

.woocommerce-ResetPassword h2,
.woocommerce-lost-password h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    color: #141210;
    margin-bottom: 1rem;
}

.woocommerce-ResetPassword p,
.woocommerce-lost-password p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.woocommerce-ResetPassword .form-row,
.woocommerce-lost-password .form-row {
    margin-bottom: 1rem;
}

.woocommerce-ResetPassword label,
.woocommerce-lost-password label {
    display: block;
    font-weight: 600;
    color: #141210;
    margin-bottom: 0.5rem;
}

.woocommerce-ResetPassword input[type="text"],
.woocommerce-ResetPassword input[type="email"],
.woocommerce-ResetPassword input[type="password"],
.woocommerce-lost-password input[type="text"],
.woocommerce-lost-password input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: white;
    color: #141210;
}

.woocommerce-ResetPassword input:focus,
.woocommerce-lost-password input:focus {
    border-color: #d6a35b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 163, 91, 0.1);
}

.woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.woocommerce-account:not(.logged-in) .woocommerce {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.wc-block-checkout__actions .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text {
    align-items: center;
    display: flex;
    text-align: center;
    justify-content: center !important;
}

.wc-block-components-express-payment,
.wc-block-components-express-payment-continue-rule--checkout {
    /*display: none !important;*/
}

/* Order Received / Thank You Page */
.woocommerce-order-received .woocommerce-notice {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 1.5rem 2rem;
    border-radius: 1.125rem;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.woocommerce-order-received .woocommerce-order {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.woocommerce-order-received .woocommerce-order h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    color: #141210;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce-order-received .woocommerce-order-overview {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.woocommerce-order-received .woocommerce-order-overview li {
    background: #f9fafb;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.woocommerce-order-received .woocommerce-order-overview li strong {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.woocommerce-order-received .woocommerce-order-overview li span,
.woocommerce-order-received .woocommerce-order-overview li .woocommerce-Price-amount {
    color: #141210;
    font-size: 1.25rem;
    font-weight: 700;
}

.woocommerce-order-received .woocommerce-table--order-details {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.woocommerce-order-received .woocommerce-table--order-details thead {
    background: #f9fafb;
}

.woocommerce-order-received .woocommerce-table--order-details th {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #141210;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce-order-received .woocommerce-table--order-details td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot th,
.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    border-top: 2px solid #e5e7eb;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 1.25rem;
    color: #141210;
    padding: 1.25rem;
}

.woocommerce-order-received .woocommerce-customer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.woocommerce-order-received .woocommerce-customer-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #141210;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-order-received .woocommerce-customer-details address {
    color: #6b7280;
    line-height: 1.75;
    font-style: normal;
}

.woocommerce-order-received .woocommerce-customer-details p {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.wc-block-components-express-payment-continue-rule--cart {
    /*display: none !important;*/
}

/* Fiscal Data Fields (Partita IVA e Codice Fiscale Plugin) */
/*
#cf_piva_checkout {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
*/

#cf_piva_checkout h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #141210;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Hide fiscal fields initially (will be shown by JS based on selection) */
#cf_piva_checkout .cf-only,
#cf_piva_checkout .piva-only {
    display: none;
}

/* Fiscal data form rows */
#cf_piva_checkout .form-row {
    margin-bottom: 1rem;
}

#cf_piva_checkout .form-row label {
    display: block;
    font-weight: 600;
    color: #141210;
    margin-bottom: 0.5rem;
}

#cf_piva_checkout .form-row input[type="text"],
#cf_piva_checkout .form-row input[type="email"],
#cf_piva_checkout .form-row select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: white;
    color: #141210;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#cf_piva_checkout .form-row input:focus,
#cf_piva_checkout .form-row select:focus {
    border-color: #d6a35b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 163, 91, 0.1);
}

#cf_piva_checkout .form-row select {
    cursor: pointer;
}

/* Required field asterisk */
#cf_piva_checkout .form-row label .required {
    color: #dc2626;
    margin-left: 0.25rem;
}

/* Clear fix for fiscal data section */
#cf_piva_checkout + .clear {
    clear: both;
}

/* Fiscal data on order confirmation/thank you page */
.woocommerce-cf-piva,
#woocommerce-cf-piva {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.woocommerce-cf-piva h3,
#woocommerce-cf-piva h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #141210;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-cf-piva ul,
#woocommerce-cf-piva ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-cf-piva ul li,
#woocommerce-cf-piva ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
    line-height: 1.75;
}

.woocommerce-cf-piva ul li:last-child,
#woocommerce-cf-piva ul li:last-child {
    border-bottom: none;
}

.woocommerce-cf-piva ul li strong,
#woocommerce-cf-piva ul li strong {
    color: #141210;
    font-weight: 600;
    margin-right: 0.5rem;
}

.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 30px;
}

.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox {
    font-size: 18px;
}