html body .woocommerce ul.products li.product .wpcp3-order-now-button,
html body .elementor-widget-woocommerce-products html body .wpcp3-order-now-button {
    /* v0.7.82: Stacked is the real default even on themes that force loop buttons inline.
       Side-by-side mode still overrides this inside the dedicated actions wrapper. */
    display: block !important;
    clear: both;
    width: var(--wpcp3-archive-width, 100%) !important;
    max-width: 100%;
    margin-top: var(--wpcp3-archive-gap, 8px);
    box-sizing: border-box;
    text-align: center;
}

html body .wpcp3-order-now-button {
    background: var(--wpcp3-order-bg, #ddb45a) !important;
    color: var(--wpcp3-order-color, #111) !important;
    border: var(--wpcp3-order-border, 0 solid transparent) !important;
    border-radius: var(--wpcp3-order-radius, 5px) !important;
    padding: var(--wpcp3-order-py, 12px) var(--wpcp3-order-px, 22px) !important;
    font-size: var(--wpcp3-order-fs, 16px) !important;
    font-weight: var(--wpcp3-order-fw, 500) !important;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .18s ease;
}

html body .wpcp3-order-now-button:hover,
html body .wpcp3-order-now-button:focus {
    background: var(--wpcp3-order-hover-bg, #cfa34b) !important;
    color: var(--wpcp3-order-hover-color, #111) !important;
}

.wpcp3-single-order-wrap {
    width: 100%;
    margin-top: 14px;
}

.wpcp3-single-order-wrap .wpcp3-single-order-now {
    display: block;
    width: var(--wpcp3-single-width, 100%);
    max-width: 100%;
    margin: var(--wpcp3-single-margin, 0);
}

.wpcp3-elementor-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .wpcp3-single-order-wrap .wpcp3-single-order-now {
        width: var(--wpcp3-tablet-width, 100%);
    }
}

@media (max-width: 767px) {
    .wpcp3-single-order-wrap .wpcp3-single-order-now {
        width: var(--wpcp3-mobile-width, 100%);
    }
}


/* v0.7.79 — optional Home / Shop / Category button layout.
   The wrapper is only created when Side by Side is enabled for at least one
   breakpoint, so existing Stacked layouts keep their original markup. */
.wpcp379-archive-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--wpcp3-archive-gap, 8px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.wpcp379-archive-actions > .wpcp3-archive-order-now {
    margin-top: 0 !important;
}

/* v0.7.117 — honor Gap Between Buttons on custom stacked product cards too.
   Some themes bypass WooCommerce's standard loop wrapper, so the historical
   margin rule never matched. Only confirmed Checkout Board dual-action cards
   without the dedicated action wrapper receive this spacing. */
.wpcp3109-archive-card.wpcp3117-dual-actions:not(.wpcp3117-actions-wrapped) .wpcp3-archive-order-now {
    margin-top: var(--wpcp3-archive-gap, 8px) !important;
}

/* v0.7.118 — optional unified archive card design.
   Applied only to confirmed Checkout Board archive cards after the merchant
   explicitly enables it. Theme/WooCommerce native-only mode and the main
   single-product wrapper are never targeted. */
.wpcp3118-unified-card {
    background: var(--wpcp3118-card-bg, #fff) !important;
    border: var(--wpcp3118-card-border, 1px solid #e5e7eb) !important;
    border-radius: var(--wpcp3118-card-radius, 10px) !important;
    box-shadow: var(--wpcp3118-card-shadow, 0 2px 10px rgba(15,23,42,.10)) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
}
.wpcp3118-unified-card .wpcp3118-unified-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: var(--wpcp3118-image-ratio, 1 / 1);
    object-fit: var(--wpcp3118-image-fit, contain) !important;
    object-position: center center !important;
    background: #fff;
    margin: 0 !important;
    border-radius: 0 !important;
}
.wpcp3118-unified-card .wpcp3118-unified-title {
    display: block;
    margin: 12px var(--wpcp3118-card-pad, 14px) 6px !important;
    max-width: calc(100% - (var(--wpcp3118-card-pad, 14px) * 2)) !important;
    box-sizing: border-box;
    text-align: center;
}
.wpcp3118-unified-card .wpcp3118-unified-price {
    display: block;
    margin: 0 var(--wpcp3118-card-pad, 14px) 10px !important;
    max-width: calc(100% - (var(--wpcp3118-card-pad, 14px) * 2)) !important;
    box-sizing: border-box;
    text-align: center;
}
.wpcp3118-unified-card > .wpcp379-archive-actions,
.wpcp3118-unified-card .wpcp379-archive-actions {
    width: calc(100% - (var(--wpcp3118-card-pad, 14px) * 2)) !important;
    max-width: calc(100% - (var(--wpcp3118-card-pad, 14px) * 2)) !important;
    margin-left: var(--wpcp3118-card-pad, 14px) !important;
    margin-right: var(--wpcp3118-card-pad, 14px) !important;
    margin-bottom: var(--wpcp3118-card-pad, 14px) !important;
    margin-top: auto;
}
.wpcp3118-unified-card .wpcp379-archive-actions.wpcp3116-align-actions {
    padding-top: var(--wpcp3116-action-offset, 0px);
}

/* v0.7.116 — Checkout Board-owned archive controls keep their structural width
   even when a custom theme/category template does not use WooCommerce's standard
   ul.products > li.product markup. This is scoped to confirmed Checkout Board
   archive cards and never targets native-only theme mode or single-product CTAs. */
.wpcp3109-archive-card .wpcp3-archive-order-now,
.wpcp379-archive-actions > .wpcp3-archive-order-now {
    display: block !important;
    clear: both;
    width: var(--wpcp3-archive-width, 100%) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center;
}
.wpcp379-archive-actions:not(.wpcp379-desktop-side):not(.wpcp379-mobile-side) > .wpcp3-primary-button,
.wpcp379-archive-actions:not(.wpcp379-desktop-side):not(.wpcp379-mobile-side) > .wpcp3-archive-order-now {
    flex: 0 0 auto;
}
.wpcp379-archive-actions.wpcp3116-align-actions {
    padding-top: var(--wpcp3116-action-offset, 0px);
}
@media (min-width: 768px) {
    .wpcp379-archive-actions.wpcp379-desktop-side {
        flex-direction: row;
        align-items: stretch;
    }
    .wpcp379-archive-actions.wpcp379-desktop-side > .wpcp3-primary-button,
    .wpcp379-archive-actions.wpcp379-desktop-side > .wpcp3-archive-order-now {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0;
        max-width: none !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
}
@media (max-width: 767px) {
    .wpcp379-archive-actions.wpcp379-mobile-side {
        flex-direction: row;
        align-items: stretch;
    }
    .wpcp379-archive-actions.wpcp379-mobile-side > .wpcp3-primary-button,
    .wpcp379-archive-actions.wpcp379-mobile-side > .wpcp3-archive-order-now {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0;
        max-width: none !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
}

/* Phase 4.2 compact quick checkout */
body.wpcp4-modal-open { overflow: hidden; }
.wpcp4-popup[hidden] { display: none !important; }
.wpcp4-popup { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 12px; box-sizing: border-box; }
.wpcp4-overlay { position: absolute; inset: 0; background: var(--wpcp4-overlay, rgba(0,0,0,.58)); backdrop-filter: blur(1px); }

.wpcp4-dialog {
    position: relative;
    z-index: 2;
    width: min(var(--wpcp4-dialog-width, 520px), calc(100vw - 24px));
    max-height: var(--wpcp4-max-height, 96vh);
    background: var(--wpcp4-popup-bg, #fff);
    border-radius: var(--wpcp4-popup-radius, 14px);
    box-shadow: 0 28px 90px rgba(15,23,42,.30);
    overflow: hidden;
    color: #172033;
}
.wpcp4-content { max-height: var(--wpcp4-max-height, 96vh); overflow-y: auto; overscroll-behavior: contain; padding: var(--wpcp4-popup-padding, 22px); box-sizing: border-box; scrollbar-width: thin; font-size: var(--wpcp43-general-font-size, 14px); line-height: var(--wpcp43-general-line-height, 1.45); }
.wpcp4-close { position: absolute; right: 13px; top: 10px; z-index: 5; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0 !important; border-radius: 8px; background: rgba(255,255,255,.92) !important; color: #1f2937 !important; font-size: 27px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.wpcp4-close:hover { background: #f4f4f5 !important; }
.wpcp4-popup-head { margin: -2px 38px 16px 0; }
.wpcp4-checkout-view > .wpcp4-popup-head h2,
.wpcp4-success-view h2 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; color: #172033; }

.wpcp4-section { margin: 0; padding: var(--wpcp43-section-spacing, 17px) 0; border-bottom: 1px solid #edf0f3; }
.wpcp4-section:last-of-type { border-bottom: 0; }
.wpcp4-section-title { display: flex; align-items: center; gap: 9px; margin: 0 0 var(--wpcp43-section-title-gap, 13px) !important; font-size: var(--wpcp43-section-title-font-size, 15px) !important; line-height: var(--wpcp43-section-title-line-height, 1.25); font-weight: 700 !important; color: #172033; }
.wpcp4-section-icon { flex: 0 0 auto; font-size: 15px; line-height: 1; }

.wpcp4-summary { padding: var(--wpcp43-summary-card-padding, 13px); background: var(--wpcp4-summary-bg, #f8fafc); border: 1px solid var(--wpcp4-summary-border, #e5e7eb); border-radius: var(--wpcp4-summary-radius, 10px); margin: 0 0 12px; }
.wpcp4-summary-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: var(--wpcp43-summary-count-font-size, 14px); }
.wpcp4-summary-header[hidden] { display: none !important; }
.wpcp4-summary-body { display: grid; gap: var(--wpcp43-summary-item-gap, 8px); }
.wpcp4-summary-item { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: var(--wpcp43-summary-row-column-gap, 11px); min-height: var(--wpcp43-summary-image-size, 52px); padding: var(--wpcp43-summary-row-padding, 8px); border: 1px solid #e8ebef; border-radius: 9px; background: #fff; }
.wpcp4-summary-thumb-wrap { position: relative; width: var(--wpcp43-summary-image-size, 52px); height: var(--wpcp43-summary-image-size, 52px); flex: 0 0 var(--wpcp43-summary-image-size, 52px); }
.wpcp4-summary-thumb { display: block; width: var(--wpcp43-summary-image-size, 52px); height: var(--wpcp43-summary-image-size, 52px); object-fit: cover; border-radius: 7px; border: 1px solid #eceff2; background: #fff; }
.wpcp4-summary-badge { position: absolute; right: -6px; top: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: #f97316; color: #fff; font-size: 11px; font-weight: 700; box-sizing: border-box; }
.wpcp4-summary-main { min-width: 0; }
.wpcp4-summary-name { font-size: var(--wpcp43-summary-name-font-size, 13px); line-height: var(--wpcp43-summary-name-line-height, 1.35); font-weight: 650; color: #172033; overflow-wrap: anywhere; }
.wpcp4-summary-variation, .wpcp4-summary-qty { margin-top: 3px; font-size: var(--wpcp43-summary-variation-font-size, 11px); line-height: 1.35; color: #6b7280; }
.wpcp4-summary-price { align-self: center; white-space: nowrap; font-size: var(--wpcp43-summary-price-font-size, 13px); font-weight: 700; color: #0f9f6e; }

.wpcp4-fields-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); row-gap: var(--wpcp43-field-gap-y, 11px); column-gap: var(--wpcp43-field-gap-x, 12px); }
.wpcp4-field-full { grid-column: 1 / -1; }
.wpcp4-field-half { grid-column: span 1; }
.wpcp4-field { min-width: 0; margin: 0; }
.wpcp4-field > label { display: block; margin: 0 0 5px; font-size: var(--wpcp43-field-label-font-size, 11px); line-height: var(--wpcp43-field-label-line-height, 1.2); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #596174; }
.wpcp4-field > label span { color: #dc2626; }
.wpcp4-control { position: relative; }
.wpcp4-control-icon { position: absolute; left: 0; top: 0; z-index: 2; width: 43px; height: var(--wpcp4-input-height, 46px); display: grid; place-items: center; border-right: 1px solid var(--wpcp4-input-border, #d9dee7); color: #657084; font-size: 14px; pointer-events: none; }
.wpcp4-field input:not([type=radio]):not([type=checkbox]),
.wpcp4-field select,
.wpcp4-field textarea { width: 100%; max-width: none; box-sizing: border-box; border: 1px solid var(--wpcp4-input-border, #d9dee7) !important; border-radius: var(--wpcp4-input-radius, 8px) !important; background: #fff !important; color: #172033 !important; font: inherit; font-size: var(--wpcp43-input-font-size, 14px); box-shadow: none !important; outline: 0; }
.wpcp4-field input:not([type=radio]):not([type=checkbox]), .wpcp4-field select { height: var(--wpcp4-input-height, 46px); min-height: var(--wpcp4-input-height, 46px); padding: 0 12px 0 55px !important; }
.wpcp4-field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23657084' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 16px !important;
}
.wpcp4-field textarea { min-height: 78px; padding: 12px 12px 12px 55px !important; resize: vertical; }
.wpcp4-field input:focus, .wpcp4-field select:focus, .wpcp4-field textarea:focus { border-color: var(--wpcp4-input-focus, #f28b52) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--wpcp4-input-focus, #f28b52) 18%, transparent) !important; }
.wpcp4-field ::placeholder { color: #9aa1ad; opacity: 1; }
.wpcp4-choice-group { display: grid; gap: 7px; }
.wpcp4-choice { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 9px 11px; border: 1px solid var(--wpcp4-card-border, #e5e7eb); border-radius: var(--wpcp4-card-radius, 10px); text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; font-weight: 500 !important; cursor: pointer; }

.wpcp4-shipping-wrap[hidden] { display: none !important; }
#wpcp4-shipping-methods { display: grid; gap: 10px; }
.wpcp4-shipping-option, .wpcp4-payment-option { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; margin: 0 !important; padding: 12px 13px; box-sizing: border-box; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.wpcp4-shipping-option { border: 1px solid var(--wpcp45-delivery-border, #e5e7eb); border-radius: var(--wpcp45-delivery-radius, 10px); background: var(--wpcp45-delivery-bg, #fff); color: var(--wpcp45-delivery-text, #30394b); }
.wpcp4-payment-option { grid-template-columns: auto minmax(0,1fr); align-items: start; border: 1px solid var(--wpcp45-payment-border, #e5e7eb); border-radius: var(--wpcp45-payment-radius, 10px); background: var(--wpcp45-payment-bg, #fff); color: var(--wpcp45-payment-text, #30394b); }
.wpcp4-payment-content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.wpcp43-cod-description { display: block; margin-top: var(--wpcp43-cod-desc-gap, 7px); color: var(--wpcp43-cod-desc-color, #667085); font-size: var(--wpcp43-cod-desc-font-size, 12px); font-weight: var(--wpcp43-cod-desc-font-weight, 400); line-height: var(--wpcp43-cod-desc-line-height, 1.45); white-space: normal; }
.wpcp4-shipping-option input:disabled { opacity: .55; }
.wpcp4-shipping-option.is-locked { cursor: default; }
.wpcp4-shipping-option:has(input:checked) { border-color: var(--wpcp45-delivery-selected, #f28b52); box-shadow: 0 0 0 1px var(--wpcp45-delivery-selected, #f28b52); background: var(--wpcp45-delivery-selected-bg, #fff8f4); }
.wpcp4-payment-option:has(input:checked) { border-color: var(--wpcp45-payment-selected, #f28b52); box-shadow: 0 0 0 1px var(--wpcp45-payment-selected, #f28b52); background: var(--wpcp45-payment-selected-bg, #fff8f4); }
.wpcp4-shipping-option input { margin: 0 !important; accent-color: var(--wpcp45-delivery-selected, #f28b52); }
.wpcp4-payment-option input { margin: 0 !important; accent-color: var(--wpcp45-payment-selected, #f28b52); }
.wpcp4-option-label { font-size: 13px; font-weight: 550; color: var(--wpcp45-delivery-text, #30394b); }
#wpcp4-cod-title { font-size: 13px; font-weight: 550; color: var(--wpcp45-payment-text, #30394b); }
.wpcp4-shipping-option strong { white-space: nowrap; margin-left: auto; font-size: 13px; color: var(--wpcp45-delivery-price, #172033); }

.wpcp4-order-totals { margin-top: 14px; padding: 13px 0 4px; border-top: 1px solid #edf0f3; }
.wpcp45-totals-section > .wpcp4-section-title { margin-top: 0 !important; }
.wpcp45-place-section > .wpcp4-section-title { margin-top: 14px !important; }
.wpcp4-totals-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 13px; color: #50596a; }
.wpcp4-totals-row strong { color: #172033; }
.wpcp4-totals-row.wpcp4-grand-total { margin-top: 6px; padding-top: 10px; border-top: 1px dashed #d9dee7; font-size: 16px; font-weight: 700; color: #172033; }
.wpcp4-note { margin: 8px 0 0; font-size: 11px; line-height: 1.4; color: #7b8492; }

.wpcp4-place-wrap { display: flex; justify-content: var(--wpcp4-place-justify, center); margin-top: 13px; }
html body #wpcp4-place-order.wpcp4-place-order { width: var(--wpcp4-place-width, 100%) !important; max-width: 100%; margin: 0 !important; box-sizing: border-box; }
.wpcp4-place-order[disabled] { opacity: .58; cursor: not-allowed; }
.wpcp4-customer-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
    padding: 10px 12px;
    border: 1px solid var(--wpcp4-notice-border, #f0d59b);
    border-radius: 8px;
    background: var(--wpcp4-notice-bg, #fff8e8);
    color: var(--wpcp4-notice-text, #5c4520);
    font-size: var(--wpcp4-notice-size, 13px);
    line-height: 1.5;
}
.wpcp4-customer-notice-icon { flex: 0 0 auto; line-height: 1.5; }
.wpcp4-customer-notice-text { min-width: 0; overflow-wrap: anywhere; }
.wpcp4-customer-notice.is-align-center { justify-content: center; text-align: center; }
.wpcp4-customer-notice.is-align-right { justify-content: flex-end; text-align: right; }
.wpcp4-regular-checkout { display: block; margin-top: 11px; text-align: center; font-size: 12px; color: #667085; }

.wpcp4-alert { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #fff1f0; border: 1px solid #f2b8b5; color: #8f1d18; font-size: 13px; }
.wpcp4-alert[hidden] { display: none !important; }

.wpcp4-duplicate-modal[hidden] { display: none !important; }
.wpcp4-duplicate-modal { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; padding: 18px; }
.wpcp4-duplicate-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .34); }
.wpcp4-duplicate-dialog { position: relative; z-index: 1; width: min(410px, calc(100% - 12px)); background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(15,23,42,.26); padding: 22px 20px 18px; text-align: center; color: #172033; }
.wpcp4-duplicate-close { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border: 0 !important; border-radius: 8px; background: #f8fafc !important; color: #344054 !important; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: none !important; }
.wpcp4-duplicate-close:hover, .wpcp4-duplicate-close:focus { background: #eef2f6 !important; }
.wpcp4-duplicate-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 999px; display: grid; place-items: center; background: #eaf8ef; color: #177a3f; font-size: 28px; font-weight: 700; }
.wpcp4-duplicate-dialog h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; font-weight: 700; color: #172033; }
.wpcp4-duplicate-message { margin: 0; font-size: 14px; line-height: 1.55; color: #475467; }
.wpcp4-duplicate-ok { margin-top: 16px; min-width: 120px; }
.wpcp4-loading, .wpcp4-error-text { padding: 12px 0; font-size: 12px; color: #7b8492; }

.wpcp4-success-view { padding: 26px 8px; text-align: center; }
.wpcp4-success-view[hidden] { display: none !important; }
.wpcp4-success-icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 999px; display: grid; place-items: center; background: #eaf8ef; color: #177a3f; font-size: 30px; font-weight: 700; }
.wpcp4-success-view h2 { margin: 0 0 10px; }
.wpcp4-success-order, .wpcp4-success-total { margin: 6px 0; }
.wpcp4-success-link { display: inline-block; margin-top: 14px; }

@media (max-width: 600px) {
    /*
     * Mobile checkout stays as a centered sheet instead of stretching to the
     * whole browser viewport. Use dynamic viewport units so browser chrome
     * (address / bottom bars) cannot hide the last checkout controls.
     */
    .wpcp4-popup {
        padding: 8px;
        place-items: center;
        align-items: center;
    }
    .wpcp4-dialog {
        width: min(var(--wpcp4-mobile-width, 96%), calc(100vw - 16px));
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        margin: auto;
        border-radius: min(var(--wpcp4-popup-radius, 14px), 12px);
    }
    .wpcp4-content {
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
        scroll-padding-bottom: 34px;
        padding: 18px 14px calc(30px + env(safe-area-inset-bottom, 0px));
    }
    .wpcp45-place-section {
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }
    .wpcp4-popup-head { margin-bottom: 14px; }
    .wpcp4-checkout-view > .wpcp4-popup-head h2, .wpcp4-success-view h2 { font-size: 19px; }
    .wpcp4-duplicate-modal { padding: 12px; }
    .wpcp4-duplicate-dialog { width: min(100%, 360px); padding: 20px 16px 16px; border-radius: 14px; }
    .wpcp4-duplicate-dialog h3 { font-size: 18px; }
    .wpcp4-duplicate-message { font-size: 13px; }
    .wpcp4-fields-grid { grid-template-columns: 1fr; }
    .wpcp4-field-half, .wpcp4-field-full { grid-column: 1 / -1; }
    .wpcp4-summary-item { grid-template-columns: auto minmax(0,1fr) auto; gap: 9px; }
    .wpcp4-summary-thumb-wrap, .wpcp4-summary-thumb { width: var(--wpcp43-summary-image-size, 52px); height: var(--wpcp43-summary-image-size, 52px); }
}

@media (max-width: 380px) {
    /* Keep the same sheet behavior on very small phones; do not force full screen. */
    .wpcp4-dialog {
        width: calc(100vw - 12px);
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
        border-radius: min(var(--wpcp4-popup-radius, 14px), 10px);
    }
    .wpcp4-content {
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    }
}


/* Phase 5.0 payment gateway engine */
#wpcp4-payment-methods{display:flex;flex-direction:column;gap:10px}
.wpcp50-payment-title{font-weight:650;line-height:1.35;color:inherit}
.wpcp50-payment-description{display:block;margin-top:5px;font-size:12px;line-height:1.45;color:#667085}
.wpcp50-payment-note{display:block;margin-top:5px;font-size:11px;line-height:1.4;color:#7a8497}


/* Phase 5.1 coupon / discount support */
.wpcp51-coupon-label{display:block;margin:0 0 6px;font-size:var(--wpcp43-field-label-font-size,11px);line-height:var(--wpcp43-field-label-line-height,1.2);font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#596174}
.wpcp51-coupon-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:stretch}
#wpcp4-popup .wpcp51-coupon-entry{width:100%;max-width:none;min-width:0;height:var(--wpcp4-input-height,46px);box-sizing:border-box;border:1px solid var(--wpcp4-input-border,#d9dee7)!important;border-radius:var(--wpcp4-input-radius,8px)!important;background:#fff!important;color:#172033!important;padding:0 12px!important;font-size:var(--wpcp43-input-font-size,14px);box-shadow:none!important;outline:0}
#wpcp4-popup .wpcp51-coupon-entry:focus{border-color:var(--wpcp4-input-focus,#f28b52)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--wpcp4-input-focus,#f28b52) 18%,transparent)!important}
.wpcp51-coupon-message{margin-top:8px;padding:8px 10px;border-radius:7px;font-size:12px;line-height:1.4}
.wpcp51-coupon-message.is-success{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}.wpcp51-coupon-message.is-error{background:#fef3f2;color:#b42318;border:1px solid #fecdca}
.wpcp51-coupon-message[hidden]{display:none!important}.wpcp51-applied-coupons{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.wpcp51-coupon-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 8px 6px 10px;border:1px solid #dfe4ec;border-radius:999px;background:#f8fafc;color:#344054;font-size:12px;font-weight:650}.wpcp51-remove-coupon{border:0!important;background:transparent!important;color:#b42318!important;padding:0!important;font-size:11px!important;text-decoration:underline!important;cursor:pointer;box-shadow:none!important}.wpcp51-discount-row strong{color:#027a48!important}
@media(max-width:480px){.wpcp51-coupon-row{grid-template-columns:1fr}.wpcp51-apply-coupon{width:100%!important}}


/* Phase 5.2 order notes / additional information */
.wpcp52-notes-label{display:block;margin:0 0 7px;font-size:var(--wpcp52-notes-label-font-size,11px);line-height:1.25;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--wpcp52-notes-label,#596174)}
#wpcp4-popup .wpcp52-order-notes{display:block;width:100%;max-width:none;min-width:0;min-height:var(--wpcp52-notes-height,96px);box-sizing:border-box;border:1px solid var(--wpcp52-notes-border,#d9dee7)!important;border-radius:var(--wpcp52-notes-radius,8px)!important;background:var(--wpcp52-notes-bg,#fff)!important;color:var(--wpcp52-notes-text,#172033)!important;padding:var(--wpcp52-notes-padding,12px)!important;font:inherit;font-size:var(--wpcp52-notes-font-size,14px)!important;line-height:1.45;box-shadow:none!important;outline:0;resize:vertical}
#wpcp4-popup .wpcp52-order-notes:focus{border-color:var(--wpcp52-notes-focus,#f28b52)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--wpcp52-notes-focus,#f28b52) 18%,transparent)!important}


/* Phase 5.3 - Elementor Free landing-page checkout widget */
.wpcp53-landing-buttons{display:flex;flex-wrap:wrap;align-items:center}.wpcp53-landing-buttons .wpcp53-order-button,.wpcp53-landing-buttons .wpcp53-cart-button{display:inline-flex;align-items:center;justify-content:center;max-width:100%;cursor:pointer}.wpcp53-landing-buttons button.is-loading{opacity:.7;cursor:wait}.wpcp53-editor-summary,.wpcp53-editor-note{margin-top:8px;font-size:12px;line-height:1.45;color:#667085}.wpcp53-editor-note.is-error{color:#b42318}.wpcp53-floating-cart{position:fixed;z-index:99990;display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:999px;text-decoration:none!important;box-shadow:0 8px 24px rgba(0,0,0,.18);line-height:1}.wpcp53-floating-cart.bottom-right{right:20px;bottom:20px}.wpcp53-floating-cart.bottom-left{left:20px;bottom:20px}.wpcp53-cart-icon{font-size:23px;line-height:1}.wpcp53-floating-count{position:absolute;right:-4px;top:-4px;min-width:21px;height:21px;padding:0 5px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;line-height:1}@media(max-width:767px){.wpcp53-floating-cart.bottom-right{right:12px;bottom:12px}.wpcp53-floating-cart.bottom-left{left:12px;bottom:12px}}

/* Phase 5.3.2 - permanently suppress the old Elementor editor helper summary.
   This also hides stale summary markup cached by Elementor/page caches from v0.5.3. */
.wpcp53-editor-summary{display:none!important}

/* v0.7.64 built-in manual mobile payment fields */
.wpcp764-manual-fields{display:none;margin:-4px 0 10px;padding:12px 14px;border:1px solid #e3e7ee;border-radius:10px;background:#fafbfc}
.wpcp764-manual-fields.is-active{display:block}
.wpcp764-manual-destination{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;margin-bottom:8px}
.wpcp764-manual-destination span{font-size:12px;color:#667085}
.wpcp764-manual-destination strong{font-size:15px;color:#172033;letter-spacing:.2px}
.wpcp764-manual-destination small{grid-column:2;font-size:11px;color:#7a8497}
.wpcp764-manual-instructions{margin:6px 0 10px;font-size:12px;line-height:1.45;color:#5f6b7a}
.wpcp764-manual-input{display:block;margin-top:8px}
.wpcp764-manual-input>span{display:block;margin-bottom:5px;font-size:12px;font-weight:600;color:#344054}
.wpcp764-manual-input em{font-style:normal;color:#d92d20}
.wpcp764-manual-input input{width:100%;min-height:40px;padding:8px 10px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;box-sizing:border-box}
.wpcp764-manual-input input:focus{outline:0;border-color:#98a2b3;box-shadow:0 0 0 2px rgba(152,162,179,.15)}

/* v0.7.69 — manual MFS brand marks + clearer Send Money / Payment guidance. */
.wpcp764-payment-title{display:inline-flex;align-items:center;gap:9px;min-height:24px}
.wpcp764-payment-logo{display:block;width:auto;height:25px;max-width:78px;object-fit:contain;flex:0 0 auto}
.wpcp764-manual-destination{padding-top:2px}
@media (max-width:480px){.wpcp764-payment-logo{height:23px;max-width:72px}}

/* v0.7.72 manual-payment accordion affordance */
.wpcp764-manual-option{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.wpcp764-manual-option::after{content:'⌄';font-size:18px;line-height:1;color:#667085;transform:rotate(0deg);transition:transform .15s ease}
.wpcp764-manual-option.is-expanded::after{transform:rotate(180deg)}
