.fbc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    z-index: 99998;
}

.fbc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 500px);
    max-height: min(82vh, 680px);
    overflow-y: auto;
    border-radius: 18px;
    z-index: 99999;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
    -webkit-overflow-scrolling: touch;
}

.fbc-modal-light {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #d7eeea;
}

.fbc-modal-inner {
    padding: 18px 20px;
    text-align: center;
}

.fbc-modal h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
    color: #0f172a;
}

.fbc-intro-copy {
    margin: 0 0 8px;
    color: #49616a;
    font-size: 14px;
}

.fbc-intro-login-line {
    margin-bottom: 18px;
}

.fbc-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    justify-content: center;
}

.fbc-btn {
    appearance: none;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.fbc-btn:hover {
    transform: translateY(-1px);
}

.fbc-btn-primary {
    background: #12939a;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(18, 147, 154, 0.18);
}

.fbc-btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border-color: #b9dcd7;
}

.fbc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    text-align: left;
}

.fbc-field {
    margin-bottom: 12px;
    text-align: left;
}

.fbc-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
}

.fbc-field input,
.fbc-field select {
    width: 100%;
    border: 1px solid #cfe8e4;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
    color: #0f172a;
    min-height: 42px;
}

.fbc-phone-wrap {
    display: grid;
    grid-template-columns: minmax(140px, 190px) 1fr;
    gap: 10px;
    align-items: center;
}

.fbc-phone-wrap-compact input[name="phone_prefix_display"] {
    text-align: center;
    font-weight: 500;
}

.fbc-phone-wrap-compact input[name="phone_local"] {
    min-width: 0;
}

.fbc-form-message {
    min-height: 22px;
    font-size: 13px;
    text-align: center;
}

.fbc-error {
    color: #d14343;
}

.fbc-success {
    color: #147d52;
}

.fbc-link-btn {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: #0f8a8d;
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
}

.fbc-inline-alt {
    margin-top: 6px;
    color: #49616a;
    font-size: 13px;
    text-align: center;
}

.fbc-coupon-code {
    font-size: 24px;
    line-height: 1;
    letter-spacing: 2px;
    font-weight: 800;
    background: #f8fafc;
    color: #0f8a8d;
    padding: 16px 18px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
}

.fbc-checkout-row td {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.fbc-checkout-notice {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    margin: 4px 0 2px;
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 500;
    box-shadow: none;
}

.fbc-checkout-notice strong {
    display: block;
    font-size: 12.8px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 3px;
}

.fbc-checkout-notice span {
    display: block;
    font-size: 11.8px;
    line-height: 1.35;
    font-weight: 500;
    opacity: .95;
}

.fbc-applied {
    background: #e8ffe6;
    color: #14532d;
    border: 1px solid #7fdc86;
}

.fbc-returning,
.fbc-success-note {
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #86efac;
}

.fbc-optout,
.fbc-none {
    background: #fff7cc;
    color: #5b4b00;
    border: 1px solid #e8d13e;
}

.fbc-danger {
    background: #ffe4e6;
    color: #8f1d1d;
    border: 1px solid #f4a3a3;
}

.fbc-inline-validate-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 9px;
    min-height: 0;
    font-size: 11.5px;
    line-height: 1.2;
    border-radius: 7px;
}

.fbc-readonly {
    background: #eef2f7 !important;
    color: #64748b !important;
    cursor: not-allowed;
}

