
/* =========================================================
   CUSTOMER CONSENT PAGE
   Requires Bootstrap 4.x
   ========================================================= */

:root {
    --sm-teal: hsl(170, 67%, 53%);
    --sm-teal-soft: hsla(170, 67%, 53%, 0.1);
    --sm-muted: hsl(0, 0%, 96%);
    --sm-muted-text: hsl(0, 0%, 45%);
    --sm-border: hsl(0, 0%, 90%);
    --sm-danger: hsl(0, 84%, 60%);
    --sm-radius: 0.75rem;
}

/* =========================================================
   GLOBAL
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family:
        "Nunito Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #000;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
}

/* =========================================================
   PAGE WRAPPER
   ========================================================= */

.consent-page-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: none;
    min-height: 100vh;
    min-height: 100dvh;
}

/* =========================================================
   CONTAINER & HELPERS
   ========================================================= */

.consent-container,
.consent-container-logo {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding: 0.5rem 0.5rem 0;
    padding-left: calc(0.5rem + env(safe-area-inset-left, 0px));
    padding-right: calc(0.5rem + env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.notice-version {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color:var(--sm-muted-text);
    text-decoration: none;
    line-height: 1.5;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-xxs {
    font-size: 0.625rem;
}

.text-muted-sm {
    color: var(--sm-muted-text);
}

.font-weight-semibold {
    font-weight: 600;
}

.rounded-sm-lg {
    border-radius: var(--sm-radius);
}

.border-sm {
    border-color: var(--sm-border) !important;
}

/* =========================================================
   HEADER
   Sticky positioning uses Bootstrap .sticky-top
   ========================================================= */

.consent-header {
    z-index: 1020;
    background: #000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    padding-top: env(safe-area-inset-top, 0px);
}

.consent-header .consent-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-width: 0;
    height: 56px;
    padding: 0 1rem;
    padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1rem + env(safe-area-inset-right, 0px));
    text-align: center;
    box-sizing: border-box;
}

.consent-header img,
.consent-header .consent-header-logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 24px;
    height: auto;
    margin: 0;
    object-fit: contain;
    flex-shrink: 0;
}

.consent-header .header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    color: #ffffff;
    text-align: left;
    white-space: nowrap;
}

.consent-header .header-title span {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
}

.consent-header .notice-version {
    display: inline-block;
    margin: 0 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.85);
}

.consent-header .notice-version:empty {
    display: none;
}



.customer-consent-navbar {
    display: flex;
    align-items: center;
    background: #000;
}

.customer-consent-navbar img {
    display: block;
    width: auto;
    height: 1.5rem;
    object-fit: contain;
}
.otp-mobile-echo {
    background-color: #F5F5F5;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}
/* =========================================================
   CUSTOMER SUMMARY
   ========================================================= */

.summary-card {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    background: var(--sm-teal);
    color: #fff;
}

.summary-card .name {
    font-size: 1.125rem;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.summary-card .email {
    color: rgba(255, 255, 255, 0.8);
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* =========================================================
   NOTIFICATION PREFERENCES
   ========================================================= */

#communicationChannelsContainer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.pref-matrix {
    display: grid;
    width: 100%;
    min-width: 260px;
}

.pref-matrix > div {
    min-width: 0;
    padding: 0.5rem;
    overflow-wrap: anywhere;
}

.pref-head {
    background: hsla(0, 0%, 96%, 0.6);
    padding: 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--sm-muted-text);
    text-align: center;
}

.pref-row-label {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--sm-border);
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.pref-head.pref-row-label {
    border-top: none;
    padding: 0.5rem;
}

.pref-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--sm-border);
    padding: 0.75rem 0;
}

label.pref-cell {
    cursor: pointer;
}

label.pref-cell:has(input:disabled) {
    cursor: not-allowed;
}

.pref-checkbox-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* Frappe's global website.bundle.css styles every input[type=checkbox] with
   its own (partly !important) rules, which beats a plain class selector on
   specificity alone - matching that same [type=checkbox] specificity (and
   its !important on width/margin) here is what actually wins the cascade. */
input[type="checkbox"].pref-checkbox-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin: 0 !important;
    border: 2px solid var(--sm-teal) !important;
    border-radius: 0.5rem !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 0.15s;
}

input[type="checkbox"].pref-checkbox-input:checked {
    background-color: var(--sm-teal) !important;
}

input[type="checkbox"].pref-checkbox-input:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 44%;
    width: 0.3125rem;
    height: 0.625rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

