/* Account screens use the same labelled field rows on mobile and desktop. */
.fh-entry, .fh-profile, .fh-password, .fh-authenticator, .fh-password-form {
    --account-muted: #59605b;
    --account-line: #dedfd7;
    --account-paper: #fff;
    --account-sand: #fff4e6;
    --account-edge: clamp(16px, 4vw, 32px);
}

body.fh-entry .from-login .middle-from { margin-bottom: 22px !important; }
body.fh-entry .from-login .top-from { margin-bottom: 24px !important; }
body.fh-entry .from-login .fh-entry-group {
    margin: 0 0 18px; padding: 16px; border: 1px solid var(--account-line);
    border-radius: 20px; background: #fafaf7;
}
body.fh-entry .from-login .fh-entry-group h2,
body .fh-password-form h2, body.fh-profile .fh-group-title {
    margin: 0 0 14px; font: 720 18px/1.25 var(--fh-font) !important;
    color: var(--fh-ink); letter-spacing: -.035em;
}
body.fh-entry .from-login .middle-from fieldset.icon-absolute {
    display: flex; flex-direction: column; justify-content: center; gap: 2px;
    height: auto !important; min-height: 67px !important; margin: 0 0 10px !important;
    padding: 8px 14px !important; border: 1px solid #cdcec6 !important;
    border-radius: 14px !important; background: #fff !important;
}
body.fh-entry .from-login .middle-from fieldset.icon-absolute:focus-within,
body .fh-password-form .box-auth-pass:focus-within {
    border-color: #a54016 !important; box-shadow: 0 0 0 2px #ffead9 !important;
}
body.fh-entry .from-login .middle-from fieldset.icon-absolute > i { display: none; }
body.fh-entry .from-login .middle-from fieldset :is(.tf-field-label, .fh-field-label) {
    order: -1; position: static !important; display: block !important;
    width: fit-content; margin: 0 !important; padding: 0 !important; background: transparent !important;
    transform: none !important; color: #4b534d !important;
    font: 650 12px/1.35 var(--fh-font) !important; letter-spacing: .005em; pointer-events: auto;
}
body.fh-entry .from-login .middle-from fieldset.icon-absolute input:not([type="hidden"]) {
    display: block; width: 100% !important; height: 30px !important; min-height: 30px !important;
    padding: 0 !important; border: 0 !important; background: transparent !important;
    box-shadow: none !important; color: var(--fh-ink) !important;
    font: 560 16px/30px var(--fh-font) !important; border-radius: 0 !important;
}
body.fh-entry .from-login .middle-from fieldset:focus-within input:focus-visible {
    outline: 0 !important;
}
body.fh-entry .from-login .middle-from fieldset.box-auth-pass input { padding-right: 38px !important; }
body.fh-entry .from-login .middle-from fieldset.icon-absolute .iti {
    position: relative; width: 100%; height: auto !important; min-height: 30px !important;
}
body.fh-entry .from-login .middle-from fieldset .iti :is(.iti__selected-country, .iti__flag-container, .iti__selected-country-container) {
    min-height: 0 !important; height: 30px !important;
}
body.fh-register .from-login .middle-from fieldset .iti #mobileInput,
body.fh-entry:not(.fh-signin) .from-login .middle-from fieldset .iti.show-flag #mobileInput { padding-left: 96px !important; }
body.fh-entry .from-login .middle-from fieldset .show-pass {
    position: absolute !important; left: auto !important; right: 7px !important; top: 50% !important;
    transform: translateY(-50%) !important; width: 40px !important; height: 40px !important;
    padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--fh-ink);
}
body.fh-entry .from-login #loginErrorBox {
    position: static !important; margin: 4px 0 0 !important; font-size: 13px;
}