.fbc-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.fbc-cart-coupon-note {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.fbc-cart-coupon-applied {
    background: #eefbf9;
    color: #0f6d70;
    border: 1px solid #cfe8e4;
}

.fbc-cart-coupon-none {
    background: #ffef75;
    color: #5b4b00;
    border: 1px solid #e8d13e;
}

.fbc-cart-coupon-danger {
    background: #ffd8d8;
    color: #8f1d1d;
    border: 1px solid #f0a3a3;
}

.fbc-cart-coupon-success {
    background: #c8f7c5;
    color: #14532d;
    border: 1px solid #8fdda2;
}

.fbc-admin-wrap {
    width: 100%;
}

.fbc-admin-warning {
    padding: 18px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
}

.fbc-admin-stats {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.fbc-stat-box {
    background: #0f8a8d;
    color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fbc-stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.fbc-stat-value {
    font-size: 24px;
    font-weight: 800;
}

.fbc-admin-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.fbc-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.fbc-admin-table th,
.fbc-admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e8f1f0;
}

.fbc-admin-table thead th {
    background: #0f172a;
    color: #ffffff;
}

.fbc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.fbc-page-link,
.fbc-page-current {
    padding: 10px 14px;
    border-radius: 10px;
}

.fbc-page-link {
    background: #0f8a8d;
    color: #ffffff;
    text-decoration: none;
}

.fbc-page-current {
    background: #eef2f7;
    color: #0f172a;
}

@media (max-width: 980px) {
    .fbc-admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .fbc-modal {
        width: min(94vw, 94vw);
        max-height: 90vh;
    }

    .fbc-modal-inner {
        padding: 20px;
    }

    .fbc-modal h3 {
        font-size: 20px;
    }

    .fbc-grid,
    .fbc-phone-wrap {
        grid-template-columns: 1fr;
    }

    .fbc-modal-actions {
        flex-direction: column;
    }

    .fbc-btn {
        width: 100%;
    }

    .fbc-admin-stats {
        grid-template-columns: 1fr;
    }
}

.fbc-inline-validate-btn {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #12939a;
    background: #12939a;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.fbc-admin-totals-row th {
    background: #e8fbf8 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #cfe8e4;
}

@media (max-width: 767px) {
    .fbc-inline-validate-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .fbc-modal { width: min(94vw, 420px); max-height: 90vh; }
    .fbc-modal-inner { padding: 18px; }
    .fbc-grid { grid-template-columns: 1fr; }
    .fbc-phone-wrap { grid-template-columns: 1fr; }
    .fbc-btn { width: 100%; }
}

.fbc-phone-code-select {
    position: relative;
    width: 100%;
}

.fbc-phone-code-select input[name="phone_prefix_display"] {
    padding-right: 12px;
    text-align: left;
    font-weight: 600;
}


.fbc-phone-code-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100000;
    max-height: 220px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #cfe8e4;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    padding: 6px;
}

.fbc-phone-code-open .fbc-phone-code-menu {
    display: block;
}

.fbc-phone-code-option {
    width: 100%;
    border: 0;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 8px;
    text-align: left;
}

.fbc-phone-code-option:hover,
.fbc-phone-code-option:focus {
    background: #f8fafc;
    outline: none;
}

.fbc-phone-code-main {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.fbc-phone-code-sub {
    color: #49616a;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fbc-phone-code-empty {
    cursor: default;
    color: #64748b;
    display: block;
}

.fbc-phone-code-empty:hover,
.fbc-phone-code-empty:focus {
    background: transparent;
}

.fbc-phone-code-floating-menu {
    display: none;
    position: fixed;
    z-index: 100002;
    max-height: 220px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #cfe8e4;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    padding: 6px;
}

.fbc-phone-code-floating-menu.fbc-phone-code-floating-open {
    display: block;
}

#fbc-register-modal {
    width: min(92vw, 500px);
}

#fbc-register-modal .fbc-modal-inner {
    padding: 18px 20px;
}

#fbc-register-modal .fbc-modal-actions {
    margin-top: 12px;
}

#fbc-register-modal .fbc-inline-alt {
    margin-top: 4px;
}

@media (max-height: 760px) {
    #fbc-register-modal {
        max-height: 78vh;
    }
    #fbc-register-modal .fbc-modal-inner {
        padding: 14px 18px;
    }
    #fbc-register-modal .fbc-field {
        margin-bottom: 9px;
    }
    #fbc-register-modal .fbc-field input {
        min-height: 40px;
        padding: 8px 10px;
    }
    #fbc-register-modal h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

#fbc-register-modal {
    width: min(92vw, 430px);
    max-height: min(86vh, 560px);
}

#fbc-register-modal .fbc-modal-inner {
    padding: 16px 18px;
}

#fbc-register-modal h3 {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 12px;
}

#fbc-register-modal .fbc-field {
    margin-bottom: 9px;
}

#fbc-register-modal .fbc-field label {
    margin-bottom: 5px;
    font-size: 12px;
}

#fbc-register-modal .fbc-field input {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 0;
}