input[type="checkbox"].pref-checkbox-input:disabled {
    cursor: not-allowed;
}

.req, .pref-req {
    color: var(--sm-danger);
}

.pref-req {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* =========================================================
   AGE DECLARATION + GUARDIAN OTP FLOW
   ========================================================= */

.age-declaration.err {
    border-color: var(--sm-danger) !important;
}

.age-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.age-radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.625rem 0.75rem;
    border: 2px solid var(--sm-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: border-color 0.15s, background-color 0.15s;
}

/* .selected is toggled in JS (change handler) - :has() is progressive
   enhancement for browsers that support it, not the only path to this state. */
.age-radio-option:has(.age-radio-input:checked),
.age-radio-option.selected {
    border-color: var(--sm-teal);
    background: var(--sm-teal-soft);
    font-weight: 700;
}

input[type="radio"].age-radio-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    margin: 0 !important;
    border: 2px solid var(--sm-teal) !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    cursor: pointer;
    flex-shrink: 0;
}

/* Frappe's global input[type=radio] draws its own dot via ::before (filled
   with var(--primary), which renders black here) - same cascade issue as the
   matrix checkboxes, so it needs the same explicit kill switch. */
input[type="radio"].age-radio-input::before {
    content: none !important;
}

input[type="radio"].age-radio-input:checked {
    background-color: #fff !important;
}

input[type="radio"].age-radio-input:checked::after {
    content: "";
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    margin: 0.1875rem;
    border-radius: 50%;
    background: var(--sm-teal);
}

.guardian-flow {
    margin-top: 0.875rem;
    padding: 0.875rem;
    border: 1px solid var(--sm-teal);
    border-radius: 0.5rem;
    background: #fff;
}

.guardian-name-field {
    margin-bottom: 0.75rem;
}

.guardian-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.guardian-row .ctrl {
    flex: 1;
    min-width: 0;
}

.guardian-row .customer-consent-btn {
    flex-shrink: 0;
    min-height: 44px;
    white-space: nowrap;
    touch-action: manipulation;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.guardian-otp-row {
    margin-top: 0.75rem;
}

.guardian-otp-wrap {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    position: relative;
    display: flex;
    justify-content: center;
}

.guardian-otp-wrap .otp-input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    opacity: 0;
    cursor: text;
    font-size: 16px !important;
}

.guardian-otp-wrap .otp-slots {
    display: flex;
    width: 100%;
    justify-content: center;
}

.guardian-otp-wrap .otp-slot {
    height: 44px;
    max-width: 44px;
    font-size: 1.25rem;
}
.guardian-row #sendGuardianOtpBtn,
.guardian-row .customer-consent-btn:not(.customer-consent-btn-primary) {
    border: 1px solid var(--sm-teal, #14b8a6);
    color: var(--sm-teal);
    background: #fff;
}

.guardian-row #sendGuardianOtpBtn:hover,
.guardian-row #sendGuardianOtpBtn:focus {
    background-color: var(--sm-teal-soft);
    color: var(--sm-teal);
}
.guardian-otp-error {
    margin: 0.375rem 0 0;
    color: var(--sm-danger);
}

.guardian-verified-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.15rem 0.75rem;
    border: 1px solid var(--sm-teal);
    border-radius: 0.5rem;
    background: var(--sm-teal-soft);
    flex-wrap: wrap;
    margin: 10px 0 0;
}

.guardian-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sm-teal);
}

.guardian-verified-badge svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.guardian-change-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 0;
    background: none;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--sm-teal);
    text-decoration: underline;
    cursor: pointer;
    touch-action: manipulation;
}

.guardian-edit-number-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    padding: 2px;
    color: var(--sm-teal);
    cursor: pointer;
    touch-action: manipulation;
}

.guardian-hint {
    margin-top: 0.75rem;
}

/* =========================================================
   CHECKBOXES — BOOTSTRAP CUSTOM CHECKBOX
   ========================================================= */

.consent-check {
    min-height: 1.25rem;
    padding-bottom: 10px;
    padding-left: 0;
}

