/* Page 1: account overlays and the signed-in customer profile. */
:root {
  --account-paper: #f6f2e3;
  --account-ink: #454545;
  --account-orange: #ff4d00;
  --account-font: 'Century Gothic', 'Avenir Next', var(--font-ui), sans-serif;
  --account-display: 'QIOCARE Account Display', 'Arial Narrow', sans-serif;
  --account-unit: 1px;
}

body.customer-account-body { background: var(--account-paper); }
body.customer-account-body:not(.has-account-panel) { position: relative; min-height: 100vh; isolation: isolate; }
body.has-account-panel { overflow: hidden; }
body.has-account-panel::after { display: none; }
body.customer-account-body:not(.has-account-panel)::after { position: absolute; background: url('/assets/figma/account-grain.png') 0 0 / 96px 96px; mix-blend-mode: multiply; opacity: .1; }
.account-page { position: fixed; z-index: 100; inset: 0; display: block; background: var(--account-paper); }
.account-backdrop { position: absolute; inset: 0; background: var(--account-paper); }
.account-drawer { --account-unit: min(1px,.25vw); position: absolute; inset: 0 0 0 auto; display: flex; flex-direction: column; width: 100%; height: 100vh; height: 100dvh; overflow: auto; overscroll-behavior: contain; padding: calc(64 * var(--account-unit)) calc(40 * var(--account-unit)) calc(50 * var(--account-unit)); background: var(--account-paper); color: var(--account-ink); font-family: var(--account-font); letter-spacing: -.04em; isolation: isolate; }
.account-drawer:focus { outline: none; }
.account-drawer::after { position: fixed; z-index: 3; inset: 0; background: url('/assets/figma/account-grain.png') 0 0 / 96px 96px; mix-blend-mode: multiply; opacity: .1; pointer-events: none; content: ''; }
.panel-desktop-brand { display: none; }
.account-close { position: absolute; z-index: 2; top: calc(30 * var(--account-unit)); right: calc(36 * var(--account-unit)); width: calc(32 * var(--account-unit)); height: calc(32 * var(--account-unit)); display: grid; place-items: center; border: 0; background: transparent; color: var(--account-ink); }
.account-close svg { width: calc(28 * var(--account-unit)); height: calc(28 * var(--account-unit)); fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; }
.account-form { position: relative; display: flex; flex: 1 0 auto; flex-direction: column; width: 100%; min-height: calc(650 * var(--account-unit)); margin: 0; }
.account-display-title { margin: 0; color: var(--account-ink); font-family: var(--account-display); font-size: 72px; font-weight: 600; line-height: 72px; letter-spacing: -.02em; text-transform: none; -webkit-text-stroke: .4px currentColor; }
[data-condensed-title] > span { display: block; width: max-content; transform: scaleX(.5); transform-origin: left center; }
.account-drawer .account-display-title { width: calc(100% - 40 * var(--account-unit)); margin-inline: calc(20 * var(--account-unit)); font-size: calc(72 * var(--account-unit)); line-height: calc(72 * var(--account-unit)); }
.account-fields { display: grid; gap: calc(20 * var(--account-unit)); margin: calc(56 * var(--account-unit)) calc(20 * var(--account-unit)) 0; }
.account-form--signin .account-fields { margin-top: calc(104 * var(--account-unit)); }
.account-field { min-width: 0; margin: 0; }
.account-field input { width: 100%; min-width: 0; height: calc(36 * var(--account-unit)); border: 0; border-radius: 0; padding: 0 calc(20 * var(--account-unit)); background: #fff; color: var(--account-ink); font-family: var(--account-font); font-size: calc(14 * var(--account-unit)); font-weight: 400; line-height: normal; }
.account-field input::placeholder { color: var(--account-ink); opacity: 1; }
.account-field input:focus-visible { outline: 1px solid var(--account-ink); outline-offset: 2px; }
.account-password { display: flex; align-items: center; width: 100%; min-width: 0; height: calc(36 * var(--account-unit)); border: 0; background: #fff; }
.account-password input { flex: 1; width: 0; padding-right: 0; }
.account-password button { flex: 0 0 auto; align-self: stretch; border: 0; padding: 0 calc(20 * var(--account-unit)); background: transparent; color: var(--account-ink); font-family: var(--account-font); font-size: calc(14 * var(--account-unit)); cursor: pointer; }
.account-remember, .account-consent { display: flex; align-items: flex-start; gap: calc(19 * var(--account-unit)); margin: calc(20 * var(--account-unit)) calc(20 * var(--account-unit)) 0; font-size: calc(14 * var(--account-unit)); font-weight: 400; line-height: calc(17 * var(--account-unit)); cursor: pointer; }
.account-remember input, .account-consent input { appearance: none; flex: 0 0 calc(15 * var(--account-unit)); width: calc(15 * var(--account-unit)); height: calc(15 * var(--account-unit)); margin: 0; border: 1px solid var(--account-ink); border-radius: 0; background: transparent; cursor: pointer; }
.account-remember input:checked, .account-consent input:checked { border-color: var(--account-orange); background: var(--account-orange); }
.account-remember input:checked::after, .account-consent input:checked::after { display: block; width: 4px; height: 8px; margin: 1px 4px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); content: ''; }
.account-consent { font-size: calc(10 * var(--account-unit)); line-height: calc(12 * var(--account-unit)); letter-spacing: -.02em; }
.account-form .form-error { margin: 16px 20px 0; color: #a52e1d; font-size: 12px; line-height: 1.5; }
.account-form .form-error:empty, .profile-form .form-error:empty, .profile-success:empty { display: none; }
.account-submit { display: flex; align-items: center; justify-content: center; min-height: calc(47 * var(--account-unit)); border: 0; border-radius: 0; padding: 0 16px; background: var(--account-orange); color: var(--account-paper); font-family: var(--account-font); font-weight: 400; line-height: 1.3; cursor: pointer; }
.account-submit:hover, .profile-save:hover { background: #e84600; }
.account-submit:disabled, .profile-save:disabled, .profile-logout:disabled { opacity: .6; cursor: wait; }
.account-submit--signup { width: 100%; font-size: calc(14 * var(--account-unit)); }
.account-submit--signin { width: calc(125 * var(--account-unit)); min-height: calc(50 * var(--account-unit)); font-size: calc(20 * var(--account-unit)); }
.account-login-actions { display: flex; flex-direction: column; align-items: center; gap: calc(20 * var(--account-unit)); margin-top: calc(50 * var(--account-unit)); }
.account-forgot { font-size: calc(14 * var(--account-unit)); line-height: calc(20 * var(--account-unit)); text-align: center; }
.account-forgot:hover { text-decoration: underline; text-underline-offset: 3px; }
.account-bottom-actions { display: grid; gap: calc(10 * var(--account-unit)); margin-top: auto; padding-top: calc(40 * var(--account-unit)); }
.account-switch { display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--account-unit)); min-height: calc(47 * var(--account-unit)); padding: calc(10 * var(--account-unit)) calc(20 * var(--account-unit)); background: var(--account-ink); color: var(--account-paper); font-size: calc(14 * var(--account-unit)); line-height: calc(20 * var(--account-unit)); text-align: center; }
.account-form--signin .account-switch { width: calc(270 * var(--account-unit)); max-width: 100%; margin-inline: auto; gap: calc(9 * var(--account-unit)); }
.account-switch button { flex: 0 0 auto; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.customer-profile { width: min(100%,1440px); margin-inline: auto; padding-bottom: 80px; background: var(--account-paper); color: var(--account-ink); font-family: var(--account-font); letter-spacing: -.04em; }
.profile-shell { width: min(calc(100% - 400px),1040px); margin-inline: auto; }
.profile-heading { display: flex; align-items: flex-end; gap: 30px; min-height: 120px; margin-bottom: 50px; }
.profile-title { flex: 0 1 auto; max-width: 100%; font-size: 144px; line-height: 120px; }
.profile-logout { flex: 0 0 auto; min-width: 100px; min-height: 30px; border: 0; border-radius: 0; padding: 0 10px; background: var(--account-ink); color: var(--account-paper); font-family: var(--account-font); font-size: 20px; line-height: 30px; cursor: pointer; }
.profile-form { width: min(100%,720px); }
.profile-fields, .profile-password-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.profile-field input, .profile-field .account-password { height: 47px; }
.profile-password-hint { margin: 40px 0 20px; font-size: 14px; line-height: 17px; }
.profile-form .form-error { margin: 16px 0 0; color: #a52e1d; font-size: 13px; line-height: 1.5; }
.profile-save { min-width: 244px; min-height: 40px; margin-top: 20px; border: 0; border-radius: 0; padding: 0 25px; background: var(--account-orange); color: var(--account-paper); font-family: var(--account-font); font-size: 20px; line-height: 1.3; cursor: pointer; }
.profile-success { margin: 16px 0 0; color: #315645; font-size: 13px; line-height: 1.5; }
.site-footer.customer-profile-footer { min-height: 0; justify-content: flex-start; gap: 30px; padding: 0 0 60px; background: var(--account-paper); color: var(--account-ink); font-family: var(--account-font); }
.customer-profile-footer .home-footer-title { width: min(calc(100% - 400px),1040px); margin: 0 auto; border-top: 1px solid #aaa79b; padding-top: 30px; color: var(--account-ink); font: 600 120px/100px var(--account-display); letter-spacing: -.02em; -webkit-text-stroke: .65px currentColor; }
.customer-profile-footer .footer-inner { width: min(calc(100% - 400px),1040px); flex: 0 0 auto; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 160px; margin-inline: auto; padding: 0; }
.customer-profile-footer .footer-group, .customer-profile-footer .footer-bottom { font-family: var(--font-ui); }
.customer-profile-footer .footer-group h2 { margin: 0 0 40px; color: var(--account-ink); font-size: 26px; font-weight: 500; line-height: 28px; letter-spacing: 0; }
.customer-profile-footer .footer-group a, .customer-profile-footer .footer-group span { margin-top: 10px; color: var(--account-ink); font-size: 16px; line-height: 16px; }
.customer-profile-footer .footer-bottom { width: min(calc(100% - 400px),1040px); margin-inline: auto; border: 0; padding: 0; color: var(--account-ink); font-size: 16px; line-height: 28px; }

@media (max-width: 1150px) {
  .profile-shell, .customer-profile-footer .home-footer-title, .customer-profile-footer .footer-inner, .customer-profile-footer .footer-bottom { width: calc(100% - 48px); }
  .profile-heading { min-height: 110px; }
  .profile-title { font-size: 120px; line-height: 110px; }
}

@media (max-width: 760px) {
  .profile-field input { font-size: 16px; }
  .customer-profile { padding-bottom: 48px; }
  .profile-shell, .customer-profile-footer .home-footer-title, .customer-profile-footer .footer-inner, .customer-profile-footer .footer-bottom { width: calc(100% - 40px); }
  .profile-heading { gap: 14px; min-height: 86px; margin-bottom: 32px; }
  .profile-title { font-size: 96px; line-height: 86px; }
  .profile-logout { min-width: 80px; min-height: 28px; font-size: 15px; line-height: 28px; }
  .profile-fields, .profile-password-fields { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .profile-field input, .profile-field .account-password { height: 47px; }
  .profile-password-hint { margin: 28px 0 16px; font-size: 12px; line-height: 1.6; }
  .profile-save { width: 100%; min-height: 44px; font-size: 18px; }
  .site-footer.customer-profile-footer { gap: 24px; padding-bottom: 30px; }
  .customer-profile-footer .home-footer-title { padding-top: 24px; font-size: 48px; line-height: 48px; }
  .customer-profile-footer .footer-inner { gap: 30px; }
  .customer-profile-footer .footer-group h2 { margin-bottom: 16px; font-size: 17px; line-height: 1.3; }
  .customer-profile-footer .footer-group a, .customer-profile-footer .footer-group span { font-size: 11px; line-height: 1.5; }
  .customer-profile-footer .footer-bottom { font-size: 11px; line-height: 1.6; }
}

/* The Page1 references are mobile panels. Desktop uses the available canvas. */
@media (min-width: 761px) {
  .panel-desktop-brand { display: inline-flex; align-items: center; width: 124px; height: 40px; }
  .panel-desktop-brand img { display: block; width: 124px; height: 40px; filter: brightness(0); opacity: .73; }
  .account-page { overflow-y: auto; overscroll-behavior: contain; }
  .account-backdrop { position: fixed; }
  .account-drawer { position: relative; inset: auto; display: flex; flex-direction: column; width: min(calc(100% - 64px),560px); height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; margin: 0 auto; padding: 88px 40px 56px; background: transparent; letter-spacing: -.015em; }
  .account-close { top: 28px; right: 28px; width: 40px; height: 40px; }
  .account-close svg { width: 22px; height: 22px; stroke-width: 1.7; }
  .account-form { flex: none; align-self: center; justify-self: center; width: min(100%,480px); min-height: 0; }
  .account-drawer .account-display-title { width: 100%; margin: 0; font-size: 72px; line-height: 1.05; }
  .account-fields { grid-template-columns: minmax(0,1fr); gap: 18px; margin: 40px 0 0; }
  .account-form--signin .account-fields { margin: 72px 0 0; }
  .account-form .account-field input, .account-form .account-password { height: 48px; }
  .account-form .account-field input { padding-inline: 16px; background: rgba(255,255,255,.82); font-size: 14px; }
  .account-form .account-field input::placeholder { color: #8a877f; }
  .account-form .account-password { background: rgba(255,255,255,.82); }
  .account-form .account-password input { background: transparent; }
  .account-form .account-password button { padding-inline: 16px; font-size: 12px; }
  .account-remember, .account-consent { gap: 12px; margin: 20px 0 0; font-size: 13px; line-height: 1.6; }
  .account-consent { font-size: 12px; }
  .account-remember input, .account-consent input { flex-basis: 16px; width: 16px; height: 16px; margin-top: 2px; }
  .account-form .form-error { margin: 16px 0 0; font-size: 13px; }
  .account-bottom-actions { gap: 12px; margin-top: 40px; padding-top: 0; }
  .account-submit--signup { width: 100%; min-height: 50px; font-size: 15px; }
  .account-submit--signin { width: 180px; min-height: 50px; font-size: 18px; }
  .account-login-actions { align-items: center; gap: 20px; margin-top: 40px; }
  .account-forgot { font-size: 13px; line-height: 1.6; }
  .account-switch, .account-form--signin .account-switch { width: 100%; min-height: 48px; gap: 8px; margin: 0; padding: 12px 20px; background: var(--account-ink); color: var(--account-paper); font-size: 13px; line-height: 1.6; }
  .account-form--signin .account-bottom-actions { margin-top: 72px; padding-top: 0; }
}

@media (max-width: 760px) {
  .account-form { flex: 0 0 auto; min-height: 0; }
  .account-bottom-actions { margin-top: 24px; padding-top: 0; }
}