#fbc-register-modal .fbc-grid {
    gap: 8px;
}

#fbc-register-modal .fbc-phone-wrap {
    grid-template-columns: minmax(120px, 155px) 1fr;
    gap: 8px;
}

#fbc-register-modal .fbc-modal-actions {
    margin-top: 8px;
    gap: 8px;
}

#fbc-register-modal .fbc-btn {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 10px;
}

#fbc-register-modal .fbc-inline-alt {
    margin-top: 8px;
    font-size: 12px;
}

.fbc-register-submit-row {
    justify-content: center;
}

.fbc-phone-code-floating-menu {
    max-height: 190px;
    border-radius: 6px;
    padding: 4px;
}

.fbc-phone-code-option {
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 4px;
    grid-template-columns: 80px 1fr;
}

.fbc-phone-code-main {
    font-size: 13px;
}

.fbc-phone-code-sub {
    font-size: 11px;
}

@media (max-width: 640px) {
    #fbc-register-modal {
        width: min(94vw, 390px);
        max-height: 88vh;
    }
    #fbc-register-modal .fbc-modal-inner {
        padding: 14px;
    }
    #fbc-register-modal .fbc-grid,
    #fbc-register-modal .fbc-phone-wrap {
        grid-template-columns: 1fr;
    }
    #fbc-register-modal .fbc-btn {
        width: 100%;
    }
}

#fbc-register-modal {
    width: min(92vw, 460px);
    max-height: min(84vh, 520px);
    overflow-y: auto;
    overflow-x: visible;
}

#fbc-register-modal .fbc-modal-inner {
    padding: 14px 16px;
}

#fbc-register-modal h3 {
    font-size: 17px;
    line-height: 1.25;
    margin: 0 0 14px;
    text-align: center;
}

#fbc-register-form .fbc-grid {
    display: block;
}

#fbc-register-form .fbc-field {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

#fbc-register-form .fbc-field label {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

#fbc-register-form .fbc-field input {
    min-height: 34px;
    height: 34px;
    padding: 6px 9px;
    border-radius: 0;
    font-size: 13px;
}

#fbc-register-form .fbc-phone-wrap {
    grid-template-columns: minmax(126px, 145px) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
}

#fbc-register-form .fbc-phone-code-select input[name="phone_prefix_display"] {
    text-align: left;
    font-weight: 600;
}

#fbc-register-form .fbc-form-message {
    min-height: 18px;
    font-size: 12px;
    margin-top: 2px;
}

#fbc-register-form .fbc-register-submit-row {
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

#fbc-register-form .fbc-register-submit-row .fbc-btn {
    min-height: 38px;
    padding: 8px 18px;
    width: auto;
}

#fbc-register-form .fbc-inline-alt {
    margin-top: 6px;
    font-size: 12px;
    text-align: center;
}

.fbc-phone-code-menu {
    display: none !important;
}

.fbc-phone-code-floating-menu {
    position: fixed;
    z-index: 100005;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    border: 1px solid #cfe8e4;
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
    padding: 4px;
}

.fbc-phone-code-floating-menu .fbc-phone-code-option {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 8px;
    min-height: 34px;
    padding: 6px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.fbc-phone-code-floating-menu .fbc-phone-code-option:hover,
.fbc-phone-code-floating-menu .fbc-phone-code-option:focus {
    background: #f5f7f8;
    outline: none;
}

.fbc-phone-code-floating-menu .fbc-phone-code-main {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.fbc-phone-code-floating-menu .fbc-phone-code-sub {
    font-size: 12px;
    color: #49616a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    #fbc-register-modal {
        width: min(94vw, 420px);
        max-height: 88vh;
    }
    #fbc-register-modal .fbc-modal-inner {
        padding: 14px;
    }
    #fbc-register-form .fbc-field {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    #fbc-register-form .fbc-phone-wrap {
        grid-template-columns: 1fr;
    }
    #fbc-register-form .fbc-register-submit-row .fbc-btn {
        width: 100%;
    }
}