.consent-check .custom-control-input {
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.consent-check .custom-control-label {
    display: block;
    min-height: 1.25rem;
    cursor: pointer;
}

.consent-check .custom-control-label::before,
.consent-check .custom-control-label::after {
    top: 0.125rem;
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.consent-check .custom-control-label::before {
    border: 2px solid var(--sm-border);
    border-radius: 0.2rem;
    background-color: #fff;
}

.consent-check .custom-control-label::after {
    background-size: 65%;
}

.consent-check .custom-control-input:checked
    ~ .custom-control-label::before,
.consent-check .custom-control-input:disabled:checked
    ~ .custom-control-label::before {
    border-color: var(--sm-teal);
    background-color: var(--sm-teal);
}

.consent-check .custom-control-input:focus
    ~ .custom-control-label::before {
    box-shadow: none;
}

.consent-check .custom-control-input:focus:not(:checked)
    ~ .custom-control-label::before,
.consent-check .custom-control-input:not(:disabled):active
    ~ .custom-control-label::before {
    border-color: var(--sm-teal);
    background-color: #fff;
}

.consent-check .custom-control-input:disabled
    ~ .custom-control-label {
    cursor: not-allowed;
}

/* Checkbox without visible text */

.consent-check-bare .custom-control-label {
    height: 1.25rem;
    padding-left: 1.25rem;
}

.consent-check-bare .custom-control-label::before,
.consent-check-bare .custom-control-label::after {
    top: 0;
}

/* =========================================================
   AGE
   ========================================================= */

.age-consent {
    padding: 0.75rem;
    background: hsla(0, 0%, 96%, 0.4);
}

.age-consent .custom-control-label {
    padding-left: 1rem;
    color: #000;
}

.age-consent a {
    color: inherit;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

/* =========================================================
   CONSENT DETAILS TOGGLE
   ========================================================= */

.details-toggle {
    padding: 0.75rem 0;
    min-height: 25px;
    border: 0;
    background: none;
    color: #000;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.details-toggle:focus {
    outline: none;
}

.details-toggle:focus-visible {
    outline: 2px solid var(--sm-teal);
    outline-offset: 2px;
}

.details-toggle .chevron {
    width: 1rem;
    height: 1rem;
    color: var(--sm-muted-text);
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.details-toggle.collapsed .chevron {
    transform: rotate(0deg);
}

.details-list {
    margin: 0;
    padding: 0.25rem 0 0;
    list-style: disc inside;
    line-height: 1.625;
    color: var(--sm-muted-text);
    overflow-wrap: anywhere;
}

.details-list li + li {
    margin-top: 0.375rem;
}

.details-list a {
    color: #000;
    text-decoration: underline;
    word-break: break-word;
}

/* =========================================================
   SUBMIT BAR
   ========================================================= */

#consentForm {
    /* Prevents the fixed submit bar from obscuring form content - sized to
       clear the Reset to English row too, not just the original content. */
    padding-bottom: 5rem;
}

.submit-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    padding: 0.5rem 1rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1rem + env(safe-area-inset-right, 0px));
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.btn-submit {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #000;
    border-radius: calc(var(--sm-radius) - 2px);
    background: #000;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
    background: #222;
    color: #fff;
}

.btn-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem hsla(170, 67%, 53%, 0.35);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================================
   OTP / READ-ONLY / SUCCESS VIEWS
   ========================================================= */

.customer-consent-page-head,
.otpgate,
.foot-note,
#readonlyEmptyView > .card,
#readonlyEmptyView > .customer-consent-btn,
#successView .success {
    width: 100%;
    max-width: 28rem;
    margin: 10px auto 0 !important;
    padding-right: calc(1rem + env(safe-area-inset-right, 0px));
    padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.customer-consent-page-head h1 {
    margin: 1.25rem 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.card-pad {
    padding: 1.25rem 0;
}

/* OTP icon */

.otpgate .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--sm-teal-soft);
    color: var(--sm-teal);
}

.otpgate .icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Form fields */

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
}
.otp-helper-text {
    color: #808080;
    margin-bottom: 0;
    font-size: 14px;
}
.text-teal {
    color:var(--sm-teal);
}
#f-otpCode label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: #6c757d;
}
.field .req {
    color: var(--sm-danger);
}

.phone-row {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.phone-row .cc {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--sm-border);
    border-right: 0;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--sm-muted);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sm-muted-text);
    user-select: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.phone-row .ctrl {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    height: 3.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--sm-border);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #212529;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-row .ctrl:focus {
    outline: none;
    border-color: var(--sm-teal);
    box-shadow: 0 0 0 1px var(--sm-teal);
}

.phone-row:focus-within .cc {
    border-color: var(--sm-teal);
}

.phone-row .ctrl::placeholder {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    color: var(--sm-muted-text);
    opacity: 1;
}