/* The sign-in label, value and controls share one surface, including after autofill. */
body.fh-signin .from-login .middle-from fieldset.icon-absolute {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 44px;
    align-items: center;
    gap: 0;
    padding: 10px 14px 5px !important;
    background: var(--account-paper) !important;
}
body.fh-signin .middle-from fieldset > label {
    grid-area: 1 / 1 / 2 / -1;
}
body.fh-signin .middle-from :is(#mobileInput, #password) {
    min-width: 0;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
}
body.fh-signin .middle-from fieldset > :is(input, .iti) {
    grid-area: 2 / 1;
}
body.fh-signin .middle-from :is(#mobileInput, #password):is(:autofill, :-webkit-autofill) {
    box-shadow: inset 0 0 0 1000px var(--account-paper) !important;
    -webkit-text-fill-color: var(--fh-ink);
    caret-color: var(--fh-ink);
}
body.fh-signin .from-login .middle-from fieldset .iti.show-flag {
    display: flex !important;
    align-items: center;
    gap: 8px;
}
body.fh-signin .from-login .middle-from fieldset .iti.show-flag .iti__flag-container {
    position: static;
    flex: none;
    height: 44px !important;
    padding: 0;
}
body.fh-signin .middle-from .iti__selected-flag {
    min-width: 44px;
    padding: 0 6px;
    border-radius: 8px;
}
body.fh-signin .from-login .middle-from fieldset .fh-show-password {
    grid-area: 2 / 2;
    position: static !important;
    transform: none !important;
    display: grid;
    place-items: center;
    width: 44px !important;
    height: 44px !important;
}
body.fh-signin .middle-from :is(.fh-show-password, .iti__selected-flag):focus-visible {
    outline: 2px solid var(--fh-orange);
    outline-offset: -3px;
}
body.fh-signin #loginErrorBox { grid-column: 1 / -1; }

body.fh-entry .from-login .forgot-wrap { text-align: right; }
body.fh-entry .from-login .bottom-from .tf-btn.primary { min-height: 49px; border-radius: 25px !important; }
body.fh-entry .from-login .registration-account-type { margin-bottom: 20px !important; }
body.fh-entry .from-login #pwdRulesBox, body .fh-password-form .pwd-rules {
    padding: 14px; margin: 12px 0 0 !important; background: #f3f4ee !important;
    border: 0 !important; border-radius: 14px !important;
}
body.fh-entry .from-login #pwdRulesBox > div, body .fh-password-form .pwd-rules > div {
    line-height: 1.6; font-size: 12px;
}
body.fh-entry #otpModal .modal-content { border: 0; border-radius: 24px; padding: 26px; }
body.fh-entry #otpModal .digit-group { display: flex; justify-content: center; gap: 8px; }
body.fh-entry #otpModal .digit-group input {
    width: min(15vw, 54px); min-height: 55px; border: 1px solid #c7c9c1;
    border-radius: 12px; background: #fafaf6; color: var(--fh-ink);
    text-align: center; font-size: 23px;
}