#fbc-register-modal {
    width: min(92vw, 440px) !important;
    max-height: min(90vh, 540px) !important;
    overflow-y: auto !important;
    overflow-x: visible !important;
    border-radius: 16px !important;
}
#fbc-register-modal .fbc-modal-inner {
    padding: 14px 16px 12px !important;
}
#fbc-register-modal h3 {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin: 0 0 12px !important;
    text-align: center !important;
}
#fbc-register-form .fbc-grid {
    display: block !important;
}
#fbc-register-form .fbc-field {
    display: grid !important;
    grid-template-columns: 104px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 9px !important;
    text-align: left !important;
}
#fbc-register-form .fbc-field label {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    color: #0f172a !important;
}
#fbc-register-form .fbc-field input {
    height: 34px !important;
    min-height: 34px !important;
    padding: 6px 9px !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}
#fbc-register-form .fbc-phone-wrap {
    display: grid !important;
    grid-template-columns: minmax(132px, 150px) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    align-items: center !important;
}
#fbc-register-form .fbc-phone-code-select input[name="phone_prefix_display"] {
    text-align: left !important;
    font-weight: 600 !important;
}
#fbc-register-form .fbc-form-message {
    min-height: 18px !important;
    font-size: 12px !important;
    margin: 0 !important;
    text-align: center !important;
}
#fbc-register-form .fbc-register-submit-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 8px !important;
}
#fbc-register-form .fbc-register-submit-row .fbc-btn {
    min-height: 38px !important;
    padding: 8px 18px !important;
    width: auto !important;
    border-radius: 10px !important;
}
#fbc-register-form .fbc-inline-alt {
    margin-top: 8px !important;
    font-size: 12px !important;
    text-align: center !important;
}
.fbc-phone-code-menu {
    display: none !important;
}
.fbc-phone-code-floating-menu {
    position: fixed !important;
    z-index: 100005 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #ffffff !important;
    border: 1px solid #cfe8e4 !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2) !important;
    padding: 4px !important;
    display: none !important;
}
.fbc-phone-code-floating-menu.fbc-phone-code-floating-open {
    display: block !important;
}
.fbc-phone-code-floating-menu .fbc-phone-code-option {
    display: grid !important;
    grid-template-columns: 86px minmax(0, 1fr) !important;
    gap: 8px !important;
    min-height: 34px !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    text-align: left !important;
    cursor: pointer !important;
    width: 100% !important;
}
.fbc-phone-code-floating-menu .fbc-phone-code-option:hover,
.fbc-phone-code-floating-menu .fbc-phone-code-option:focus {
    background: #f5f7f8 !important;
    outline: none !important;
}
.fbc-phone-code-floating-menu .fbc-phone-code-main {
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}
.fbc-phone-code-floating-menu .fbc-phone-code-sub {
    font-size: 12px !important;
    color: #49616a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
@media (max-width: 640px) {
    #fbc-register-modal {
        width: 94vw !important;
        max-height: 90vh !important;
    }
    #fbc-register-modal .fbc-modal-inner {
        padding: 14px !important;
    }
    #fbc-register-form .fbc-field {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
        margin-bottom: 10px !important;
    }
    #fbc-register-form .fbc-phone-wrap {
        grid-template-columns: 1fr !important;
        gap: 7px !important;
    }
    #fbc-register-form .fbc-register-submit-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    #fbc-register-form .fbc-register-submit-row .fbc-btn {
        width: 100% !important;
    }
}

#fbc-register-modal {
    width: min(94vw, 430px) !important;
    max-height: min(88vh, 520px) !important;
}
#fbc-register-modal .fbc-modal-inner {
    padding: 16px !important;
}
#fbc-register-form .fbc-field {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    margin-bottom: 8px !important;
}
#fbc-register-form .fbc-field input::placeholder {
    color: #8a96a3 !important;
    opacity: 1 !important;
}
#fbc-register-form .fbc-phone-wrap {
    grid-template-columns: minmax(135px, 155px) minmax(0, 1fr) !important;
}
#fbc-register-form input[name="phone_prefix_display"] {
    color: #0f172a !important;
}
.fbc-phone-code-floating-menu {
    max-height: min(260px, 42vh) !important;
    min-width: 240px !important;
}
.fbc-phone-code-floating-menu .fbc-phone-code-option {
    min-height: 36px !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
}
@media (max-width: 640px) {
    #fbc-register-modal {
        width: 94vw !important;
        max-height: 88vh !important;
    }
    #fbc-register-form .fbc-field {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }
    #fbc-register-form .fbc-phone-wrap {
        grid-template-columns: 1fr !important;
    }
    .fbc-phone-code-floating-menu {
        width: calc(100vw - 32px) !important;
        left: 16px !important;
        right: 16px !important;
        min-width: 0 !important;
    }
}