.phone-row .ctrl:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: var(--sm-muted);
}

.field.has-error .phone-row .cc,
.field.has-err .phone-row .cc {
    border-color: var(--sm-danger);
}

.field.has-error .phone-row .ctrl,
.field.has-err .phone-row .ctrl {
    border-color: var(--sm-danger);
}

.field.has-error .phone-row .ctrl:focus,
.field.has-err .phone-row .ctrl:focus {
    border-color: var(--sm-danger);
    box-shadow: 0 0 0 1px var(--sm-danger);
}

.ctrl {
    width: 100%;
    height: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid var(--sm-border);
    border-radius: calc(var(--sm-radius) - 2px);
    font-size: 1rem; /* 16px prevents iOS Safari auto-zoom */
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.ctrl:focus {
    outline: none;
    border-color: var(--sm-teal);
    box-shadow: 0 0 0 0.2rem hsla(170, 67%, 53%, 0.25);
}

.ctrl:read-only {
    background: #fff;
}

/* Neutralizes Chrome's autofill tint (yellow/blue) on tel/number inputs -
   the long transition delay is the standard trick since autofill styles
   can't be overridden directly, only out-raced with a near-infinite one. */
.ctrl:-webkit-autofill,
.ctrl:-webkit-autofill:focus {
    -webkit-text-fill-color: #1e293b;
    transition: background-color 9999s ease-in-out 0s;
}

/* =========================================================
   OTP SEGMENTED 6-BOX COMPONENT (data-bs-otp)
   ========================================================= */

/* Invisible native input captures typing, paste and SMS autofill. */

.otp {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0.5rem 0;
}

.otp .otp-input,
.otp[data-bs-otp] .otp-input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    opacity: 0;
    cursor: text;
    font-size: 16px !important; /* 16px prevents iOS Safari auto-zoom */
}

/* Fallback when data-bs-otp is not initialized. */

.otp:not([data-bs-otp]) .otp-input {
    width: 100%;
    text-align: center;
    letter-spacing: 0.5em;
    font-size: 1.25rem;
}

/* Six visual digit slots */

.otp-slots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.otp-slot {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 48px;
    height: 52px;
    margin: 0 4px;
    background: #fff;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #101828;
    user-select: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        z-index 0.15s ease;
}

/* Connected slots */

.otp-connected .otp-slots {
    justify-content: center;
}

.otp-connected .otp-slot {
    margin: 0;
    border-radius: 0;
}

.otp-connected .otp-slot + .otp-slot {
    border-left-width: 0;
}

.otp-connected .otp-slot:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.otp-connected .otp-slot:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.otp-slot.filled {
    border-color: #98a2b3;
}

.otp-slot.active {
    z-index: 1;
    border-color: var(--sm-teal);
    box-shadow: 0 0 0 3px hsla(170, 67%, 53%, 0.25);
}

.otp-slot.active.empty::after {
    content: "";
    width: 2px;
    height: 1.375rem;
    background: var(--sm-teal);
    border-radius: 1px;
    animation: otpCaretBlink 1s ease-in-out infinite;
}

@keyframes otpCaretBlink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* OTP error state */

.field.has-error .otp-slot,
.field.has-err .otp-slot {
    border-color: var(--sm-danger);
    background-color: #fffbfa;
}

.field.has-error .otp-slot.active,
.field.has-err .otp-slot.active {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.msg-err {
    display: none;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--sm-danger);
}

.field.has-error .msg-err,
.field.has-err .msg-err {
    display: block;
}

.field.has-error .ctrl,
.field.has-err .ctrl {
    border-color: var(--sm-danger);
}

.otp-sent-to {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--sm-muted-text);
}

.otp-sent-to b {
    margin-left: auto;
    text-align: right;
    color: #101828;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.customer-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border: 1px solid #000;
    border-radius: calc(var(--sm-radius) - 2px);
    background: #fff;
    color: #000;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.customer-consent-btn-primary {
    background: #000;
    color: #fff;
}

.customer-consent-btn-block {
    display: flex;
    width: 100%;
}

.customer-consent-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    color: #000;
    text-decoration: underline;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-link:disabled {
    opacity: 0.4;
    text-decoration: none;
    cursor: not-allowed;
}

/* =========================================================
   OTP ACTIONS ROW & RESEND TIMER
   ========================================================= */

.otp-actions-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin-top: 1.25rem !important;
    gap: 0.5rem !important;
}

.otp-action-col {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
}

