.jfc-buy-now { margin-inline-start: 8px; }
.jfc-buy-now[aria-busy="true"] { opacity: .65; cursor: wait; }
.jfc-buy-error { clear: both; color: #ba253a; padding-top: 12px; }
.jfc-checkout { box-sizing: border-box; background: #fff; border: 1px solid #e7e7e7; padding: 40px clamp(20px, 6vw, 90px); margin: 18px 0 32px; color: #555; }
.jfc-checkout *, .jfc-checkout *::before, .jfc-checkout *::after { box-sizing: border-box; }
.jfc-checkout .jfc-progress { display: flex; list-style: none; padding: 0; margin: 8px 0 60px; counter-reset: none; }
.jfc-checkout .jfc-progress li { position: relative; flex: 1; text-align: center; list-style: none; margin: 0; padding: 0; font-size: 14px; color: #888; }
.jfc-checkout .jfc-progress li::after { content: ''; position: absolute; height: 3px; background: #ccc; top: 21px; inset-inline-start: calc(50% + 32px); width: calc(100% - 64px); }
.jfc-checkout .jfc-progress li:last-child::after { display: none; }
.jfc-checkout .jfc-progress span { display: block; width: 44px; height: 44px; line-height: 44px; border-radius: 50%; margin: 0 auto 16px; color: #fff; background: #c5c5c5; font-size: 24px; }
.jfc-checkout .jfc-progress [aria-current="step"] { color: var(--jfc-accent, #42b44b); }
.jfc-checkout .jfc-progress [aria-current="step"] span { background: var(--jfc-accent, #42b44b); }
.jfc-checkout #order_review, .jfc-checkout #customer_details, .jfc-checkout form.checkout { float: none; width: 100%; padding: 0; margin: 0; border: 0; }
.jfc-checkout #order_review_heading { float: none; width: 100%; font-size: 20px; margin: 0 0 20px; padding: 0; border: 0; }
.jfc-checkout .jfc-payment-heading { font-size: 20px; margin: 26px 0 0; }
.jfc-checkout table.shop_table { border: 0; border-collapse: collapse; width: 100%; margin-bottom: 26px; background: transparent; }
.jfc-checkout table.shop_table th, .jfc-checkout table.shop_table td { padding: 12px 20px; background: transparent; border: 0; border-bottom: 1px solid #eee; vertical-align: middle; }
.jfc-checkout table.shop_table thead th { font-weight: 400; font-size: 13px; color: #888; }
.jfc-checkout table.shop_table .product-total, .jfc-checkout table.shop_table tfoot td { text-align: right; white-space: nowrap; }
.jfc-checkout .jfc-product { display: flex; align-items: center; gap: 18px; }
.jfc-checkout .jfc-product-image { flex: 0 0 80px; }
.jfc-checkout .jfc-product-image img { display: block; width: 80px; height: 80px; object-fit: cover; max-width: 100%; }
.jfc-checkout .jfc-product-info { min-width: 0; overflow-wrap: anywhere; color: #4485ba; }
.jfc-checkout .jfc-unit-price { font-size: 13px; color: #777; margin-top: 10px; }
.jfc-checkout .product-quantity { color: #777; font-weight: 400; white-space: nowrap; }
.jfc-checkout .variation { margin: 6px 0 0; font-size: 13px; color: #777; }
.jfc-checkout .woocommerce-billing-fields > h3 { display: none; }
.jfc-checkout .jfc-customer-details { clear: both; margin: 16px 0 32px !important; }
.jfc-checkout .form-row { float: none; padding: 0; margin: 0 0 12px; }
.jfc-checkout .form-row label { display: block; margin-bottom: 8px; font-weight: 400; }
.jfc-checkout .form-row input.input-text { border: 1px solid #ddd; border-radius: 2px; padding: 12px; width: 100%; min-height: 44px; background: #fff; color: #444; }
.jfc-checkout .form-row input:focus { outline: 2px solid #4485ba; outline-offset: 1px; }
.jfc-checkout .woocommerce-invalid input.input-text { border-color: #c72d43; }
.jfc-checkout #payment { clear: both; background: transparent; border-radius: 0; }
.jfc-checkout #payment ul.payment_methods { padding: 20px 0 30px; margin: 0; border-bottom: 1px solid #eee; }
.jfc-checkout #payment ul.payment_methods li { list-style: none; margin-bottom: 10px; }
.jfc-checkout #payment ul.payment_methods label { display: inline-block; }
.jfc-checkout #payment .place-order { margin: 0; padding: 24px 0 0; }
.jfc-checkout #payment .payment_box { background: #f7f7f7; border-radius: 2px; }
.jfc-checkout .jfc-pay-total { text-align: right; margin: 20px 0 18px; color: #888; }
.jfc-checkout .jfc-pay-total > strong { color: #f04752; font-size: 30px; font-weight: 500; }
.jfc-checkout .jfc-pay-total small { display: block; font-size: 12px; color: #888; }
.jfc-checkout #place_order { display: block; float: none; margin: 0 0 0 auto; width: auto; min-width: 120px; min-height: 44px; padding: 12px 22px; border: 0; border-radius: var(--jfc-radius, 3px); background: var(--jfc-button, #e9324b); color: #fff; cursor: pointer; }
.jfc-checkout #place_order:hover { filter: brightness(.92); }
.jfc-checkout form.processing #place_order { opacity: .65; cursor: wait; }
.jfc-checkout .woocommerce-privacy-policy-text, .jfc-checkout .woocommerce-terms-and-conditions-wrapper { font-size: 13px; line-height: 1.65; }
.jfc-checkout .woocommerce-error { color: #b42338; }
.jfc-checkout .jfc-step-done { color: var(--jfc-accent, #42b44b); }
.jfc-checkout .jfc-step-done span, .jfc-checkout .jfc-step-done::after { background: var(--jfc-accent, #42b44b); }
.jfc-checkout .jfc-order-identifiers { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 24px; margin: 24px 20px; }
.jfc-checkout .jfc-order-identifiers dt, .jfc-checkout .jfc-order-identifiers dd { margin: 0; overflow-wrap: anywhere; }
.jfc-checkout .jfc-order-status { padding: 16px 20px; background: #f6f8fa; }
.jfc-checkout .jfc-status-message, .jfc-checkout .jfc-payment-notice { font-size: 14px; color: #666; }
.jfc-checkout .product-purchase-note td { white-space: normal; overflow-wrap: anywhere; }
.jfc-checkout .jfc-refresh-status, .jfc-checkout .jfc-retry-payment .button { min-height: 44px; }
@media (max-width: 600px) {
    .jfc-checkout { padding: 24px 16px; margin-top: 8px; }
    .jfc-checkout .jfc-progress { margin-bottom: 32px; }
    .jfc-checkout .jfc-progress li { font-size: 11px; }
    .jfc-checkout .jfc-progress span { width: 34px; height: 34px; line-height: 34px; font-size: 20px; margin-bottom: 10px; }
    .jfc-checkout .jfc-progress li::after { top: 16px; inset-inline-start: calc(50% + 22px); width: calc(100% - 44px); height: 2px; }
    .jfc-checkout .jfc-product { gap: 10px; align-items: flex-start; }
    .jfc-checkout .jfc-product-image { flex-basis: 50px; }
    .jfc-checkout .jfc-product-image img { width: 50px; height: 60px; }
    .jfc-checkout .jfc-product-info { font-size: 13px; }
    .jfc-checkout table.shop_table th, .jfc-checkout table.shop_table td { padding-inline: 12px; }
    .jfc-checkout table.shop_table .product-total { font-size: 13px; }
    .jfc-checkout .jfc-order-identifiers { margin-inline: 12px; gap: 10px 12px; font-size: 13px; }
    .jfc-checkout .jfc-pay-total > strong { font-size: 26px; }
    .jfc-checkout #place_order { width: 100%; }
}

/* Payment options and submission share the main checkout surface, without an inner card. */
.jfc-checkout #payment, .jfc-checkout #payment .place-order { border: 0; box-shadow: none; background: transparent; overflow: visible; }
.jfc-checkout #payment ul.payment_methods { border: 0; box-shadow: none; }
.jfc-gateway-label [hidden] { display: none !important; }
.jfc-gateway-label .jfc-gateway-icon img { max-width: 120px; height: 28px; width: auto; object-fit: contain; }
.jfc-checkout .jfc-status-message:empty { display: none; }
.jfc-checkout .jfc-order-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.jfc-checkout .jfc-order-actions .button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 140px; width: 140px; height: 44px; min-height: 44px; margin: 0; padding: 2px 6px; border: 1px solid; border-radius: var(--jfc-result-radius, 12px); box-shadow: none; font-size: 14px; line-height: 18px; white-space: normal; overflow-wrap: anywhere; text-align: center; text-decoration: none; }
.jfc-checkout .jfc-order-actions .jfc-retry-payment { background: var(--jfc-retry, #e9324b); border-color: var(--jfc-retry, #e9324b); color: #fff; }
.jfc-pay-form #place_order { background: var(--jfc-button, #e9324b); color: #fff; border-radius: var(--jfc-radius, 3px); }
.jfc-checkout .jfc-order-actions .jfc-refresh-status { color: var(--jfc-refresh, #e9324b); border-color: var(--jfc-refresh, #e9324b); background: #fff; }
.jfc-checkout .jfc-order-actions .button:hover { filter: brightness(.92); }
.jfc-checkout .jfc-order-actions .button:focus-visible { outline: 2px solid var(--jfc-button, #e9324b); outline-offset: 3px; }
.jfc-checkout .jfc-order-actions [aria-busy="true"] { opacity: .6; cursor: wait; }
@media (max-width: 600px) {
    .jfc-checkout .jfc-order-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 140px)); }
    .jfc-checkout .jfc-order-actions .button { width: 100%; min-width: 0; }

}

.jfc-checkout .jfc-order-actions .jfc-long-label { font-size: 12px; }
.jfc-checkout .jfc-contact-rule { margin: 12px 0; color: #666; font-size: 13px; }