.fbc-login-billing-note {
    margin: 6px 0 4px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: #425466 !important;
}
.fbc-login-billing-note a {
    color: #0f766e !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.fbc-login-billing-note a:hover,
.fbc-login-billing-note a:focus {
    color: #0f766e !important;
    text-decoration: underline !important;
    background: transparent !important;
}
.fbc-phone-code-floating-menu {
    max-height: min(210px, 34vh) !important;
    padding: 2px !important;
    border-radius: 7px !important;
}
.fbc-phone-code-floating-menu .fbc-phone-code-option {
    min-height: 24px !important;
    padding: 3px 6px !important;
    gap: 6px !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    align-items: center !important;
    line-height: 1.1 !important;
}
.fbc-phone-code-floating-menu .fbc-phone-code-main {
    font-size: 12px !important;
    line-height: 1.1 !important;
}
.fbc-phone-code-floating-menu .fbc-phone-code-sub {
    font-size: 11px !important;
    line-height: 1.1 !important;
}

.fbc-checkout-phone-wrap {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    width: 100%;
}

.fbc-checkout-phone-prefix {
    width: 126px;
    min-width: 126px;
    max-width: 126px;
    min-height: 42px;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #cfe8e4;
    border-radius: 8px;
    padding: 0 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    line-height: 42px;
}

.fbc-checkout-phone-wrap #billing_phone {
    width: 100% !important;
    min-width: 0;
    height: 42px;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .fbc-checkout-phone-wrap {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 6px;
    }
    .fbc-checkout-phone-prefix {
        width: 118px;
        min-width: 118px;
        max-width: 118px;
        font-size: 12px;
    }
}

.fbc-checkout-phone-wrap {
    display: grid !important;
    grid-template-columns: 128px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
}
.fbc-checkout-phone-prefix,
.fbc-checkout-phone-wrap #billing_phone {
    height: 44px !important;
    min-height: 44px !important;
    line-height: 44px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    vertical-align: middle !important;
}
.fbc-checkout-phone-prefix {
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
    padding: 0 10px !important;
    text-align: center !important;
    text-align-last: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    appearance: auto !important;
}
.fbc-checkout-phone-wrap #billing_phone {
    width: 100% !important;
    min-width: 0 !important;
}
.fbc-field-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px rgba(220,38,38,.18) !important;
}
.fbc-inline-field-error {
    display: none;
    grid-column: 1 / -1;
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 4px;
}
@media (max-width: 640px) {
    .fbc-checkout-phone-wrap {
        grid-template-columns: 112px minmax(0, 1fr) !important;
    }
    .fbc-checkout-phone-prefix {
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
        font-size: 12px !important;
        padding: 0 6px !important;
    }
}

#billing_phone_field .fbc-checkout-phone-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}
#billing_phone_field .fbc-checkout-phone-prefix {
    flex: 0 0 136px !important;
    width: 136px !important;
    min-width: 136px !important;
    max-width: 136px !important;
    height: 44px !important;
    min-height: 44px !important;
    line-height: normal !important;
    padding: 0 26px 0 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    text-align-last: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    background-color: #ffffff !important;
    color: #001840 !important;
}
#billing_phone_field .fbc-checkout-phone-wrap #billing_phone {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
#billing_phone_field .fbc-inline-field-error,
#billing_email_field .fbc-inline-field-error {
    display: none;
    width: 100%;
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 5px;
    clear: both;
}
@media (max-width: 640px) {
    #billing_phone_field .fbc-checkout-phone-wrap {
        gap: 6px !important;
    }
    #billing_phone_field .fbc-checkout-phone-prefix {
        flex-basis: 118px !important;
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
        font-size: 12px !important;
        padding-left: 6px !important;
        padding-right: 20px !important;
    }
}