.otp-action-left {
    flex: 1 1 0% !important;
    justify-content: flex-start !important;
}

.otp-action-center {
    flex: 0 0 auto !important;
    justify-content: center !important;
    text-align: center !important;
}

.otp-action-right {
    flex: 1 1 0% !important;
    justify-content: flex-end !important;
}

.otp-btn-skip,
.otp-btn-resend {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px;
    padding: 0.375rem 0.25rem !important;
    font-size: 0.8125rem !important;
    white-space: nowrap !important;
    touch-action: manipulation;
}

.otp-btn-verify {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    min-height: 2.75rem !important;
    padding: 0.5rem 0.875rem !important;
    font-size: 0.8125rem !important;
    white-space: nowrap !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.otp-timer-row {
    width: 100% !important;
    min-height: 1.25rem;
    margin-top: 0.5rem !important;
    text-align: center !important;
}

.otp-timer-row .timer {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--sm-muted-text);
}

.change-number-btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    font-size: 0.8125rem;
    color: var(--sm-teal);
    text-decoration: underline;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.change-number-btn:hover {
    color: var(--sm-muted-text);
}

/* =========================================================
   MOBILE NUMBER FIELD HEADER
   ========================================================= */

.field-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.field-title {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
}

.field-description {
    font-size: 13px;
    line-height: 1.5;
    color: #6c757d;
}
.field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

#f-otpMobile .req {
    margin-left: 2px;
    color: #dc3545;
}

/* =========================================================
   FOOTER NOTE
   ========================================================= */

.foot-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    text-align: center;
    color: var(--sm-muted-text);
}

.foot-note a {
    color: #000;
    text-decoration: underline;
}

/* =========================================================
   SUCCESS VIEW
   ========================================================= */

#successView .success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    min-height: calc(100dvh - 140px);
    width: 100%;
    max-width: 28rem;
    margin: 0 auto !important;
    padding: 2rem 1rem;
    text-align: center;
}

.check-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
}

.check-wrap .check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--sm-teal-soft);
    color: var(--sm-teal);
}

.check-wrap .check svg {
    width: 1.75rem;
    height: 1.75rem;
}

.check-wrap h2 {
    font-size: 1.125rem;
    font-weight: 700;
}

.check-wrap .walkin-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.check-wrap .walkin-alert-box {
    display: block;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(47, 212, 189, 0.4);
    background-color: rgba(47, 212, 189, 0.08);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    color: #1f2937;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.kv-list {
    margin: 1rem 0;
    font-size: 0.8125rem;
}

.kv {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sm-border);
}

.grant-summary {
    margin-top: 1.25rem;
    border: 1px solid var(--sm-border);
    border-radius: calc(var(--sm-radius) - 2px);
    overflow: hidden;
}

.grant-summary table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.grant-summary th {
    padding: 0.625rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sm-muted-text);
    background-color: var(--sm-muted);
    border-bottom: 1px solid var(--sm-border);
    text-align: left;
}

.grant-summary th:last-child {
    text-align: right;
}

.grant-summary td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--sm-border);
    vertical-align: middle;
    text-align: left;
    color: #212529;
}

.grant-summary tr:last-child td {
    border-bottom: 0;
}

.grant-summary td:last-child {
    text-align: right;
}

.grant-summary td svg {
    display: inline-block;
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    vertical-align: middle;
}

.grant-summary td.yes {
    color: var(--sm-teal, #14b8a6);
}

.grant-summary td.no {
    color: var(--sm-danger, #dc3545);
}

.submit-wrap {
    margin-top: 1rem;
}

/* =========================================================
   WALK-IN PENDING VIEW
   ========================================================= */

.walkin-pending-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    padding: 2.5rem 1.5rem;
    text-align: center;
    gap: 0.75rem;
    margin: 0 auto;
    width: 100%;
    max-width: 28rem;
}

.walkin-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.25rem;
    border-radius: 50%;
    background-color: var(--sm-teal-soft, rgba(47, 212, 189, 0.1));
    color: var(--sm-teal, #14b8a6);
}

.walkin-icon-wrap svg {
    width: 2rem;
    height: 2rem;
    stroke: currentColor;
}

.walkin-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
}

.walkin-alert-box {
    width: 100%;
    max-width: 20rem;
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(47, 212, 189, 0.35);
    background-color: var(--sm-teal-soft, rgba(47, 212, 189, 0.1));
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    color: #212529;
    text-align: center;
}