html body.container-width:is(.fh-profile, .fh-password) {
    width: 100% !important; max-width: none !important;
}
body:is(.fh-profile, .fh-password) .wrap.page-flex__content {
    width: min(100%, 1040px) !important; max-width: none !important; margin-inline: auto;
    padding: 0 0 calc(100px + env(safe-area-inset-bottom)) !important;
    background: transparent !important; box-shadow: none !important;
}
body.fh-password .wg-change-password { padding-top: 0 !important; }
body.fh-profile .wg-setting {
    display: grid; gap: 22px; align-content: start;
    width: min(100%, 1000px); max-width: none !important; margin: 0 auto;
    padding: 0 var(--account-edge) 20px !important;
}
body.fh-profile .wg-setting > .tf-container {
    min-width: 0; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
}
.fh-profile-header, .fh-password-heading, .fh-verify-journey { min-width: 0; }
.fh-account-nav a, .fh-password-heading > a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #524d43;
    text-decoration: none; font: 650 13px/1.25 var(--fh-font);
}
.fh-account-nav a span, .fh-password-heading > a span { font-size: 18px; }
body .fh-profile-header h1, body .fh-password-heading h1, .fh-verify-heading h1 {
    margin: 3px 0 18px !important; color: var(--fh-ink) !important;
    font: 760 clamp(30px, 5vw, 46px)/1.05 var(--fh-font) !important; letter-spacing: -.055em !important;
}
.fh-identity-card, .fh-verify-heading {
    display: flex; align-items: center; gap: 14px; position: relative; isolation: isolate; overflow: hidden;
    border: 1px solid #ebd6bb; border-radius: 23px; padding: 26px 20px; background: linear-gradient(120deg,#ffecd5,#fff7eb);
}
.fh-identity-card { min-height: 122px; }
.fh-identity-card::after, .fh-verify-heading::after {
    content: ""; position: absolute; z-index: -1; inset: auto -14px -30px auto;
    width: 123px; aspect-ratio: 1; background: url("../../images/fullyhooked/wallet-actions.webp") 66.6667% 100% / 400% 200% no-repeat; opacity: .13;
}
.fh-identity-initial {
    flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px;
    background: white; color: #95370f; font-size: 26px; font-weight: 750; text-transform: uppercase;
}
.fh-identity-card h2 { margin: 0 0 4px; font-size: 22px; font-weight: 750; letter-spacing: -.04em; overflow-wrap: anywhere; }
.fh-identity-card dl { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; }
.fh-identity-card dt, .fh-identity-card dd { margin: 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.fh-identity-card dt { color: #645a4b; font-weight: 500; }
body.fh-profile .list-setting-item {
    display: block !important; background: none !important; border: 0 !important;
    border-radius: 0 !important; box-shadow: none !important; padding: 0 !important;
}
body.fh-profile .list-setting-item::before, body.fh-profile .list-setting-item::after { content: none !important; }
body.fh-profile .fh-group-title:not(:first-child) { margin-top: 24px; }
body.fh-profile .list-setting-item :is(a.setting-item, summary.setting-item, div.setting-item) {
    display: grid !important; grid-template-columns: 38px minmax(0,1fr) auto; gap: 3px 12px;
    align-items: center; min-height: 64px; margin: 0 0 7px !important;
    padding: 13px 15px !important; border: 1px solid var(--account-line) !important;
    border-radius: 16px !important; background: white !important; box-shadow: none !important;
    text-decoration: none; color: var(--fh-ink) !important;
}
body.fh-profile .list-setting-item .setting-item > i:first-child {
    grid-column: 1; grid-row: 1 / span 2; align-self: center; display: grid; place-items: center; width: 36px; height: 36px;
}
body.fh-profile .setting-item > :is(span, small):not([aria-hidden]) { grid-column: 2; text-align: left; }
body.fh-profile .setting-item > small { font: 470 12px/1.4 var(--fh-font); color: var(--account-muted); }
body.fh-profile .setting-item > span:first-of-type { font-weight: 680 !important; }
body.fh-profile .list-setting-item :is(a.setting-item, summary.setting-item)::after {
    content: "›"; grid-column: 3; grid-row: 1 / span 2; color: #73766c; font: 23px/1 var(--fh-font);
    position: static; transform: none; border: 0; width: auto; height: auto;
}
body.fh-profile .developer-mode-row > button { grid-column: 3; grid-row: 1 / span 2; }
body.fh-profile .passkey-settings-disclosure { border: 0; margin: 0; padding: 0; }
body.fh-profile .passkey-settings-disclosure[open] > summary { border-color: #d9875f !important; }
body .passkey-settings-disclosure .passkey-panel {
    display: grid; gap: 9px; padding: 18px; margin: 0 0 9px; background: #fafaf6;
    border: 1px solid #e1e0d8; border-radius: 16px;
}
body .passkey-settings-disclosure .passkey-panel [hidden] { display: none !important; }
body .passkey-settings-disclosure .passkey-device { display: flex; flex-wrap: wrap; gap: 6px; }
body .passkey-settings-disclosure .passkey-device label { padding: 8px 10px; border: 1px solid var(--fh-line); background: white; border-radius: 10px; }
body .passkey-settings-disclosure .passkey-device label:has(input:checked) { border-color: var(--fh-orange); background: #fff2e6; }
body .passkey-settings-disclosure .passkey-label-input {
    min-height: 46px; width: 100%; padding: 10px 12px; border: 1px solid #b7bcb3; border-radius: 12px; background: #fff;
}

.fh-password-heading, body.fh-password .tf-container:has(.fh-password-form) {
    width: min(calc(100% - 32px), 940px) !important; max-width: none !important; padding: 0 !important; margin: 0 auto !important;
}
body.fh-password .cp-card:has(.fh-password-form), body .mw-password .cp-card:has(.fh-password-form) {
    padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important;
}
body .cp-card:has(.fh-password-form)::before, body .cp-card:has(.fh-password-form)::after { content: none; }
body .fh-password-form { display: grid; gap: 16px; align-items: start; }
body .fh-password-form > :is(.fh-password-current,.fh-password-new,.pwd-rules) {
    padding: 19px !important; background: white !important; border: 1px solid #dedfd7 !important;
    border-radius: 18px !important; margin: 0 !important;
}
body .fh-password-form fieldset { margin: 0 0 10px !important; }
body .fh-password-form fieldset:last-child { margin-bottom: 0 !important; }
body .fh-password-form .box-auth-pass {
    display: flex; align-items: center; height: auto !important; min-height: 48px !important;
    margin: 5px 0 0 !important; border-radius: 12px !important; background: #fafaf7 !important; border: 1px solid #d3d6cc !important;
}
body .fh-password-form .box-auth-pass input {
    width: 100%; height: 46px !important; padding: 7px 46px 7px 13px !important; background: transparent !important;
    border: 0 !important; color: var(--fh-ink); font: 520 16px/1.4 var(--fh-font) !important;
}
body .fh-password-form .pwd-rules > div { display: flex; align-items: baseline; gap: 6px; margin: 5px 0; font-size: 13px !important; }
body .fh-password-form .pwd-rules .field-error-text { color: #98421d !important; }
body .fh-password-form .pwd-rules .field-ok-text { color: #256345 !important; }
body .fh-password-form .cp-btn-wrap { padding: 0 !important; margin: 0 !important; }

body.fh-authenticator .auth-secure-label, body.fh-authenticator .auth-kicker,
body.fh-authenticator .auth-panel-footer, body.fh-authenticator .auth-panel-icon { display: none; }
body.fh-authenticator .auth-shell { width: min(100%, 1040px); padding-inline: var(--account-edge); }
body.fh-authenticator .auth-layout { display: grid; grid-template-columns: 1fr; align-items: start; gap: 18px; }
.fh-verify-heading { display: block; padding: 23px 22px; }
.fh-verify-heading p { max-width: 32ch; margin: 0; font: 500 14px/1.5 var(--fh-font); color: #51493e; }
body.fh-authenticator .fh-verify-heading h1 { margin-bottom: 8px !important; }
body.fh-authenticator .fh-verify-journey .auth-steps { margin: 14px 0 0; padding: 15px 8px; background: white; border: 1px solid var(--account-line); border-radius: 18px; }
body.fh-authenticator .auth-panel { min-width: 0; width: 100%; padding: clamp(18px, 4vw, 36px); margin: 0; }
body.fh-authenticator .auth-panel-heading { text-align: left; margin-bottom: 18px; }
body.fh-authenticator .auth-panel-heading h2 { font: 730 clamp(22px,3vw,32px)/1.15 var(--fh-font); letter-spacing: -.04em; }
body.fh-authenticator .auth-panel-heading p { margin-inline: 0; color: #535b54; font-size: 14px; }
body.fh-authenticator .auth-contact-card { border-radius: 15px; color: var(--fh-ink); }
body.fh-authenticator .auth-contact-card p { color: #51594f; font-size: 13px; }
body.fh-authenticator .auth-steps li b { color: #596057; font-size: 11px; }
body.fh-authenticator .auth-code-input, body.fh-authenticator .auth-recovery-input {
    width: 100%; min-height: 52px; background: #fafaf7; border: 1px solid #b7bcb3; border-radius: 13px; font-size: 19px;
}

@media (min-width: 800px) {
    body.fh-profile .wg-setting { grid-template-columns: minmax(0,.85fr) minmax(0,1.2fr); gap: 40px; }
    body.fh-profile .wg-setting > .tf-container { margin-top: 50px !important; }
    .fh-identity-card { align-items: flex-start; flex-direction: column; padding: 30px; min-height: 220px; }
    .fh-identity-card::after { width: 200px; }
    body .fh-password-form { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
    .fh-password-current { grid-column: 1; grid-row: 1; }
    .fh-password-new { grid-column: 1; grid-row: 2; }
    body .fh-password-form .pwd-rules { grid-column: 2; grid-row: 1 / span 2; }
    .fh-password-form .cp-btn-wrap { grid-column: 1; }
    body.fh-authenticator .auth-layout { grid-template-columns: minmax(0,.85fr) minmax(0,1.25fr); gap: 28px; }
    body.fh-authenticator .fh-verify-journey .auth-steps { flex-direction: column; gap: 10px; padding: 18px; }
    body.fh-authenticator .fh-verify-journey .auth-steps li { flex-direction: row; justify-content: flex-start; gap: 14px; }
    body.fh-authenticator .fh-verify-journey .auth-steps li::after { display: none; }
    body.fh-register .wrap > .tf-container:has(.fh-auth-cover) { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
}