/* v1.6.45 checkout stability and compact opt-out notice */
body.woocommerce-checkout,
body.woocommerce-cart {
    overflow-x: hidden;
}
body.woocommerce-checkout .site,
body.woocommerce-checkout #page,
body.woocommerce-checkout .site-content,
body.woocommerce-checkout .content-area,
body.woocommerce-checkout main,
body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout form.checkout,
body.woocommerce-checkout .woocommerce-checkout,
body.woocommerce-checkout .col2-set,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #order_review_heading {
    max-width: 100%;
    box-sizing: border-box;
}
body.woocommerce-checkout .fbc-checkout-row,
body.woocommerce-checkout .fbc-checkout-row td,
body.woocommerce-checkout .fbc-checkout-notice {
    max-width: 100%;
    box-sizing: border-box;
}
.fbc-checkout-notice.fbc-optout span {
    font-size: 11.5px;
    line-height: 1.35;
}
@media (max-width: 768px) {
    body.woocommerce-checkout .woocommerce,
    body.woocommerce-checkout form.checkout,
    body.woocommerce-checkout .col2-set,
    body.woocommerce-checkout #order_review {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }
    body.woocommerce-checkout .fbc-modal,
    body.woocommerce-cart .fbc-modal {
        left: 50% !important;
        right: auto !important;
        max-width: calc(100vw - 24px);
    }
}


/* v1.6.48 compact eligibility criteria link and modal */
.fbc-criteria-link {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #001840;
    font-size: 11.5px;
    line-height: 1.25;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
.fbc-criteria-link:hover,
.fbc-criteria-link:focus {
    color: #0f3a7a;
    outline: none;
}
.fbc-criteria-modal {
    width: min(92vw, 460px);
    max-height: 88vh;
    overflow: auto;
}
.fbc-criteria-modal .fbc-modal-inner {
    padding: 20px 22px;
}
.fbc-criteria-modal h3 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.25;
}
.fbc-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #001840;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.fbc-criteria-copy p {
    margin: 0 0 9px;
    color: #203040;
    font-size: 13px;
    line-height: 1.45;
}
.fbc-criteria-copy p:last-child {
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .fbc-criteria-modal .fbc-modal-inner {
        padding: 18px 16px;
    }
    .fbc-criteria-copy p {
        font-size: 12.5px;
    }
}


/* v1.6.51 responsive first-buyer decision modal */
body.fbc-modal-open {
    overflow: hidden;
}
#fbc-intro-backdrop {
    z-index: 2147483646;
    pointer-events: auto;
}
#fbc-intro-modal {
    z-index: 2147483647;
    width: min(500px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    box-sizing: border-box;
    overscroll-behavior: contain;
    pointer-events: auto;
}
#fbc-intro-modal .fbc-modal-inner {
    padding: 20px 24px 18px;
    box-sizing: border-box;
}
#fbc-intro-modal h3 {
    max-width: 430px;
    margin: 0 auto 10px;
    font-size: clamp(16px, 2.5vw, 18px);
    line-height: 1.35;
    overflow-wrap: anywhere;
}
#fbc-intro-modal .fbc-intro-copy,
#fbc-intro-modal .fbc-intro-login-line {
    overflow-wrap: anywhere;
}
#fbc-intro-modal .fbc-modal-actions {
    flex-wrap: nowrap;
    align-items: stretch;
}
#fbc-intro-modal .fbc-btn {
    min-height: 46px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
}
#fbc-intro-modal .fbc-btn:disabled {
    opacity: .7;
    cursor: wait;
}
@media (max-width: 520px) {
    #fbc-intro-modal {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 14px;
    }
    #fbc-intro-modal .fbc-modal-inner {
        padding: 18px 16px 16px;
    }
    #fbc-intro-modal h3 {
        font-size: 16px;
        line-height: 1.32;
    }
    #fbc-intro-modal .fbc-intro-copy,
    #fbc-intro-modal .fbc-inline-alt {
        font-size: 13px;
        line-height: 1.4;
    }
    #fbc-intro-modal .fbc-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 15px;
    }
    #fbc-intro-modal .fbc-btn {
        width: 100%;
        min-width: 0;
        white-space: normal;
        line-height: 1.25;
        padding: 12px 14px;
    }
}