.walkin-subtitle {
    max-width: 20rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--sm-muted-text, #6c757d);
    text-align: center;
}

/* =========================================================
   AGE CHECK — NATIVE CHECKBOX
   ========================================================= */

.age-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    cursor: pointer;
}

.age-check-input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #2fd4bd;
    cursor: pointer;
}

.age-check-input:disabled {
    cursor: default;
}

.age-check-text {
    font-weight: 500;
    line-height: 1.5;
}

.age-check-text a {
    text-decoration: underline;
}

/* =========================================================
   AGE CONSENT — CUSTOM CHECKBOX OVERRIDES
   ========================================================= */

.age-consent .custom-control-input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    opacity: 0;
}

.age-consent .consent-check {
    min-height: 0;
    padding: 3px 3px 5px 39px;
}

.age-consent .custom-control-label {
    display: block;
    margin: 0;
    line-height: 1.5;
}

.age-consent .custom-control-label::before,
.age-consent .custom-control-label::after {
    top: 2px;
    left: -30px;
}

/* =========================================================
   CONSENT FORM BODY — QUILL EDITOR
   ========================================================= */

.ql-editor.read-mode {
    padding: 0;
    font-size: 0.875rem !important;
}

.consent-form-body.ql-editor {
    padding: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    overflow-wrap: anywhere;
    white-space: normal;
}

.consent-form-body.ql-editor p {
    margin: 0 0 8px;
}

.consent-form-body.ql-editor h1,
.consent-form-body.ql-editor h2,
.consent-form-body.ql-editor h3 {
    margin: 0 0 8px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
}

.consent-form-body.ql-editor h1 {
    font-size: 1.5rem;
}

.consent-form-body.ql-editor h2 {
    font-size: 1.25rem;
}

.consent-form-body.ql-editor h3 {
    font-size: 1.1rem;
}

.consent-form-body.ql-editor ol,
.consent-form-body.ql-editor ul {
    margin: 0 0 8px;
    padding-left: 1.25rem;
}

.consent-form-body.ql-editor li {
    margin-bottom: 8px;
}

.consent-form-body.ql-editor a {
    color: #00337f;
    text-decoration: underline;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.consent-form-body.ql-editor img {
    max-width: 100%;
    height: auto;
}

.consent-form-body.ql-editor table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.consent-form-body.ql-editor th,
.consent-form-body.ql-editor td {
    padding: 6px;
    border: 1px solid var(--sm-border);
    overflow-wrap: anywhere;
}

.consent-form-body.ql-editor > *:last-child {
    margin-bottom: 0;
}

/* =========================================================
   GOOGLE TRANSLATE WIDGET
   ========================================================= */

.goog-te-gadget {
    font-family: inherit !important;
    font-size: 0.75rem !important;
    color: var(--sm-muted-text) !important;
}

.goog-te-combo {
    height: 2.25rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--sm-border);
    border-radius: 0.375rem;
    background-color: #fff;
    color: #333;
    outline: none;
    max-width: 100%;
    font-size: 0.8125rem;
    touch-action: manipulation;
}

/* =========================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================= */

/* Extra-large desktops (4K, Ultra-wide, 1401px+) */
@media (min-width: 1401px) {
    .consent-container,
    .consent-container-logo,
    .otpgate,
    .customer-consent-page-head,
    .foot-note,
    #readonlyEmptyView > .card,
    #readonlyEmptyView > .customer-consent-btn,
    #successView .success,
    .walkin-pending-body {
        max-width: 28rem;
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 270px;
        max-height: 24px;
        height: auto;
    }
}

/* Large desktops (1201px–1400px) */
@media (max-width: 1400px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 280px;
        max-height: 24px;
        height: auto;
    }
}

/* Standard desktops (1025px–1200px) */
@media (max-width: 1200px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 280px;
        max-height: 24px;
        height: auto;
    }
}

/* Laptops and small desktops (993px–1024px) */
@media (max-width: 1024px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 250px;
        max-height: 24px;
        height: auto;
    }
}

/* Tablets (landscape) and small laptops (769px–992px) */
@media (max-width: 992px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 270px;
        max-height: 22px;
        height: auto;
    }
}

/* Tablets (portrait) (577px–768px) */
@media (max-width: 768px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 250px;
        max-height: 25px;
        height: auto;
    }

    .ctrl {
        font-size: 16px; /* Prevents auto-zoom on iOS */
    }

    .goog-te-combo {
        font-size: 16px; /* Prevents auto-zoom on iOS */
    }

    .otp-actions-row {
        gap: 0.375rem !important;
    }

    .otp-btn-verify {
        padding: 0.45rem 0.75rem !important;
    }
}

