.checkout-container * {
    box-sizing: border-box;
}

.checkout-content-wrapper > *{
    min-width: 0;
}

.checkout-container{
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, calc(0.842rem + 4.752vw), 5rem) clamp(1.25rem, calc(0.96rem + 1.188vw), 2rem);
    gap: clamp(1.5rem, calc(1.114rem + 1.584vw), 2.5rem);
}

.checkout-container h1{
    font-size: clamp(1.75rem, 1.4714rem + 1.1429vw, 2.5rem) !important;
    font-family: "Cormorant", serif !important;
    font-weight: 600 !important;
    margin: 0px;
}

.checkout-content-wrapper{
    display: grid;
    grid-template-columns: 1.5fr 1fr ;
    gap: 2.5rem;
    min-width: 0;
}

/* Tablet + Mobile */
@media (max-width: 1024px) {
    .checkout-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.checkout-form-wrappers .checkout-form-section .billing-details-fields,
.checkout-form-wrappers .checkout-form-section .shipping-details-fields{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.shipping-details-section{
    display: none;
}

.shipping-details-section.active{
    display: block;
}

.checkout-form{
    display: flex;
    flex-direction: column;
    gap: 24px;

}

.checkout-form-wrappers h2{
    font-family: "Cormorant", serif !important;
    font-weight: 700 !important;
    font-size: clamp(1rem, 0.9536rem + 0.1905vw, 1.125rem) !important;
    color: #0B0B0B !important;
    margin: 0px;
    margin-bottom: 16px;
}

.checkout-form-wrappers .two-column-input{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
    width: 100%;
}
.checkout-items-summary .subtotal-items-wrapper{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #BDBDBD;
}

.checkout-items-summary .subtotal-items-wrapper .subtotal-wrapper,
.checkout-items-summary .subtotal-items-wrapper .shipping-wrapper,
.checkout-items-summary .subtotal-items-wrapper .total-wrapper{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-family: "Cormorant", serif;
    font-weight: 800;
    font-size: clamp(1rem, 0.9536rem + 0.1905vw, 1.125rem);
}



.payment-options-wrapper{
    display: flex;
    flex-direction: column;
    gap:12px;
    padding-top: 16px;
    padding-bottom: 24px;
}


.payment-option{
    display: flex;
    flex-direction: column;
    gap:24px;
}



.payment-option .payment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;

    font-family: "Cormorant", serif;
    font-weight: 500;
    font-size: clamp(1rem, 0.9536rem + 0.1905vw, 1.125rem);
    color: #0B0B0B;
}

/* ACCORDION */
.payment-option .payment-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    max-height: 0;
    overflow: hidden;

    opacity: 0;

    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        margin-top 0.35s ease;

    margin-top: 0;
}

/* ACTIVE */
.payment-option.active .payment-content {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
}
.payment-option .payment-content .logo{
    height: 32px;
    width: 80px;
    object-fit: contain;
    object-position: center center;
}

.payment-option .payment-content .card-fields{
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 12px;

}

@media (max-width: 768px){

    .checkout-form-wrappers .two-column-input{
        grid-template-columns: 1fr;
    }

    .payment-option .payment-content .card-fields .card-row{
        grid-template-columns: 1fr;
    }

}
.payment-option .payment-content .card-fields input{
    font-family: "Inter", sans-serif;
    font-size: clamp(0.875rem, 0.8286rem + 0.1905vw, 1rem);
    color: #0B0B0B;
    font-weight: 400;
    border: 1px solid #BDBDBD;
    background-color: transparent;
    padding: 0.75rem;
    line-height: 1.4;
    outline: none;
}

.payment-option .payment-content .card-fields .card-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

span.shipp-to-diff-add-prompt {
    display: flex;
    gap: 8px !important;
    align-items: center;
    color: #0B0B0B !important !important;
	font-family: "Cormorant", serif !important	;
}

span.shipp-to-diff-add-prompt label{
    margin:0px !important;
    color: #0B0B0B  !important;
	font-family: "Cormorant", serif !important	;
	opacity:1 !important;
	font-weight:600;
}


input[type="radio"],
input[type="checkbox"]{
    accent-color: #0B0B0B;
    cursor: pointer;
}



.checkout-form-wrappers,
.checkout-items-summary,
.checkout-form,
.checkout-form-section,
.payment-options-wrapper,
.payment-option,
.payment-content{
    min-width: 0;
    width: 100%;
}


/* ── Custom Flow: Checkout additions ────────────────────────────────────── */

/* Coupon row in summary (same style as subtotal/shipping/total) */
.checkout-items-summary .subtotal-items-wrapper .coupon-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-family: "Cormorant", serif;
    font-weight: 600;
    font-size: clamp(1rem, 0.9536rem + 0.1905vw, 1.125rem);
    color: #2e7d32;
}

/* WC field wrapper reset — prevent WC default styles conflicting */
.custom-flow-checkout .woocommerce-input-wrapper {
    width: 100%;
    display: block;
}

.custom-flow-checkout p.form-row {
    margin: 0;
    padding: 0;
}

/* All WC-rendered inputs match our design */
.custom-flow-checkout .input-text,
.custom-flow-checkout textarea.input-text,
.custom-flow-checkout select {
    font-family: "Inter", sans-serif;
    font-size: clamp(0.875rem, 0.8286rem + 0.1905vw, 1rem);
    color: #0B0B0B;
    font-weight: 400;
    border: 1px solid #BDBDBD;
    background-color: transparent;
    padding: 0.75rem;
    line-height: 1.4;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.custom-flow-checkout .input-text:focus,
.custom-flow-checkout select:focus {
    border-color: #0B0B0B;
}

/* WC validation error highlight */
.custom-flow-checkout .woocommerce-invalid .input-text,
.custom-flow-checkout .woocommerce-invalid select {
    border-color: #e53935;
}

/* WC validation labels */
.custom-flow-checkout .woocommerce-error,
.custom-flow-checkout ul.woocommerce-error {
    background: #fff5f5;
    border: 1px solid #e53935;
    color: #c62828;
    padding: 0.75rem 1rem;
    list-style: none;
    margin: 0 0 1rem;
    font-family: "Inter", sans-serif;
    font-size: clamp(0.875rem, 0.8286rem + 0.1905vw, 1rem);
}

/* Order notes textarea */
.checkout-form textarea {
    font-family: "Inter", sans-serif;
    font-size: clamp(0.875rem, 0.8286rem + 0.1905vw, 1rem);
    color: #0B0B0B;
    border: 1px solid #BDBDBD;
    background-color: transparent;
    padding: 0.75rem;
    line-height: 1.4;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

/* Shipping section top gap */
.checkout-form .shipping-details-section {
    margin-top: 1.5rem;
}

/* Place Order button loading state (WC adds .loading class) */
#place_order.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* WC notices on checkout page */
.checkout-container .woocommerce-info,
.checkout-container .woocommerce-message {
    background: #f0faf0 ;
    border: 1px solid #4caf50;
    color: #2e7d32;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-family: "Inter", sans-serif;
    font-size: clamp(0.875rem, 0.8286rem + 0.1905vw, 1rem);
}

.woocommerce-form-coupon-toggle {
    display: none !important;
}