/* Small tablets and large phones (481px–576px) */
@media (max-width: 576px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
        padding-right: calc(1rem + env(safe-area-inset-right, 0px));
        padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 250px;
        max-height: 20px;
        height: auto;
    }
}

/* All mobile phones (up to 480px) */
@media (max-width: 480px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
    }

    .consent-header .consent-container {
        height: 52px;
        gap: 0.75rem;
        padding: 0 0.875rem;
        padding-left: calc(0.875rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.875rem + env(safe-area-inset-right, 0px));
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 250px;
        max-height: 20px;
        height: auto;
        width: auto;
    }

    .consent-header .header-title,
    .consent-header .header-title span {
        font-size: 0.8125rem;
    }

    .consent-header .notice-version {
        font-size: 0.625rem;
    }

    .otp-actions-row {
        gap: 0.25rem !important;
    }

    .otp-btn-skip,
    .otp-btn-resend {
        padding: 0.375rem 0.25rem !important;
        font-size: 0.75rem !important;
        min-height: 40px;
        display: inline-flex !important;
        align-items: center;
        touch-action: manipulation;
    }

    .otp-btn-verify {
        min-height: 2.5rem !important;
        padding: 0.4rem 0.625rem !important;
        font-size: 0.75rem !important;
        touch-action: manipulation;
    }

    .guardian-row .customer-consent-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .guardian-otp-wrap .otp-slot {
        height: 42px;
        font-size: 1.125rem;
    }
}

/* Large phones (iPhone Pro Max, Galaxy Plus, up to 430px) */
@media (max-width: 430px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
        padding-right: calc(1rem + env(safe-area-inset-right, 0px));
        padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    }

    .consent-header .consent-container {
        gap: 0.625rem;
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 235px;
        max-height: 29px;
        height: auto;
    }
}

/* Larger mobile phones (iPhone Plus / XR, up to 414px) */
@media (max-width: 414px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 230px;
        max-height: 28px;
        height: auto;
    }

    .summary-card .name {
        font-size: 1.0625rem;
    }
}

/* iPhone and Android phones (iPhone 12/13/14/15/16, up to 390px) */
@media (max-width: 390px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
    }

    .consent-header .consent-container {
        gap: 0.5rem;
        padding: 0 0.75rem;
        padding-left: calc(0.75rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.75rem + env(safe-area-inset-right, 0px));
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 220px;
        max-height: 27px;
        height: auto;
    }

    .consent-header .header-title,
    .consent-header .header-title span {
        font-size: 0.75rem;
    }

    .summary-card {
        padding: 0.875rem !important;
    }

    .age-radio-group {
        gap: 0.625rem;
    }
}

/* Standard mobile phones (iPhone SE2/3, iPhone 7/8/X, up to 375px) */
@media (max-width: 375px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
        padding-right: calc(0.875rem + env(safe-area-inset-right, 0px));
        padding-left: calc(0.875rem + env(safe-area-inset-left, 0px));
    }

    .consent-header .consent-container {
        height: 50px;
        gap: 0.5rem;
        padding: 0 0.625rem;
        padding-left: calc(0.625rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.625rem + env(safe-area-inset-right, 0px));
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 220px;
        max-height: 21px;
        height: auto;
    }

    .consent-header .header-title,
    .consent-header .header-title span {
        font-size: 0.75rem;
    }

    .consent-header .notice-version {
        font-size: 0.5625rem;
    }

    .otp-slot {
        height: 48px;
    }

    .phone-row .ctrl {
        font-size: 1.125rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Small mobile phones (Android compact, up to 360px) */
@media (max-width: 360px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
        padding-right: calc(0.75rem + env(safe-area-inset-right, 0px));
        padding-left: calc(0.75rem + env(safe-area-inset-left, 0px));
    }

    .consent-header .consent-container {
        height: 48px;
        padding: 0 0.5rem;
        padding-left: calc(0.5rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.5rem + env(safe-area-inset-left, 0px));
        gap: 0.375rem;
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 220px;
        max-height: 26px;
        height: auto;
    }

    .consent-header .header-title,
    .consent-header .header-title span {
        font-size: 0.6875rem;
    }

    .consent-header .version,
    .consent-header .notice-version {
        font-size: 0.5625rem;
    }

    .pref-head,
    .pref-row-label,
    .pref-cell {
        padding: 0.375rem 0.125rem;
    }

    .pref-head {
        font-size: 0.5625rem;
        letter-spacing: 0;
    }

    .summary-card .name {
        font-size: 1rem;
    }

    .btn-submit {
        min-height: 42px;
        font-size: 0.8125rem;
    }

    .otp-slot {
        height: 46px;
        font-size: 1.25rem;
    }

    .phone-row .cc {
        padding: 0 0.5rem;
        font-size: 1.125rem;
    }

    .phone-row .ctrl {
        padding: 0.5rem 0.625rem;
        font-size: 1.125rem;
    }

    .phone-row .ctrl::placeholder {
        font-size: 0.8125rem;
    }

    .otp-actions-row {
        gap: 0.15rem !important;
    }

    .otp-btn-skip,
    .otp-btn-resend {
        padding: 0.25rem 0.125rem !important;
        font-size: 0.75rem !important;
        min-height: 38px;
    }

    .otp-btn-verify {
        min-height: 2.25rem !important;
        padding: 0.35rem 0.45rem !important;
        font-size: 0.75rem !important;
    }

    .age-radio-group {
        gap: 0.5rem;
    }

    .age-radio-option {
        padding: 0.5rem 0.375rem;
        font-size: 0.8125rem;
        gap: 0.375rem;
    }

    .guardian-row .customer-consent-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }

    .guardian-otp-wrap .otp-slot {
        height: 38px;
        font-size: 1rem;
    }
}

/* Extra small mobile phones (iPhone SE 1st gen, Fold closed, up to 320px) */
@media (max-width: 320px) {
    .consent-container,
    .consent-container-logo {
        max-width: 28rem;
        padding-right: calc(0.375rem + env(safe-area-inset-right, 0px));
        padding-left: calc(0.375rem + env(safe-area-inset-left, 0px));
    }

    .consent-header .consent-container {
        height: 44px;
        gap: 0.25rem;
        padding: 0 0.375rem;
        padding-left: calc(0.375rem + env(safe-area-inset-left, 0px));
        padding-right: calc(0.375rem + env(safe-area-inset-right, 0px));
    }

    .consent-header img,
    .consent-header .consent-header-logo {
        max-width: 200px;
        max-height: 19px;
        height: auto;
    }

    .consent-header .header-title,
    .consent-header .header-title span {
        font-size: 0.625rem;
    }

    .consent-header .version,
    .consent-header .notice-version {
        font-size: 0.5rem;
    }

    .otp-slot {
        height: 42px;
        font-size: 1.125rem;
    }

    .phone-row .cc {
        padding: 0 0.375rem;
        font-size: 1rem;
    }

    .phone-row .ctrl {
        padding: 0.5rem 0.5rem;
        font-size: 1rem;
    }

    .otp-actions-row {
        gap: 0.1rem !important;
    }

    .otp-btn-skip,
    .otp-btn-resend {
        font-size: 0.6875rem !important;
        padding: 0.2rem 0.05rem !important;
    }

    .otp-btn-verify {
        font-size: 0.6875rem !important;
        padding: 0.3rem 0.375rem !important;
    }

    .age-radio-group {
        gap: 0.375rem;
    }

    .age-radio-option {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .guardian-row .customer-consent-btn {
        padding: 0.5rem 0.375rem;
        font-size: 0.6875rem;
    }

    .guardian-otp-wrap .otp-slot {
        height: 36px;
        font-size: 0.9375rem;
    }
}

/* =========================================================
   ACCESSIBILITY — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   GOOGLE TRANSLATE WIDGET
   ========================================================= */

/* Google injects a top banner iframe + offsets <body> by its height when a
   page is translated - both unwanted here since we show our own UI for it. */
.goog-te-banner-frame,
.skiptranslate iframe,
#goog-gt-tt {
    display: none !important;
}

body {
    top: 0 !important;
}

#google_translate_element .goog-te-gadget {
    font-size: 0;
    color: transparent;
}

#google_translate_element .goog-te-gadget > span {
    display: none;
}

#google_translate_element .goog-te-gadget > div {
    display: inline-flex;
    align-items: center;
}

#google_translate_element .goog-te-combo {
    margin: 0;
    height: 2rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.8125rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    border: 1.5px solid var(--sm-teal);
    border-radius: 0.375rem;
}

.reset-translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    border: 0;
    background: none;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sm-teal);
    cursor: pointer;
}

