/* ===== evc-theme.css ===== */

/* EVC Brand Theme - Overrides for Radzen Material Base */

/* Self-hosted Fonts */
@font-face {
  font-family: "Suisse Works";
  src: url("../fonts/SuisseWorks-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Works";
  src: url("../fonts/SuisseWorks-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* Aliases used by v2 account styles */
@font-face {
  font-family: "Suisse Works-Regular";
  src: url("../fonts/SuisseWorks-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Works-Bold";
  src: url("../fonts/SuisseWorks-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Int'l-Regular";
  src: url("../fonts/SuisseWorks-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Suisse BP Int'l-Regular";
  src: url("../fonts/SuisseWorks-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

/* EVC CSS Variables */
:root {
  --evc-primary: #A49066;
  --evc-secondary: #2D2D2D;
  --evc-base: #1E1E1E;
  --evc-body-bg: #fff;
  --evc-error: #FF5858;
  --evc-warning: #E40023;
  --evc-success: #399C0A;
  --evc-input-bg: #151515;
  --evc-input-border: #BABABA;

  /* Text inputs: blue default, stronger blue on focus, red only when invalid */
  --evc-input-text-border: #2563EB;
  --evc-input-text-border-hover: #1D4ED8;
  --evc-input-text-border-focus: #1E40AF;
  --evc-input-text-border-width: 2px;
  --evc-input-text-border-focus-width: 3px;
  --evc-input-text-border-error: var(--evc-warning);

  --evc-card-bg: #FEFEFE;
  --evc-card-border: #BABABA;
  --evc-radius: 10px;

  /* Figma _EXAMPLE design tokens */
  --primary-color: #B24025;
  --base-color: #1E1E1E;
  --main-bg: #fff;
  --card-bg: #FEFEFE;
  --card-header-color: #fff;
  --card-border-color: #B24025;
  --card-shadow: none;
  --card-scale-color: #fff;
  --card-scale-border: #B24025;
  --card-scale-radius: 10px;
  --layout-radius: 4px;
  --font-base-stack: Lato, Inter, Arial, sans-serif;
  --font-headings-stack: Lato, Inter, Arial, sans-serif;
  --sidebar-border-color: #fff;

  /* Radzen theme variable overrides */
  --rz-primary: var(--evc-primary);
  --rz-primary-light: #bfaa82;
  --rz-primary-lighter: #d9c9a8;
  --rz-primary-dark: #8a7a56;
  --rz-secondary: var(--evc-secondary);
  --rz-text-color: var(--evc-base);
  --rz-base-background-color: var(--evc-body-bg);
  --rz-text-font-family: var(--font-base-stack);
  --rz-border-radius: var(--evc-radius);

  /* Inner page layout (matches _EXAMPLE variables-4.css).
     Use px (not rem): Account sets html { font-size: 62.5%/50% }, and rem-based
     chrome made the mobile/tablet menu logo+header grow on Offers vs My Account.
     160px == the intended 16rem at the Account 10px root. */
  --header-mob-height: 160px;
  --evc-sidebar-mob-bg: #141414;
  /* Mobile RadzenHeader (.evc-mobile-header): black patterned wash; replace .svg with .png if desired */
  --evc-mobile-header-bg-fallback: #050505;
  --evc-mobile-header-bg-image: url("../images/mobile-header-bg.svg");
  --evc-mobile-header-icon: #f7f2ea;

  /* Radzen sidebar/header/panel-menu overrides */
  --rz-sidebar-background-color: transparent;
  --rz-sidebar-shadow: none;
  --rz-panel-menu-background-color: transparent;
  --rz-panel-menu-item-color: #fff;
  --rz-header-background-color: var(--evc-mobile-header-bg-fallback);

  /* Loading indicator theme — same pattern as HVC (CSS vars, no hardcoded
     AccentColor in razor). Portal pages use EVC terracotta; auth band overrides
     to gold below. */
  --pp-loading-accent: var(--primary-color);
  --pp-loading-track: rgba(178, 64, 37, 0.22);
  --pp-loading-text: var(--evc-base);
  --pp-loading-overlay-background:
    radial-gradient(circle at top, rgba(178, 64, 37, 0.14) 0%, rgba(178, 64, 37, 0) 40%),
    linear-gradient(180deg, #fffaf8 0%, #f7f1ee 55%, #f0e8e4 100%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings-stack);
    line-height: 1.15;
}

/* Radzen 10+: <input class="rz-textbox">. Older themes: .rz-textbox wraps .rz-inputtext. */
body input.rz-textbox:not(.rz-state-disabled):not(:disabled),
body .rz-textbox:not(.rz-state-disabled) .rz-inputtext,
body .rz-textbox:not(.rz-state-disabled) input.rz-inputtext {
    border-width: var(--evc-input-text-border-width) !important;
    border-style: solid !important;
    border-color: var(--evc-input-text-border) !important;
    transition: border-color 0.2s ease, border-width 0.15s ease, box-shadow 0.2s ease;
}

body input.rz-textbox:not(.rz-state-disabled):not(:disabled):hover:not(:focus),
body .rz-textbox:not(.rz-state-disabled) .rz-inputtext:hover:not(:disabled):not(:focus),
body .rz-textbox:not(.rz-state-disabled) input.rz-inputtext:hover:not(:disabled):not(:focus) {
    border-color: var(--evc-input-text-border-hover) !important;
}

body input.rz-textbox:not(.rz-state-disabled):not(:disabled):focus,
body .rz-textbox:not(.rz-state-disabled) .rz-inputtext:focus,
body .rz-textbox:not(.rz-state-disabled) input.rz-inputtext:focus {
    border-color: var(--evc-input-text-border-focus) !important;
    border-width: var(--evc-input-text-border-focus-width) !important;
    box-shadow: none !important;
    outline: none !important;
}

body input.rz-textbox.rz-state-invalid:not(.rz-state-disabled):not(:disabled),
body .rz-textbox.rz-state-invalid:not(.rz-state-disabled) .rz-inputtext,
body .rz-textbox.rz-state-invalid:not(.rz-state-disabled) input.rz-inputtext {
    border-color: var(--evc-input-text-border-error) !important;
    border-width: var(--evc-input-text-border-width) !important;
}

body input.rz-textbox.rz-state-invalid:not(.rz-state-disabled):not(:disabled):focus,
body .rz-textbox.rz-state-invalid:not(.rz-state-disabled) .rz-inputtext:focus,
body .rz-textbox.rz-state-invalid:not(.rz-state-disabled) input.rz-inputtext:focus {
    border-color: var(--evc-input-text-border-error) !important;
    border-width: var(--evc-input-text-border-focus-width) !important;
    box-shadow: none !important;
}


/* ===== auth.css ===== */

/* ==========================================================================
   Auth Pages — EVC Light Theme
   Matches Figma _EXAMPLE specs for Mobile / Tablet / Desktop

   _EXAMPLE rem conversion:
     Mobile & Desktop (≥992px): 1rem = 10px  →  px = rem * 10
     Tablet (768px – 991px):    1rem = 8px   →  px = rem * 8
   ========================================================================== */

/* ------------------------------------------------------------------
   1. Page Wrapper & Body Override
   ------------------------------------------------------------------ */
html:has(.auth-page-wrapper),
body:has(.auth-page-wrapper),
#app:has(.auth-page-wrapper) {
    background: #ECECEC;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.auth-page-wrapper {
    position: relative;
    width: 100%;
    background: #ECECEC;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    color: #3C230C;
    display: flex;
    flex-direction: column;
}

.password-requirements__caption {
    visibility:collapse;
}
/* ------------------------------------------------------------------
   2. Auth Page Grid (targets RadzenRow .rz-row)
   Mobile: flex column  |  768px+: CSS grid 2 equal columns
   ------------------------------------------------------------------ */
:root {
    --rz-gap: 0px;
}

.auth-page.rz-row,
.auth-page {
    gap: 0 !important;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap !important;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    flex: 1 1 auto !important;
    margin: 0 !important;
}

@media (min-width: 992px) {
    .auth-page.rz-row,
    .auth-page {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 45.14%);
        flex-direction: unset;
    }
}

/* ------------------------------------------------------------------
   3. Form Column
   ------------------------------------------------------------------ */
.auth-form-col {
    flex: 1 1 auto !important;
    min-height: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 25px 20px !important;
    background-color: #ECECEC;
    background-image: url(../images/bg.png);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: auto;
    max-width: 100% !important;
    width: 100% !important;
    flex-basis: auto !important;
}

@media (min-width: 768px) {
    .auth-form-col {
        display: flex;
        flex-direction: column;
        padding: 40px 24px 24px !important;
        max-width: none !important;
        flex-basis: auto !important;
    }
}

@media (min-width: 992px) {
    .auth-form-col {
        padding: 30px 30px 30px !important;
    }
}

@media (min-width: 1400px) {
    .auth-form-col {
        align-items: center;
    }
}

/* ------------------------------------------------------------------
   4. Form Main Content Container
   ------------------------------------------------------------------ */
.auth-form-main {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) and (max-width: 991px) {
    .auth-form-main {
        max-width: 550px;
        margin: 0 auto;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }
}

@media (min-width: 992px) {
    .auth-form-main {
        max-width: 550px;
        justify-content: center;
    }
}

/* ------------------------------------------------------------------
   5. Logo
   ------------------------------------------------------------------ */
.auth-logo {
    display: block;
    margin-bottom: 0px;
    text-decoration: none;
}

.auth-logo__img {
    display: block;
    height: auto;
    max-width: 47%;
    margin: 0 auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .auth-logo {
        margin-bottom: 0px;
    }

    .auth-logo__img {
        max-width: 47%;
        max-height: none;
    }
}

@media (min-width: 992px) {
    .auth-logo {
        margin-bottom: 0px;
    }
}

@media (min-width: 1200px) {
    .auth-logo {
        margin-bottom: 0px;
    }
}

/* ------------------------------------------------------------------
   6. Heading & Subtitle
   ------------------------------------------------------------------ */
.auth-intro {
    text-align: center;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .auth-intro {
        margin-bottom: 25px;
    }
}

@media (min-width: 992px) {
    .auth-intro {
        margin-bottom: 0;
    }
}

.auth-heading {
    font-weight: bold;
    font-size: 26px;
    line-height: 1.3;
    text-transform: uppercase;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
    padding: 0;
}

@media (min-width: 768px) {
    .auth-heading {
        font-size: 27px;
    }
}

@media (min-width: 992px) {
    .auth-heading {
        font-size: 34px;
    }
}

@media (min-width: 1200px) {
    .auth-heading {
        margin-bottom: 0px;
    }
}

.auth-subtitle {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    font-weight: 500;
    margin-top: 20px;
    color: inherit;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

@media (min-width: 768px) {
    .auth-subtitle {
        font-size: 14px;
        margin-top: 10px;
    }
}

@media (min-width: 992px) {
    .auth-subtitle {
        font-size: 14px;
        margin-top: 10px;
    }
}

/* ------------------------------------------------------------------
   7. Form Structure
   ------------------------------------------------------------------ */
.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-fields {
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .auth-fields {
        margin-bottom: 24px;
    }
}

@media (min-width: 992px) {
    .auth-fields {
        margin-bottom: 30px;
    }
}

@media (min-width: 1200px) {
    .auth-fields {
        margin-bottom: 40px;
    }
}

.auth-field:not(:last-child) {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .auth-field:not(:last-child) {
        margin-bottom: 24px;
    }
}

@media (min-width: 992px) {
    .auth-field:not(:last-child) {
        margin-bottom: 30px;
    }
}

/* ------------------------------------------------------------------
   8. Labels
   ------------------------------------------------------------------ */
.auth-label {
    user-select: none;
    cursor: pointer;
    display: inline-block;
    line-height: 1.1;
    font-weight:400;
    font-size: 14px;
    margin-bottom: 8px;
    color: inherit;
}

@media (min-width: 768px) {
    .auth-label {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

@media (min-width: 992px) {
    .auth-label {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

/* ------------------------------------------------------------------
   9. Native HTML Input Styling
   ------------------------------------------------------------------ */
.auth-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
    display: block;
    width: 100%;
    padding: 10px 15px 10px 20px;
    height: 50px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.3;
    color: #3C230C;
    background: #fff;
    border: var(--evc-input-text-border-width) solid var(--evc-input-text-border);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease-in-out, border-width 0.15s ease-in-out;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .auth-input {
        font-size: 14px;
        height: 48px;
    }
}

@media (min-width: 992px) {
    .auth-input {
        font-size: 18px;
        height: 60px;
    }
}

@media (min-width: 1200px) {
    .auth-input {
        font-size: 20px;
    }
}

.auth-input::placeholder {
    color: #A89686;
    font-weight: 400;
    font-style: italic;
    opacity: 1;
}

.auth-input:hover:not(:focus):not(.has-error) {
    border-color: var(--evc-input-text-border-hover);
}

.auth-input:focus:not(.has-error) {
    border-color: var(--evc-input-text-border-focus);
    border-width: var(--evc-input-text-border-focus-width);
}

.auth-input.has-error {
    border-color: var(--evc-input-text-border-error);
    border-width: var(--evc-input-text-border-width);
}

.auth-input.has-error:hover {
    border-color: var(--evc-input-text-border-error);
    border-width: var(--evc-input-text-border-width);
}

.auth-input.has-error:focus {
    border-color: var(--evc-input-text-border-error);
    border-width: var(--evc-input-text-border-focus-width);
}

/* Browser autofill override */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #3C230C !important;
    caret-color: #3C230C;
    transition: background-color 5000s ease-in-out 0s;
}

/* ------------------------------------------------------------------
   10. Password Toggle
   ------------------------------------------------------------------ */
.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input {
    padding-right: 50px;
    height:50px;
}

.auth-pw-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translate(0, -50%);
    display: flex;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

.auth-pw-toggle:hover {
    opacity: 0.7;
}

.auth-pw-toggle-icon {
    margin: auto;
    width: 20px;
    height: 20px;
    display: block;
}

/* ------------------------------------------------------------------
   11. Help / Restore Link
   ------------------------------------------------------------------ */
.auth-help-link {
    text-align: right;
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.4;
    color: #3C230C;
    white-space: normal;
}

.auth-help-link a {
    font-size: 14px;
    color: #3C230C;
    transition: color 0.2s ease;
}

@media (min-width: 768px) {
    .auth-help-link {
        font-size: 13px;
    }

    .auth-help-link a {
        font-size: 13px;
    }
}

@media (min-width: 992px) {
    .auth-help-link {
        font-size: 16px;
    }

    .auth-help-link a {
        font-size: 16px;
    }
}

.auth-help-link a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   12. Error Notification
   ------------------------------------------------------------------ */
.auth-error-notification {
    background: transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 2px;
    border: 1px solid #861A1F;
    color: #3C230C;
    padding: 10px;
}

.auth-error-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-error-icon {
    width: 18px;
    height: 16px;
    flex-shrink: 0;
}

.auth-error-title {
    font-size: 15px;
    font-weight: 700;
    color: #3C230C;
    letter-spacing: 0.5px;
    margin: 0;
}

.auth-error-description {
    font-size: 15px;
    font-weight: 400;
    color: #3C230C;
    letter-spacing: 0.5px;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

.auth-error-notification[role="alert"] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.auth-error-notification[role="alert"] .auth-error-description {
    margin: 0;
    flex: 1;
}

.auth-error-notification--login[role="alert"] {
    display: block;
}

.auth-error-notification--login .auth-error-description--login {
    margin: 0;
    font-weight: 500;
}

@media (min-width: 768px) {
    .auth-error-notification {
        padding: 15px;
    }

    .auth-error-title,
    .auth-error-description {
        font-size: 16px;
    }
}

/* ------------------------------------------------------------------
   13. Bottom Section (Button + Helper + TPI)
   ------------------------------------------------------------------ */
.auth-bottom {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.auth-bottom-content {
    text-align: center;
}

.auth-login-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    line-height: 1.5;
    text-transform: uppercase;
    color: #fff;
    background: #B24025;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: default;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out, filter 0.3s ease-in-out;
    white-space: nowrap;
    user-select: none;
    outline: none;
}

@media (min-width: 768px) {
    .auth-login-btn {
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    .auth-login-btn {
        font-size: 20px;
    }
}

.auth-login-btn.is-active {
    opacity: 1;
    cursor: pointer;
    filter: none;
}

.auth-login-btn.is-active:hover,
.auth-login-btn.is-active:focus {
    opacity: 0.8;
}

.auth-login-btn.is-active:active {
    opacity: 0.9;
}

.auth-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.auth-login-btn--secondary {
    background: #B24025;
    color: #fff;
    border: 2px solid transparent;
    opacity: 1;
    filter: none;
    cursor: pointer;
}

.auth-login-btn--secondary:hover,
.auth-login-btn--secondary:focus {
    opacity: 0.85;
}

.auth-login-btn--secondary:active {
    opacity: 0.95;
}

.auth-form-main:has(.auth-page--resend-registration-email) .auth-logo {
    margin-bottom: 28px;
}

.auth-page--resend-registration-email {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
    .auth-page--resend-registration-email {
        padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
    }
}

.auth-create-account {
    margin-top: 20px;
    font-size: 15px;
    color: inherit;
}

@media (min-width: 768px) {
    .auth-create-account {
        font-size: 14px;
        margin-top: 24px;
    }
}

@media (min-width: 992px) {
    .auth-create-account {
        font-size: 18px;
        margin-top: 30px;
    }
}

@media (min-width: 1200px) {
    .auth-create-account {
        font-size: 20px;
    }
}

.auth-create-account a {
    color: inherit;
    font-weight: 400;
    text-decoration: none;
}

.auth-create-account a:hover {
    text-decoration: underline;
}

.auth-create-account-text {
    margin: 0 0 12px;
}

.auth-register-btn,
.auth-register-btn:hover,
.auth-register-btn:focus {
    background: transparent;
    border: 1px solid #B24025;
    color: #B24025;
    text-decoration: none;
}

.auth-tpi-logo {
    margin-top: 30px;
    text-align: center;
}

.auth-tpi-logo img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 20px;
    object-fit: contain;
    margin: 0 auto;
}

.auth-form-main:has(.auth-intro--resend-registration-success) .auth-tpi-logo {
    margin-bottom: clamp(2rem, 5dvh, 4rem);
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .auth-tpi-logo img {
        max-height: none;
    }
}

/* ------------------------------------------------------------------
   14. Hero Column (Preview Image)
   ------------------------------------------------------------------ */
.auth-hero-col {
    position: relative;
    order: -1;
    aspect-ratio: 16 / 11.2;
    flex: none;
    overflow: hidden;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    flex-basis: auto !important;
}

.auth-hero-col img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
}

@media (min-width: 576px) {
    .auth-hero-col {
        aspect-ratio: 16 / 10;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .auth-hero-col {
        aspect-ratio: 16 / 9;
        max-height: 350px;
    }
}

/* TPID-242: keep the hero column from filling the entire viewport on short or
   landscape phone/tablet viewports (e.g. iPhone/Android landscape, iPad
   portrait with browser chrome). Without this cap the form falls below the
   fold and the user reports they "cannot see the login screen". */
@media (max-width: 991px) {
    .auth-hero-col {
        max-height: min(350px, 40vh);
        max-height: min(350px, 40dvh);
    }
}

/* TPID-4301: at >=992px (which includes iPad / Android tablet landscape)
   the previous rule pinned the hero image with position: fixed, so any
   document scroll or overscroll bounce moved the form column while the
   image stayed pinned to the viewport. That made the screen elements
   look like they were "moving separately and inconsistently".
   Anchor the image inside its grid column with position: absolute so
   the entire auth layout scrolls as a single unit. */
@media (min-width: 992px) {
    .auth-hero-col {
        order: 0;
        position: relative;
        aspect-ratio: auto;
        max-width: none !important;
        flex-basis: auto !important;
        max-height: none;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: hidden;
    }

    .auth-hero-col img {
        position: absolute;
        inset: 0;
        top: 0;
        left: 0;
        right: auto;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Hero image variants */
.auth-hero-img--mobile,
.auth-hero-img--tablet {
    display: none !important;
}

.auth-hero-img--default {
    display: block !important;
}

@media (max-width: 575px) {
    .auth-hero-img--default {
        display: none !important;
    }

    .auth-hero-img--mobile {
        display: block !important;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .auth-hero-img--default {
        display: none !important;
    }

    .auth-hero-img--tablet {
        display: block !important;
    }
}

/* ------------------------------------------------------------------
   14b. Footer Decoration (bgfooter mountain strip)
   ------------------------------------------------------------------ */
.auth-footer-decoration {
    margin-top: auto;
    pointer-events: none;
    flex-shrink: 0;
    align-self: stretch;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -25px;
    line-height: 0;
    font-size: 0;
}

@media (min-width: 768px) {
    .auth-footer-decoration {
        margin-left: -24px;
        margin-right: -24px;
        margin-bottom: -24px;
    }
}

@media (min-width: 992px) {
    .auth-footer-decoration {
        margin-left: -30px;
        margin-right: -30px;
        margin-bottom: -30px;
    }
}

@media (max-width: 991px) {
    .auth-form-col {
        padding-bottom: 0 !important;
    }

    .auth-footer-decoration {
        margin-bottom: 0;
    }
}


.auth-footer-decoration__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------------------------------------------
   15. Password Requirements
   ------------------------------------------------------------------ */
.password-requirements__caption {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 15px;
}

.password-requirements__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-requirements__item {
    position: relative;
    padding-left: 2.3rem;
    font-size: 15px;
    line-height: 1.55;
}

.password-requirements__item:not(:last-child) {
    margin-bottom: 0.3rem;
}

.password-requirements__item::before {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    top: 0.2rem;
    left: 0;
    background-size: contain;
    background-repeat: no-repeat;
}

.password-requirements__item.is-met {
    color: var(--success, #399C0A);
}

.password-requirements__item.is-met::before {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.75 0C12 0 15.5 3.5 15.5 7.75C15.5 12.0312 12 15.5 7.75 15.5C3.46875 15.5 0 12.0312 0 7.75C0 3.5 3.46875 0 7.75 0ZM7.75 14.5C11.4688 14.5 14.5 11.4688 14.5 7.75C14.5 4.03125 11.4375 1 7.75 1C4 1 1 4.0625 1 7.75C1 11.5 4.03125 14.5 7.75 14.5ZM12.1562 5.9375L6.53125 11.5312C6.375 11.6562 6.125 11.6562 6 11.5312L3.3125 8.8125C3.15625 8.65625 3.15625 8.4375 3.3125 8.28125L3.5625 8.03125C3.71875 7.875 3.96875 7.875 4.09375 8.03125L6.25 10.1875L11.375 5.125C11.5 4.96875 11.75 4.96875 11.9062 5.125L12.1562 5.40625C12.3125 5.53125 12.3125 5.78125 12.1562 5.9375Z' fill='%23399C0A'/%3E%3C/svg%3E%0A");
}

.password-requirements__item.is-pending {
    color: var(--error, #E40023);
}

.password-requirements__item.is-pending::before {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.76514 0.96875C5.31299 0.96875 3.10303 2.27051 1.89209 4.35938C0.650879 6.47852 0.650879 9.05176 1.89209 11.1406C3.10303 13.2598 5.31299 14.5312 7.76514 14.5312C10.187 14.5312 12.397 13.2598 13.6079 11.1406C14.8491 9.05176 14.8491 6.47852 13.6079 4.35938C12.397 2.27051 10.187 0.96875 7.76514 0.96875ZM7.76514 15.5C4.97998 15.5 2.43701 14.0469 1.04443 11.625C-0.348145 9.2334 -0.348145 6.29688 1.04443 3.875C2.43701 1.4834 4.97998 0 7.76514 0C10.52 0 13.063 1.4834 14.4556 3.875C15.8481 6.29688 15.8481 9.2334 14.4556 11.625C13.063 14.0469 10.52 15.5 7.76514 15.5ZM5.46436 5.47949C5.646 5.29785 5.979 5.29785 6.16064 5.47949L7.76514 7.08398L9.33936 5.47949C9.521 5.29785 9.854 5.29785 10.0356 5.47949C10.2173 5.66113 10.2173 5.99414 10.0356 6.17578L8.43115 7.75L10.0356 9.35449C10.2173 9.53613 10.2173 9.86914 10.0356 10.0508C9.854 10.2324 9.521 10.2324 9.33936 10.0508L7.76514 8.44629L6.16064 10.0508C5.979 10.2324 5.646 10.2324 5.46436 10.0508C5.28271 9.86914 5.28271 9.53613 5.46436 9.35449L7.06885 7.75L5.46436 6.17578C5.28271 5.99414 5.28271 5.66113 5.46436 5.47949Z' fill='%23E40023'/%3E%3C/svg%3E%0A");
}

/* Dark variant (auth pages with dark background) */
.password-requirements--dark .password-requirements__caption {
    color: #fff;
}

.password-requirements--dark .password-requirements__item.is-met {
    color: #5AD58E;
}

.password-requirements--dark .password-requirements__item.is-pending {
    color: #FF5858;
}

/* Light variant */
.password-requirements--light .password-requirements__caption {
    color: #1a2a44;
}

@media (min-width: 768px) {
    .password-requirements__caption {
        font-size: 17px;
    }

    .password-requirements__item {
        font-size: 18px;
        line-height: 1.6;
    }
}

@media (min-width: 1200px) {
    .password-requirements__caption {
        font-size: 18px;
    }

    .password-requirements__item {
        font-size: 19px;
    }
}

.auth-password-requirements-field {
    border: 1px solid rgba(60, 35, 12, 0.2);
    border-radius: 0.5rem;
    padding: 1rem 1.2rem;
    margin-top:0px;
}

/* Register: keep requirements compact on mobile/tablet until the user has a field error */
@media (max-width: 991px) {
    .auth-register-page .auth-password-requirements-field {
        display: none;
    }

    .auth-register-page .auth-fields:has(.auth-password-field .auth-input.has-error) .auth-password-requirements-field,
    .auth-register-page .auth-fields:has(.auth-password-field .auth-field-error.is-visible) .auth-password-requirements-field {
        display: block;
    }
}

/* ------------------------------------------------------------------
   16. Field Errors
   ------------------------------------------------------------------ */
.auth-field-error {
    color: #E40023;
    font-size: 13px;
    margin-top: 4px;
    display: block;
    min-height: 16px;
    visibility: hidden;
}

.auth-field-error.is-visible {
    visibility: visible;
}

/* ------------------------------------------------------------------
   17. Confirm / Landing Page Icons
   ------------------------------------------------------------------ */
.auth-check-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #B24025;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-check-circle .rzi {
    font-size: 2.5rem;
    color: #fff;
}

.auth-confirm-icon {
    display: block;
    width: 80px;
    height: 80px;
    margin: 40px auto 0;
    opacity: 0.9;
    object-fit: contain;
}

@media (max-width: 767px) {
    .auth-confirm-icon {
        width: 64px;
        height: 64px;
        margin-top: 24px;
    }
}

/* ----------------------------------------------------------
   Loading indicators (aligned with HVC TPID-5598 pattern)
   Colors stay tenant-specific via --pp-loading-* tokens.
   ---------------------------------------------------------- */

/* Auth intro band (Logout + RegisterLanding): use the same terracotta
   spinner as the rest of the portal pages (--pp-loading-* from :root). */

/* Compact 40px page spinner on every surface (fixed px — not rem — so
   account-page root font-size scaling cannot resize it). */
.pp-page-loading-indicator__spinner {
    width: 40px !important;
    height: 40px !important;
    border-width: 3px !important;
}

.auth-loading-spinner {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    background-color: transparent;
}

/* In-button spinner sits before the label; inherits button text via currentColor. */
.auth-login-btn .auth-btn-spinner,
.ued__btn--submit .dialog-btn-spinner,
.upd__btn--submit .dialog-btn-spinner {
    margin-inline-end: 0.5em;
    vertical-align: -0.15em;
}

.auth-login-btn[data-loading="true"],
.ued__btn--submit[data-loading="true"],
.upd__btn--submit[data-loading="true"] {
    cursor: progress;
}

/* ------------------------------------------------------------------
   18. iOS Safe Area
   ------------------------------------------------------------------ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .auth-bottom {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ------------------------------------------------------------------
   19. Small height screens
   ------------------------------------------------------------------ */
@media (max-height: 700px) and (min-width: 768px) {
    .auth-logo {
        margin-bottom: 0px;
    }

    .auth-intro {
        margin-bottom: 25px;
    }

    .auth-heading {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .auth-tpi-logo {
        margin-top: 15px;
    }
}

/* ------------------------------------------------------------------
   20. Auth Caption (bold label variant for other auth pages)
   ------------------------------------------------------------------ */
.auth-area__caption {
    font-weight: bold;
    font-size: 15px;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .auth-area__caption {
        margin-top: 16px;
        font-size: 14px;
    }
}

@media (min-width: 992px) {
    .auth-area__caption {
        margin-top: 20px;
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    .auth-area__caption {
        font-size: 24px;
    }
}

/* ------------------------------------------------------------------
   21. Register Page — Desktop Proportions
   The register form has 6 fields + password requirements, so it needs
   tighter spacing on desktop to avoid excessive height.
   ------------------------------------------------------------------ */
@media (min-width: 992px) {
    .auth-register-page {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .auth-register-page .auth-intro {
        margin-bottom: 15px;
    }

    .auth-register-page .auth-heading {
        font-size: 28px;
    }

    .auth-register-page .auth-subtitle {
        font-size: 13px;
        margin-top: 8px;
    }

    .auth-register-page .auth-label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .auth-register-page .auth-input {
        height: 50px;
        font-size: 16px;
    }

    .auth-register-page .auth-input-wrap .auth-input {
        height: 50px;
    }

    .auth-register-page .auth-field:not(:last-child) {
        margin-bottom: 16px;
    }

    .auth-register-page .auth-fields {
        margin-bottom: 20px;
    }

    .auth-register-page .password-requirements__item {
        font-size: 14px;
        line-height: 1.5;
    }

    .auth-register-page .password-requirements__caption {
        font-size: 14px;
    }

    .auth-register-page .auth-create-account {
        font-size: 15px;
        margin-top: 20px;
    }

    .auth-register-page .auth-login-btn {
        font-size: 16px;
    }

    .auth-register-page .auth-tpi-logo {
        margin-top: 20px;
    }
}

@media (min-width: 1200px) {
    .auth-register-page .auth-heading {
        font-size: 30px;
    }

    .auth-register-page .auth-input {
        height: 52px;
        font-size: 17px;
    }

    .auth-register-page .auth-input-wrap .auth-input {
        height: 52px;
    }

    .auth-register-page .auth-field:not(:last-child) {
        margin-bottom: 18px;
    }

    .auth-register-page .auth-fields {
        margin-bottom: 24px;
    }

    .auth-register-page .auth-label {
        font-size: 15px;
    }

    .auth-register-page .password-requirements__item {
        font-size: 15px;
    }

    .auth-register-page .auth-create-account {
        font-size: 16px;
    }

    .auth-register-page .auth-login-btn {
        font-size: 18px;
    }
}

/* ------------------------------------------------------------------
   22. Register success — post-sign-up confirmation (long heading)
   ------------------------------------------------------------------ */
.auth-page--register-success .auth-heading {
    max-width: 100%;
}

@media (min-width: 992px) {
    .auth-page--register-success .auth-heading {
        font-size: clamp(22px, 2.1vw, 30px);
        white-space: nowrap;
    }
}

.auth-page--register-success,
.auth-page--forgot-password-success,
.auth-page--resend-registration-success,
.auth-page--reset-password-success,
.auth-page--register-landing {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* TPID-4101: anchor the confirmation CTA ("Okay, Continue" / "Continue") and the
   Driven By TPI logo to the bottom of the auth column on every viewport, not
   just desktop. Without these rules the flex chain breaks on tablet / Android
   tablet sizes (where .auth-form-main is not always a flex column) and the
   button + logo float up into the middle of the screen. We force the success-
   page containers to fill the column so .auth-bottom's `margin-top: auto`
   pushes the footer to the true bottom of the viewport. */
.auth-form-col:has(.auth-page--register-success),
.auth-form-col:has(.auth-page--forgot-password-success),
.auth-form-col:has(.auth-page--resend-registration-success),
.auth-form-col:has(.auth-page--reset-password-success),
.auth-form-col:has(.auth-page--register-landing) {
    justify-content: flex-start;
}

.auth-form-main:has(.auth-page--register-success),
.auth-form-main:has(.auth-page--forgot-password-success),
.auth-form-main:has(.auth-page--resend-registration-success),
.auth-form-main:has(.auth-page--reset-password-success),
.auth-form-main:has(.auth-page--register-landing) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: flex-start;
    min-height: 0;
}

/* ------------------------------------------------------------------
   23. Back Arrow (Forgot Password, etc.)
   ------------------------------------------------------------------ */
.auth-back-arrow {
    margin-bottom: 10px;
}

.auth-back-arrow a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #3C230C;
    text-decoration: none;
    border-radius: 50%;
    transition: opacity 0.2s ease;
}

.auth-back-arrow a:hover,
.auth-back-arrow a:focus-visible {
    opacity: 0.6;
}

.auth-back-arrow svg {
    width: 18px;
    height: 15px;
    display: block;
}

@media (min-width: 768px) {
    .auth-back-arrow {
        margin-bottom: 8px;
    }
}

@media (min-width: 992px) {
    .auth-back-arrow {
        margin-bottom: 6px;
    }

    .auth-back-arrow svg {
        width: 20px;
        height: 17px;
    }
}

/* ------------------------------------------------------------------
   24. Envelope Icon (Forgot Password intro)
   ------------------------------------------------------------------ */
.auth-envelope-icon {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.auth-envelope-icon svg {
    width: 44px;
    height: 44px;
    color: #3C230C;
    opacity: 0.85;
}

@media (min-width: 768px) {
    .auth-envelope-icon {
        margin-top: 16px;
    }

    .auth-envelope-icon svg {
        width: 48px;
        height: 48px;
    }
}

@media (min-width: 992px) {
    .auth-envelope-icon {
        margin-top: 20px;
    }

    .auth-envelope-icon svg {
        width: 54px;
        height: 54px;
    }
}


/* ===== inner-page.css ===== */

/* ============================================================
   Inner Page Shell
   Radzen layout shell + custom sidebar nav matching EVC design
   Desktop shell starts at 1200px so 14-inch laptop browsers use the full sidebar layout.
   ============================================================ */

/* --- RadzenLayout --- */
.evc-layout {
    height: 100vh;
    height: 100dvh;
    /* Fixed px so Account's html font-size scaling cannot resize the chrome logo. */
    --evc-responsive-logo-max-height: 112px;
    --evc-responsive-logo-max-width: min(42vw, 220px);
    --evc-mobile-menu-button-inset: clamp(32px, 7vw, 56px);
    --evc-mobile-menu-button-padding: 8px;
}

/* iOS/Mac: prevent overscroll so layout/sidebar background doesn't appear to move */
@supports (-webkit-touch-callout: none) {
    .evc-layout {
        min-height: -webkit-fill-available;
    }
}

/* --- RadzenHeader (Mobile Only, hidden at desktop widths) --- */
.evc-mobile-header {
    background-color: var(--evc-mobile-header-bg-fallback);
    background-image: var(--evc-mobile-header-bg-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: var(--header-mob-height, 160px);
    min-height: var(--header-mob-height, 160px);
    flex: 0 0 var(--header-mob-height, 160px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1002;
    /* px (not rem): keep side inset stable across Account vs Offers root font-size. */
    padding: 0 60px;
    padding-left: calc(60px + env(safe-area-inset-left));
    padding-right: calc(60px + env(safe-area-inset-right));
}

@media (min-width: 1200px) {
    .evc-mobile-header {
        display: none !important;
    }
}

.evc-mobile-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100%;
    max-width: 100%;
    margin: auto;
    min-width: 0;
    flex: 0 1 auto;
    width: fit-content;
}

/* TPID-4299: the EVC SVG is tall (deer + wordmark), so width-based sizing
   can push it outside the pale-blue header. Size by the shared logo box
   instead, then reuse that exact box in the open menu header. */
.evc-mobile-logo {
    max-height: var(--evc-responsive-logo-max-height);
    max-width: var(--evc-responsive-logo-max-width);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Hamburger Button (in RadzenHeader, mobile only) --- */
.evc-hamburger {
    position: absolute;
    right: calc(var(--evc-mobile-menu-button-inset) + env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: var(--evc-mobile-menu-button-padding);
    cursor: pointer;
    z-index: 1003;
    color: var(--evc-mobile-header-icon);
    /* TPID-4300: stop iOS / Android from interpreting a quick tap as a
       double-tap-to-zoom or pinch-zoom gesture on the toggle buttons,
       which used to make the page zoom unexpectedly when opening or
       closing the drawer. */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1200px) {
    .evc-hamburger {
        display: none;
    }
}

/* --- RadzenSidebar --- */
.evc-sidebar,
.rz-sidebar.evc-sidebar {
    background-image: url(../images/sidebar.png) !important;
    background-repeat: no-repeat !important;
    background-position: bottom !important;
    background-color: white !important;
    z-index: 1001;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    /* TPID-4299: avoid fading between the closed header logo and the
       open menu logo. The fade made the matched logos look like they
       were changing size/proportion during menu open/close. */
    transition: none;
    overflow: hidden !important;
}

/* Desktop: sidebar always visible */
@media (min-width: 1200px) {
    .evc-sidebar,
    .rz-sidebar.evc-sidebar {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        width: 300px !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Mobile/tablet: sidebar hidden by default, full-screen overlay when toggled */
@media (max-width: 1199.98px) {
    .evc-sidebar,
    .rz-sidebar.evc-sidebar {
        z-index: 1003;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
        transition: none;
    }

    .evc-body,
    .rz-body.evc-body {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Mobile nav overlay — active when JS adds body.mobile-nav-open */
@media (max-width: 1199.98px) {
    body.mobile-nav-open .evc-mobile-header {
        display: none !important;
    }

    body.mobile-nav-open .evc-sidebar,
    body.mobile-nav-open .rz-sidebar.evc-sidebar {
        display: block !important;
        visibility: visible !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 1003 !important;
        transform: none !important;
        margin: 0 !important;
        opacity: 1 !important;
        overflow: hidden !important;
    }

    body.mobile-nav-open .evc-body {
        margin-left: 0 !important;
    }
}

/* TPID-4299: keep the open-drawer logo in line with the closed-header
   logo and the desktop sidebar logo. The previous min(60vw, 435px) /
   min(50.4vw, 371px) caps rendered the open-drawer logo much larger
   than the closed mobile header logo, so the menu header looked
   inconsistent with the menu items below it. */
@media (max-width: 1199.98px) {
    body.mobile-nav-open .sidebar__logo.logo .logo__img {
        max-height: var(--evc-responsive-logo-max-height);
        max-width: var(--evc-responsive-logo-max-width);
        width: auto;
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 1199.98px) and (orientation: landscape) {
    body.mobile-nav-open .sidebar__logo.logo .logo__img {
        width: auto;
        max-height: var(--evc-responsive-logo-max-height);
        max-width: var(--evc-responsive-logo-max-width);
    }
}

/* --- Sidebar Main Container (sole scroll container) --- */
.sidebar__main {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 32px;
    padding-left: calc(32px + env(safe-area-inset-left));
    padding-right: calc(32px + env(safe-area-inset-right));
}

@media (max-width: 1199.98px) {
    .sidebar__main {
        padding-top: calc(32px + env(safe-area-inset-top, 0px));
        padding-bottom: 32px;
        padding-left: calc(20px + env(safe-area-inset-left));
        padding-right: calc(20px + env(safe-area-inset-right));
    }

    .sidebar__header {
        margin-bottom: 8px;
        height: var(--header-mob-height, 160px);
        min-height: var(--header-mob-height, 160px);
    }

    body.mobile-nav-open .sidebar__header {
        /* Keep the open-menu logo on the same horizontal centerline as
           the closed mobile header. The menu content area has side padding
           and may get a vertical scrollbar, which otherwise shifts the
           logo a few pixels horizontally when the drawer opens. */
        width: 100vw;
        margin-left: calc(-20px - env(safe-area-inset-left));
        margin-right: calc(-20px - env(safe-area-inset-right));
    }

    .sidebar__logo .logo__img {
        max-height: var(--evc-responsive-logo-max-height);
        max-width: var(--evc-responsive-logo-max-width);
        width: auto;
        height: auto;
        object-fit: contain;
    }

    body.mobile-nav-open .sidebar__main {
        padding-top: env(safe-area-inset-top, 0px);
    }
}

@media (min-width: 1200px) {
    .sidebar__main {
        padding-top: 16px;
        padding-bottom: 16px;
        padding-left: calc(24px + env(safe-area-inset-left));
        padding-right: calc(24px + env(safe-area-inset-right));
    }
}

/* --- Sidebar Header (logo + close button) --- */
.sidebar__header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 24px;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .sidebar__header {
        margin-bottom: 55px;
    }
}

/* --- Logo --- */
.sidebar__logo {
    display: flex;
    align-items: center;
    max-height: 100%;
}

@media (min-width: 1200px) {
    .sidebar__logo {
        max-height: none;
        display: block;
    }
}

.sidebar__logo .logo__img {
    max-height: 148px;
    object-fit: contain;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
}

/* TPID-4299/4887: desktop sidebar is 300px wide with 24px padding on
   each side, leaving a ~252px content area. The previous fixed 257px
   logo + object-fit: unset overflowed/clipped that area on 14" laptops
   and small desktops. Use a content-area-fit approach with a sensible
   max-height so the logo scales down predictably. */
@media (min-width: 1200px) {
    .sidebar__logo .logo__img {
        width: 100%;
        max-width: 100%;
        max-height: 110px;
        height: auto;
        object-fit: contain;
    }
}

/* --- Close Button (mobile only, inside sidebar) --- */
.sidebar__toggle {
    background: none;
    border: none;
    padding: var(--evc-mobile-menu-button-padding);
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    /* TPID-4300: same as the hamburger — prevent accidental zoom when
       the user taps the close button on iOS / Android landscape. */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1199.98px) {
    .sidebar__toggle {
        right: calc(var(--evc-mobile-menu-button-inset) + env(safe-area-inset-right));
    }
}

@media (min-width: 1200px) {
    .sidebar__toggle {
        display: none;
    }
}

/* --- Thin scrollbar (matches _EXAMPLE base.css .scrollbar) --- */
@supports not selector(::-webkit-scrollbar) {
    .scrollbar {
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #F5F5F5;
    }
}

.scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background-color: #F5F5F5;
}

.scrollbar::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #F5F5F5;
}

.scrollbar::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: var(--primary-color);
}

/* --- Sidebar Body (nav container — no independent scrolling) --- */
.sidebar__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
}

/* --- Sidebar Nav (matches _EXAMPLE: no borders, flex layout) --- */
.sidebar__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: none;
    border-bottom: none;
    padding-top: 15px;
    min-height: 0;
}

/* --- Nav List --- */
.nav__list {
    list-style: none;
    margin: 0;
    padding: 0 0 15px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.1;
}

.nav__list:not(:last-child) {
    margin-bottom: 10px;
}

/* --- Nav Item --- */
.nav__item:not(:last-child) {
    margin-bottom: 25px;
}

/* --- Nav Link --- */
.nav__link {
    color: #3C230C;
    display: flex;
    padding: 10px 20px;
    gap: 15px;
    align-items: center;
    transition: color 0.3s ease-in-out;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    line-height: 140%;
    letter-spacing: 0;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.nav__link:hover {
    color: var(--primary-color);
}

/* --- Nav Active State --- */
.nav__link.is-active {
    font-weight: bold;
    background-color: #B24025;
    color: #fff;
    cursor: default;
    border: 1px solid transparent;
    border-radius: 4px;
}

/* --- Nav Icons --- */
.nav__icon {
    flex: none;
    width: 25px;
    height: 25px;
}

/* Masked SVG icons: inactive #3C230CB2, active pill white */
.nav__icon--mask {
    display: inline-block;
    flex-shrink: 0;
    background-color: #3C230CB2;
    -webkit-mask-image: var(--nav-icon-mask);
    mask-image: var(--nav-icon-mask);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background-color 0.3s ease-in-out;
}

.nav__link.is-active .nav__icon--mask {
    background-color: #fff;
}

.nav__icon--material {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

/* --- Nav Text --- */
.nav__text {
    flex: 1;
}

/* --- Sign Out Item --- */
.nav__item_exit {
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-top: 15px;
}

/* --- Sidebar Banner (bgfooter mountain strip) --- */
.sidebar__banner {
    margin-top: auto;
    flex-shrink: 0;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -32px;
}

@media (min-width: 1200px) {
    .sidebar__banner {
        margin-left: -24px;
        margin-right: -24px;
        margin-bottom: -16px;
    }
}

.banner-area__img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- RadzenBody Content Area --- */
.evc-body {
    background: var(--evc-body-bg);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
}

@media (max-width: 1199.98px) {
    .evc-body {
        scrollbar-width: none;
    }

    .evc-body::-webkit-scrollbar {
        display: none;
    }
}

.evc-content-limit {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
    padding-left: calc(2rem + env(safe-area-inset-left));
    padding-right: calc(2rem + env(safe-area-inset-right));
    padding-bottom: 150px;
}

@media (min-width: 576px) {
    .evc-content-limit {
        width: 100%;
        padding-top: 1rem;
        padding-left: calc(1rem + env(safe-area-inset-left));
        padding-right: calc(1rem + env(safe-area-inset-right));
        padding-bottom: 150px;
    }
}

@media (min-width: 1200px) {
    .evc-content-limit {
        padding-top: 2rem;
        padding-left: calc(2rem + env(safe-area-inset-left));
        padding-right: calc(2rem + env(safe-area-inset-right));
        padding-bottom: 150px;
    }
}

/* --- Mobile Landscape ---
   TPID-4300: phones in landscape only have ~390px of vertical space.
   The default 16rem header + portrait-sized drawer logo + 25px nav-
   item gaps + bgfooter banner pushed the logout button below the
   visible drawer area and made the closed-header logo overflow.
   These rules compact every chunk that contributes to the height
   budget and let the drawer scroll vertically if the user's device
   chrome shrinks the viewport further. */
@media (max-width: 1199.98px) and (orientation: landscape) {
    .evc-layout {
        /* px (not rem): 120px == former 12rem at Account's 10px root. */
        --evc-responsive-header-height: 120px;
        --evc-responsive-logo-max-height: 72px;
        --evc-responsive-logo-max-width: min(38vw, 160px);
    }

    .evc-mobile-header {
        height: var(--evc-responsive-header-height);
        min-height: var(--evc-responsive-logo-max-height);
        flex-basis: var(--evc-responsive-header-height);
        padding: 0 48px;
        padding-left: calc(48px + env(safe-area-inset-left));
        padding-right: calc(48px + env(safe-area-inset-right));
    }

    .evc-mobile-logo {
        max-height: var(--evc-responsive-logo-max-height);
        max-width: var(--evc-responsive-logo-max-width);
        width: auto;
        height: auto;
    }

    .sidebar__logo .logo__img {
        width: auto;
        max-height: var(--evc-responsive-logo-max-height);
        max-width: var(--evc-responsive-logo-max-width);
    }

    /* Mobile landscape drawer: viewport is only ~390px tall, so cap the
       logo and bgfooter by HEIGHT to leave room for nav. Width-based
       sizing from the portrait rules makes them too large here. */
    body.mobile-nav-open .sidebar__logo.logo .logo__img {
        width: auto;
        max-height: var(--evc-responsive-logo-max-height);
        max-width: var(--evc-responsive-logo-max-width);
    }

    body.mobile-nav-open .sidebar__header {
        height: var(--evc-responsive-header-height);
        min-height: var(--evc-responsive-logo-max-height);
        margin-bottom: 4px;
    }

    body.mobile-nav-open .sidebar__main {
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: 12px;
    }

    /* Make sure the drawer can scroll when content doesn't fit so the
       LOG OUT item is always reachable on short landscape viewports. */
    body.mobile-nav-open .evc-sidebar,
    body.mobile-nav-open .rz-sidebar.evc-sidebar {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    body.mobile-nav-open .sidebar__main {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.mobile-nav-open .sidebar__nav {
        padding-top: 8px;
        justify-content: flex-start;
        gap: 8px;
    }

    body.mobile-nav-open .nav__list {
        padding: 0 0 8px;
    }

    body.mobile-nav-open .nav__list:not(:last-child) {
        margin-bottom: 4px;
    }

    body.mobile-nav-open .nav__item:not(:last-child) {
        margin-bottom: 10px;
    }

    body.mobile-nav-open .nav__link {
        padding: 8px 16px;
    }

    body.mobile-nav-open .nav__item_exit {
        padding-top: 10px;
    }

    body.mobile-nav-open .banner-area__img {
        max-height: 40px;
        object-fit: cover;
        object-position: top;
    }
}

/* TPID-4300: extra-short landscape phones (e.g. iPhone SE / 8 series
   in landscape, ~320px tall after browser chrome). Hide the bgfooter
   strip entirely so the LOG OUT row stays in the visible drawer. */
@media (max-width: 1199.98px) and (orientation: landscape) and (max-height: 420px) {
    body.mobile-nav-open .sidebar__banner {
        display: none;
    }
}

/* --- Short viewport (desktop ≤800px height) --- */
@media (max-height: 800px) and (min-width: 1200px) {
    .sidebar__main {
        padding-top: 32px;
    }

    .sidebar__header {
        margin-bottom: 32px;
    }

    .nav__item:not(:last-child) {
        margin-bottom: 20px;
    }
}

/* --- iOS safe area bottom padding --- */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 1199.98px) {
        .sidebar__nav {
            padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
        }
    }
}


/* ===== player-offers.css ===== */

/* EVC personalized offers page (v2 parity) */

.evc-content-limit:has(.offers-page) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0;
}

.evc-content-limit:has(.drawing-selection-page) {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.offers-page.layout__main {
    padding-top: 20px;
    padding-left: calc(20px + env(safe-area-inset-left));
    padding-right: calc(20px + env(safe-area-inset-right));
    background: var(--main-bg, transparent);
    padding-bottom: 150px;
}

@media (min-width: 576px) {
    .offers-page.layout__main {
        width: 100%;
        padding-top: 30px;
        padding-left: calc(30px + env(safe-area-inset-left));
        padding-right: calc(30px + env(safe-area-inset-right));
        padding-bottom: 150px;
    }
}

@media (min-width: 768px) {
    .offers-page.layout__main {
        max-height: none;
        overflow-y: visible;
    }
}

@media (min-width: 1200px) {
    .offers-page.layout__main {
        padding-top: 50px;
        padding-left: calc(50px + env(safe-area-inset-left));
        padding-right: calc(50px + env(safe-area-inset-right));
        padding-bottom: 150px;
    }
}

.offers-page .layout__limit {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.offers-page .widgets {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .offers-page .widgets {
        gap: 30px;
    }
}

.offers-page .widget {
    border-radius: 4px 4px 16px 16px;
    background: var(--card-bg, #fff);
    border: 2px solid #861A1F;
    box-shadow: var(--card-shadow, none);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.offers-page .widget__header {

    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0;
    padding: 16px 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: #B24025;
    background-image: none;
    color: var(--card-header-color, #fff);
}

.offers-page .widget__heading {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .offers-page .widget__heading {
        font-size: 24px;
    }
}

.offers-page .widget__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 15px;
}

@media (min-width: 768px) {
    .offers-page .widget__body {
        padding: 30px 25px;
    }
}

.offers-page .offers {
    width: 100%;
}

.offers-page .offers__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .offers-page .offers__grid {
        gap: 32px;
    }
}

.offers-page .offers__empty {
    margin: 0;

    font-size: 16px;
    color: #0e0e0e;
}

.offers-page .offers__empty--title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
}

.offers-page .offers__empty--sub {
    font-size: 16px;
    margin: 0;
}

.offers-page .offer-card {
    border-radius: 5px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #861A1F;
    color: var(--mailer-card-color, #333);
    box-shadow: var(--card-shadow, none);
}

.offers-page .offer-card__template {
    display: block;
    width: 100%;
    height: 150px;
    border: 0;
}

.offers-page .offer-card__template-error {
    margin: 0;
    color: #861a1f;
    font-size: 14px;
}

@media (min-width: 768px) {
    .offers-page .offer-card {
        padding: 10px 15px;
    }

    .offers-page .offer-card__template {
        height: 160px;
    }
}

@media (min-width: 1200px) {
    .offers-page .offer-card {
        padding: 8px 20px 8px 8px;
    }
}

.offers-page .offer-card__info {
    flex: 1;
    display: flex;
    align-items: center;
}

.offers-page .offer-card__details {
    min-width: 0;
}

.offers-page .offer-card__heading {
    margin: 0 0 6px;

    font-weight: 700;
    color: #861a1f;
    font-size: 18px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .offers-page .offer-card__heading {
        font-size: 20px;
    }
}

.offers-page .offer-card__heading-text {
    font-size: 18px !important;

    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    color: #861a1f;
}

@media (min-width: 768px) {
    .offers-page .offer-card__heading-text {
        font-size: 20px !important;
    }
}

/* Figma "Personalized Offers" card (PP - EVC node 85:114): date + label share
   the bordeaux brand color; the laranja highlight from the legacy stat treatment
   is overridden here. */
.offers-page .offer-card__date,
.offers-page .offer-card__dates {
    font-size: 14px !important;

    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    color: #861a1f !important;
    margin: 0 0 8px;
    white-space: normal;
    word-break: normal;
}

.offers-page .offer-card__date-label {
    font-weight: 700;
}

.offers-page .stat__value-highlight {
    color: #861a1f !important;
}

/* Legacy markup kept for backward compatibility — the Figma design has no
   section labels and no expand toggle, so anything still emitting these classes
   stays out of the layout. */
.offers-page .offer-card__field {
    margin-top: 0;
}

.offers-page .offer-card__label {
    display: none;
}

.offers-page .offer-card__text {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.45;
    color: #861a1f;
}

.offers-page .offer-card__text--disclaimer {
    font-size: 12px;
    font-style: italic;
    color: #861a1f;
    margin-bottom: 0;
}

.offers-page .offer-card__view-details {
    margin-top: 14px;
    padding: 10px 18px;
    font-family: var(--font-base-stack);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: #861a1f;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.offers-page .offer-card__view-details:hover,
.offers-page .offer-card__view-details:focus-visible {
    background: #b24025;
}

.offers-page .offer-card__view-details:focus-visible {
    outline: 2px solid var(--evc-primary);
    outline-offset: 2px;
}

.offers-page .offer-card__expanded {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #faf7f2;
    border: 1px solid #e4d7bc;
}

.offers-page .offer-card__expanded-block {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
}

.offers-page .offer-card__expanded-block:last-child {
    margin-bottom: 0;
}

.drawing-selection-page .offer-card__entries {
    color: #ac5e35;

    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 14px;
}

.drawing-selection-page .offer-card__dates {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.drawing-selection-page .layout__limit {
    max-width: 1180px;
}

@media (min-width: 768px) {
    .drawing-selection-page .offer-card {
        width: min(100%, 1085px);
        margin-left: auto;
        margin-right: auto;
    }
}

.offers-page .disclaimer-span {
    display: block;
    font-size: 16px !important;

    font-style: italic;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0;
    color: #0e0e0e;
}

@media (max-width: 767px) {
    .drawing-selection-page .offer-card__entries {
        font-size: 24px;
    }

    .offers-page .disclaimer-span {
        font-size: 12px !important;
    }
}


/* ===== profile-view.css ===== */

/* EVC profile view page (v2 parity + Online Account block) */
.user-info__name {
    word-break: break-all;
}
.user-info__name-line {
    word-break: break-all;
}
.evc-content-limit:has(.profile-view-page) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0;
}
.user-info__preview-img {
    max-width: 100%;
    min-width: 0;
    height: auto;
}

.profile-view-page.layout__main {
    padding-top: 20px;
    padding-left: calc(20px + env(safe-area-inset-left));
    padding-right: calc(20px + env(safe-area-inset-right));
    background: var(--main-bg, transparent);
    padding-bottom: 40px;
}

@media (min-width: 576px) {
    .profile-view-page.layout__main {
        width: 100%;
        padding-top: 30px;
        padding-left: calc(30px + env(safe-area-inset-left));
        padding-right: calc(30px + env(safe-area-inset-right));
        padding-bottom: 40px;
    }
}

@media (min-width: 768px) {
    .profile-view-page.layout__main {
        max-height: none;
        overflow-y: visible;
    }
}

@media (min-width: 1200px) {
    .profile-view-page.layout__main {
        padding-top: 50px;
        padding-left: calc(50px + env(safe-area-inset-left));
        padding-right: calc(50px + env(safe-area-inset-right));
        padding-bottom: 60px;
    }
}

.profile-view-page .layout__limit {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.profile-view-page .widgets {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .profile-view-page .widgets {
        gap: 30px;
    }
}

.profile-view-page .widget {
    border-radius: var(--card-radius, 0.5rem);
    background: var(--card-bg, #fff);
    border: 0.5px solid #a49066;
    box-shadow: var(--card-shadow, none);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.profile-view-page .widget__header {

    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0;
    padding: 16px 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.48) 100%), radial-gradient(50% 76.98% at 50.24% 106.35%, rgba(164, 144, 102, 0.66) 45%, rgba(21, 21, 21, 0.66) 100%);
    color: #fff;
    border-bottom: 3px solid #a49066;
}

.profile-view-page .widget__heading {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .profile-view-page .widget__heading {
        font-size: 32px;
    }
}

.profile-view-page .widget__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 20px 16px;
}

@media (min-width: 768px) {
    .profile-view-page .widget__body {
        padding: 30px 25px;
    }
}

.profile-view-page .widget--banner {
    background-color: #ede9e2;
    border-color: transparent;
    border-radius: 8px;
    padding: 14px 20px;
    text-align: center;

    font-size: 16px;
    line-height: 1.35;
    color: #000;
}

@media (min-width: 768px) {
    .profile-view-page .widget--banner {
        font-size: 18px;
        padding: 16px 24px;
    }
}

.profile-view-page .widget--error {
    background-color: #ec0000;
    color: #fff;
    border: 1px solid #ec0000;
    padding: 12px 20px;
    border-radius: 6px;

    font-size: 16px;
}

.profile-view-page .widget--success {
    background-color: #1ba85f;
    color: #fff;
    border: 1px solid #1ba85f;
    padding: 12px 20px;
    border-radius: 6px;

    font-size: 16px;
}

.profile-view-page .user-info--card-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    min-width: 0;
    width: 100%;
    padding-inline: 8px;
    box-sizing: border-box;
}

.profile-view-page .user-info__card-text {
    flex: 1 1 0;
    min-width: 0;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.profile-view-page .user-info__main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 1 auto;
    min-width: 0;
}

.profile-view-page .user-info__user--card-heading {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.profile-view-page .user-info__name-line {
    flex: 0 0 auto;
    max-width: none;
    min-width: min-content;

    font-weight: 800;
    color: #0e0e0e;
    font-size: clamp(1.125rem, 2.2vw, 1.625rem);
    line-height: 1.25;
    white-space: nowrap;
    overflow: visible;
    text-align: center;
}

.profile-view-page .user-info__name-line .user-info__name {
    font-family: inherit;
    font-weight: inherit;
}

.profile-view-page .user-info__name-gap {
    white-space: pre;
}

.profile-view-page .user-info__divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #a49066, transparent);
    margin: 0 0 16px;
    border: none;
    flex-shrink: 0;
}

.profile-view-page .user-info__data {
    margin: 0;
}

.profile-view-page .user-info__preview {
    flex: 0 1 350px;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    align-self: center;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.profile-view-page .user-info__preview-img {
    width: 100%;
    max-width: min(350px, 100%);
    min-width: 0;
    height: auto;
    aspect-ratio: 350 / 220;
    margin: 0;
    display: block;
    border-radius: 22px;
    object-fit: contain;
}

.profile-view-page .data__property {

    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    color: #0e0e0e;
}

.profile-view-page .data__value {

    font-size: 16px;
    font-weight: 400;
    color: #0e0e0e;
    line-height: 1.35;
}

.profile-view-page .details-grid {
    display: grid;
    align-items: start;
    margin-bottom: 24px;
}

.profile-view-page .details-grid--three {
    grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr) 2px minmax(0, 1fr);
    gap: 20px;
}

.profile-view-page .details-grid--two {
    grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr);
    gap: 20px;
}

.profile-view-page .details-cell {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-view-page .details-value--break {
    word-break: break-word;
    overflow-wrap: break-word;
}

.profile-view-page .details-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent, #a49066, transparent);
    opacity: 0.5;
}

.profile-view-page .details-actions {
    display: flex;
    justify-content: center;
}

.profile-view-page .details-actions--column {
    margin-top: 8px;
}

.profile-view-page .btn-edit,
.profile-edit-page .btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    background: #a49066;
    color: #fff;

    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.profile-view-page .btn-edit:hover,
.profile-view-page .btn-edit:focus-visible,
.profile-edit-page .btn-edit:hover,
.profile-edit-page .btn-edit:focus-visible {
    opacity: 0.8;
}

@media (max-width: 575px) {
    .profile-view-page .user-info--card-layout {
        gap: 16px;
    }

    .profile-view-page .user-info__card-text {
        max-width: none;
        gap: 12px;
    }

    .profile-view-page .user-info__preview {
        flex: 0 1 180px;
        max-width: 45%;
    }

    .profile-view-page .user-info__preview-img {
        max-width: min(180px, 100%);
        border-radius: 10px;
    }

    .profile-view-page .details-grid--three,
    .profile-view-page .details-grid--two {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .profile-view-page .details-divider {
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, transparent, #a49066, transparent);
    }

    .profile-view-page .details-cell {
        text-align: left;
    }
}

/* Mobile / tablet: vertical gold accent left of player number; hide horizontal divider */
@media (max-width: 767.98px) {
    .profile-view-page .user-info__divider {
        display: none;
    }

    .profile-view-page .user-info__data {
        border-left: 3px solid;
        border-image: linear-gradient(to bottom, #c9a84c, #a49066) 1;
        padding-left: 12px;
    }
}

@media (max-width: 402px) {
    .profile-view-page .user-info--card-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-view-page .user-info__card-text {
        max-width: 100%;
    }

    .profile-view-page .user-info__preview {
        width: 100%;
        max-width: 100%;
        flex: 0 1 auto;
        margin-left: 0;
        align-self: stretch;
        justify-content: flex-end;
    }

    .profile-view-page .user-info__preview-img {
        max-width: 100%;
    }
}
/* Profile edit page */

.evc-content-limit:has(.profile-edit-page) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0;
}

.profile-edit-page.layout__main {
    padding-top: 20px;
    padding-left: calc(20px + env(safe-area-inset-left));
    padding-right: calc(20px + env(safe-area-inset-right));
    background: var(--main-bg, transparent);
    padding-bottom: 150px;
}

@media (min-width: 576px) {
    .profile-edit-page.layout__main {
        width: 100%;
        padding-top: 30px;
        padding-left: calc(30px + env(safe-area-inset-left));
        padding-right: calc(30px + env(safe-area-inset-right));
        padding-bottom: 150px;
    }
}

@media (min-width: 768px) {
    .profile-edit-page.layout__main {
        max-height: none;
        overflow-y: visible;
    }
}

@media (min-width: 1200px) {
    .profile-edit-page.layout__main {
        padding-top: 50px;
        padding-left: calc(50px + env(safe-area-inset-left));
        padding-right: calc(50px + env(safe-area-inset-right));
        padding-bottom: 150px;
    }
}

.profile-edit-page .layout__limit {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.profile-edit-page .widgets {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .profile-edit-page .widgets {
        gap: 30px;
    }
}

.profile-edit-page .widget {
    border-radius: var(--card-radius, 0.5rem);
    background: var(--card-bg, #fff);
    border: 0.5px solid #a49066;
    box-shadow: var(--card-shadow, none);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.profile-edit-page .widget__header {

    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0;
    padding: 16px 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.48) 100%), radial-gradient(50% 76.98% at 50.24% 106.35%, rgba(164, 144, 102, 0.66) 45%, rgba(21, 21, 21, 0.66) 100%);
    color: #fff;
    border-bottom: 3px solid #a49066;
}

.profile-edit-page .widget__heading {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .profile-edit-page .widget__heading {
        font-size: 32px;
    }
}

.profile-edit-page .widget__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 16px;
}

@media (min-width: 768px) {
    .profile-edit-page .widget__body {
        padding: 30px 25px;
    }
}

.profile-edit-page .profile-edit-banner {
    background-color: #ede9e2;
    border-color: transparent;
    border-radius: 8px;
    padding: 14px 20px;
    text-align: center;
}

.profile-edit-page .profile-edit-banner__title {

    font-size: 18px;
    line-height: 1.2;
    color: #0e0e0e;
    margin-bottom: 2px;
}

.profile-edit-page .profile-edit-banner__message {

    font-size: 16px;
    line-height: 1.2;
    color: #0e0e0e;
}

@media (min-width: 768px) {
    .profile-edit-page .profile-edit-banner__title {
        font-size: 36px;
    }

    .profile-edit-page .profile-edit-banner__message {
        font-size: 16px;
    }
}

.profile-edit-page .profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-edit-page .profile-edit-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

@media (min-width: 992px) {
    .profile-edit-page .profile-edit-columns {
        grid-template-columns: minmax(0, 1.2fr) 2px minmax(0, 1fr) 2px minmax(0, 1fr);
        gap: 16px;
    }
}

.profile-edit-page .profile-edit-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-edit-page .profile-edit-column--address .edit-input {
    margin-bottom: 2px;
}

.profile-edit-page .profile-edit-column--contact {
    height: 100%;
    justify-content: center;
}

.profile-edit-page .profile-edit-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #a49066, transparent);
    opacity: 0.5;
}

@media (min-width: 992px) {
    .profile-edit-page .profile-edit-divider {
        width: 2px;
        height: auto;
        align-self: stretch;
        background: linear-gradient(to bottom, transparent, #a49066, transparent);
    }
}

.profile-edit-page .profile-edit-note {
    margin: 0 0 6px;

    font-size: 12px;
    color: #0e0e0e;
    text-align: center;
}

.profile-edit-page .edit-label {

    font-size: 16px;
    letter-spacing: 0.02em;
    color: #0e0e0e;
    text-align: center;
    margin-bottom: 2px;
}

.profile-edit-page .edit-input {
    width: 100%;
    border: var(--evc-input-text-border-width) solid var(--evc-input-text-border);
    border-radius: 8px;
    padding: 11px 12px;
    outline: none;
    transition: border-color 0.2s ease, border-width 0.15s ease;

    font-size: 15px;
    color: #0e0e0e;
    background: #fff;
}

.profile-edit-page .edit-input:hover:not(:disabled):not(:focus):not(.is-error) {
    border-color: var(--evc-input-text-border-hover);
}

.profile-edit-page .edit-input:focus:not(:disabled):not(.is-error) {
    border-color: var(--evc-input-text-border-focus);
    border-width: var(--evc-input-text-border-focus-width);
}

.profile-edit-page .edit-input:disabled {
    background: #e9e9e9;
    color: #8a8a8a;
    border-color: #d2d2d2;
    border-width: 1px;
}

.profile-edit-page .edit-input.is-error {
    border-color: var(--evc-input-text-border-error);
    border-width: var(--evc-input-text-border-width);
}

.profile-edit-page .edit-input.is-error:focus {
    border-color: var(--evc-input-text-border-error);
    border-width: var(--evc-input-text-border-focus-width);
}

.profile-edit-page .edit-error {

    font-size: 12px;
    color: #ec0000;
    text-align: center;
}

.profile-edit-page .edit-empty-text {

    font-size: 14px;
    color: #0e0e0e;
    text-align: center;
    margin-top: 2px;
}

.profile-edit-page .edit-actions {
    display: flex;
    justify-content: center;
    margin-top: 6px;
    gap: 0;
    flex-wrap: wrap;
}

.profile-edit-page .edit-actions .btn-edit {
    min-width: 260px;
}

.profile-edit-page .edit-actions .btn-edit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-edit-page .widget--error {
    background-color: #ec0000;
    color: #fff;
    border: 1px solid #ec0000;
    padding: 12px 20px;
    border-radius: 6px;

    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.profile-edit-page .profile-edit-error-message {
    width: 100%;
}

.profile-edit-page .profile-edit-try-again {
    min-width: 170px;
}

.profile-edit-page .widget--success {
    background-color: #1ba85f;
    color: #fff;
    border: 1px solid #1ba85f;
    padding: 12px 20px;
    border-radius: 6px;

    font-size: 16px;
}


/* ===== digital-mailer.css ===== */

/* ============================================================
   Digital Mailer – feature-specific global styles
   Styles here target Radzen components used in Digital Mailer
   (e.g. RadzenButton). Use this file instead of component
   scoped CSS when the element is rendered by a child component.
   ============================================================ */

/* --- OPEN button (RadzenButton: needs global CSS to apply) --- */
.rz-button.mailer-selection__btn {
    width: 10rem !important;
    height: 3rem !important;
    min-height: 3rem !important;
    max-width: 18rem;
    border-radius: 14px;
    background: var(--evc-primary, #a49066) !important;
    border-color: var(--evc-primary, #a49066) !important;
    box-shadow: none;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    align-self: flex-start;
}

@media (min-width: 560px) {
    .rz-button.mailer-selection__btn {
        align-self: center;
    }
}

/* Mailer popup loading: same light PageLoadingIndicator look as other portal
   pages (terracotta spinner on canvas). Keep dark chrome only for the viewer. */
.mailer-view__loading--portal {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 0;
    width: 100%;
    padding: 0;
    color: var(--pp-loading-text, #1e1e1e);
    background: var(--main-bg, #fff);
}

.mailer-view__loading--portal .pp-page-loading-indicator {
    background: transparent !important;
}

.mailer-frame-modal:has(.mailer-view__loading--portal),
.mailer-frame-modal__body:has(.mailer-view__loading--portal) {
    background: var(--main-bg, #fff);
}

html:has(.iframe-layout .mailer-view__loading--portal),
html:has(.iframe-layout .mailer-view__loading--portal) body,
html:has(.iframe-layout .mailer-view__loading--portal) #app,
.iframe-layout:has(.mailer-view__loading--portal) {
    background: var(--main-bg, #fff);
}


/* ===== account-widgets.css ===== */

/* Account widgets aligned to v2 EVC common.css */

/* Apply v2 scale only while the Account page is present */
html:has(.account-info-page) {
    font-size: 62.5%;
}

:root:has(.account-info-page) {
    --rz-root-font-size: 10px;
}

@media (min-width: 768px) {
    html:has(.account-info-page) {
        font-size: 50%;
    }

    :root:has(.account-info-page) {
        --rz-root-font-size: 8px;
    }
}

@media (min-width: 992px) {
    html:has(.account-info-page) {
        font-size: 62.5%;
    }

    :root:has(.account-info-page) {
        --rz-root-font-size: 10px;
    }
}

.evc-content-limit:has(.account-info-page) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0;
}

.account-info-page.layout__main {
    padding-top: 2rem;
    padding-left: calc(2rem + env(safe-area-inset-left));
    padding-right: calc(2rem + env(safe-area-inset-right));
    background: var(--main-bg, transparent);
    padding-bottom: 150px;
}

@media (min-width: 576px) {
    .account-info-page.layout__main {
        width: 100%;
        padding-top: 3rem;
        padding-left: calc(3rem + env(safe-area-inset-left));
        padding-right: calc(3rem + env(safe-area-inset-right));
        padding-bottom: 150px;
    }
}

@media (min-width: 768px) {
    .account-info-page.layout__main {
        max-height: none;
        overflow-y: visible;
    }
}

@media (min-width: 1200px) {
    .account-info-page.layout__main {
        padding-top: 5rem;
        padding-left: calc(5rem + env(safe-area-inset-left));
        padding-right: calc(5rem + env(safe-area-inset-right));
        padding-bottom: 150px;
    }
}

.account-info-page .layout__limit {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.account-info-page .widgets {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .account-info-page .widgets {
        gap: 3rem;
    }
}

@media (min-width: 1400px) {
    .account-info-page .widgets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.account-info-page .widget {
    border-radius: 4px 4px 16px 16px;
    background: var(--card-bg, #fff);
    border: 2px solid #861A1F;
    box-shadow: var(--card-shadow, none);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.account-info-page .widget__header {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0;
    padding: 1.6rem 2.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background-color: #B24025;
    background-image: none;
    color: var(--card-header-color, #fff);
}

.account-info-page .widget__heading {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .account-info-page .widget__heading {
        font-size: 2.4rem;
    }
}

.account-info-page .widget__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .account-info-page .widget__body {
        padding: 3rem 2.5rem;
    }
}

@media (min-width: 1400px) {
    .account-info-page .widget.is-wide {
        grid-column: span 2;
    }

    .account-info-page .widget.is-full {
        grid-column: 1 / -1;
    }
}

.account-info-page .user-info--card-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    min-width: 0;
    width: 100%;
    padding-inline: 8px;
    box-sizing: border-box;
}

.account-info-page .user-info__card-text {
    flex: 1 1 0;
    min-width: 0;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.account-info-page .user-info__main {

    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 1 auto;
    min-width: 0;
}

.account-info-page .user-info__preview {
    flex: 0 1 350px;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    align-self: center;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.account-info-page .user-info__preview-img {
    width: 100%;
    max-width: min(350px, 100%);
    min-width: 0;
    height: auto;
    aspect-ratio: 350 / 220;
    margin: 0;
    display: block;
    border-radius: 1rem;
    object-fit: contain;
}

.account-info-page .user-info__divider {
    width: 60px;
    height: 3px;
    background: #a94442;
    margin: 0.75rem 0;
    border: none;
}

@media (max-width: 767.98px) {
    .account-info-page .user-info__divider {
        display: none;
    }

    .account-info-page .user-info__data {
        border-left: 0.3rem solid var(--primary-color);
        padding-left: 12px;
    }
}

@media (max-width: 575px) {
    .account-info-page .user-info--card-layout {
        gap: 16px;
    }

    .account-info-page .user-info__card-text {
        max-width: none;
        gap: 12px;
    }

    .account-info-page .user-info__preview {
        flex: 0 1 180px;
        max-width: 45%;
    }

    .account-info-page .user-info__preview-img {
        max-width: min(180px, 100%);
        border-radius: 10px;
    }

    .account-info-page .data__item {
        padding-left: 0;
    }
}

.account-info-page .user-info__user--card-heading {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.account-info-page .user-info__name-line {
    max-width: 100%;

    font-weight: 800;
    color: #0e0e0e;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.25;
    overflow-wrap: break-word;
    text-align: left;
}

    .account-info-page .user-info__name-line .user-info__name {
        display: block;
        font-family: inherit;
        font-weight: inherit;
    }

.account-info-page .user-info__data > *:not(:last-child) {
    margin-bottom: 2.5rem;
}

.account-info-page .data {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.35;
}

@media (min-width: 768px) {
    .account-info-page .data {
        font-size: 2rem;
    }
}

.account-info-page .data__item {
    padding-left: 1rem;
}

.account-info-page .data__property {

    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    color: #0e0e0e;
}

.account-info-page .data__value {

    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0;
    color: #0e0e0e;
}

.account-info-page .data a {
    color: inherit;
}

    .account-info-page .data a:hover {
        text-decoration: underline;
    }

.account-info-page .form-divider-hr {
    width: 120px;
    height: 4px;
    background: #a94442;
    margin: 0.75rem auto;
    border: none;
}

.account-info-page .stats {
    width: 100%;
}

.account-info-page .stats__stat:not(:last-child) {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .account-info-page .stats__stat:not(:last-child) {
        margin-bottom: 3rem;
    }
}


.account-info-page .stat {
    padding: 0.8rem 3rem;
    line-height: 1.2;
    pointer-events: none;
}

.account-info-page .stat__caption {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0e0e0e;
}

@media (min-width: 768px) {
    .account-info-page .stat__caption {
        font-size: 1.6rem;
    }
}

.account-info-page .stat__value {
    font-size: 1.5rem;
    font-weight: 400;
    color: #0e0e0e;
}

@media (min-width: 768px) {
    .account-info-page .stat__value {
        font-size: 2rem;
    }
}

.account-info-page .progress-area__info {
    margin-bottom: 3rem;
    font-size: 1.5rem;
    text-align: center;
    color: #0e0e0e;
}

@media (min-width: 768px) {
    .account-info-page .progress-area__info {
        font-size: 2rem;
        margin-bottom: 5rem;
    }
}

@media (min-width: 1400px) {
    .account-info-page .progress-area__mob-stats {
        display: none;
    }
}

.account-info-page .progress-area__stats {
    display: none;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 1400px) {
    .account-info-page .progress-area__stats {
        gap: 6rem;
        display: flex;
    }
}

@media (min-width: 1400px) {
    .account-info-page .progress-area__stats {
        gap: 9rem;
    }
}

.account-info-page .progress-area__congrats {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
}

.account-info-page .progress-area__stat {
    min-width: 0;
    flex: 1;
}

.account-info-page .progress-area__bottom {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
    flex-direction: column;
}

@media (min-width: 1400px) {
    .account-info-page .progress-area__bottom {
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
    }
}

.account-info-page .progress-area__footer {

    font-weight: 400;
    font-size: 1.5rem;
    color: #0e0e0e;
    letter-spacing: 0;
}

.account-info-page .stat__value-highlight {
    color: #AC5E35 !important;
    font-weight: 700;
}

.account-info-page .stat-card__images {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.account-info-page .stat-card__images-alt {
    display: block;
}

.account-info-page .stat-card__img-wrap {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .account-info-page .stat-card__img-wrap {
        margin-bottom: 3.5rem;
    }
}

/* Tier Progress card art: smaller on phone/tablet; ~200px cap from 1200px up (desktop tier row) */
.account-info-page .stat-card__img {
    width: 100%;
    max-width: min(100%, 9.5rem); /* ~152px — compact on small phones */
    display: block;
    height: auto;
    max-height: clamp(2.5rem, 15vw, 5.5rem); /* ~88px max on narrow viewports */
    border-radius: 0.5rem;
    aspect-ratio: 16/10.2;
    object-fit: contain;
    margin-inline: auto;
}

/* Slightly larger tier art on larger phones / tablet (still below desktop cap) */
@media (min-width: 480px) and (max-width: 1199.98px) {
    .account-info-page .stat-card__img {
        max-width: min(100%, 12rem); /* ~192px */
        max-height: clamp(3rem, 14vw, 7.5rem); /* ~120px max */
    }
}

@media (min-width: 1200px) {
    .account-info-page .stat-card__img {
        max-height: 12.5rem; /* 200px on desktop tier row */
        max-width: min(100%, 20rem); /* ~320px — matches ~200px height at 16/10.2 */
    }
}

.account-info-page .stat-card__scale {
    margin-bottom: 1rem;
    height: 1rem;
    border: 0.1rem solid var(--card-scale-border, #B24025);
    position: relative;
    background: var(--card-scale-color, #fff);
    border-radius: var(--card-scale-radius, 10px);
}

@media (min-width: 768px) {
    .account-info-page .stat-card__scale {
        margin-bottom: 2rem;
    }
}

.account-info-page .stat-card__scale-filled {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

.account-info-page .stat-card__positions {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.account-info-page .stat-card__position {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.15;
    color: #0e0e0e;
}

@media (min-width: 768px) {
    .account-info-page .stat-card__position {
        font-size: 2rem;
    }
}

.account-info-page .tier-proggress-title {

    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    color: #0e0e0e;
    text-align: center;
}

.account-info-page .tier-proggress-subtitle {

    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: #0E0E0E;
}

/* Player Contact Info: banner + address/contact columns */
.account-info-page .contact-banner {
    margin: 0 auto;
    padding: 0 20px 20px;
    text-align: center;
}

.account-info-page .contact-banner__title {

    font-weight: 700;
    font-size: 22px;
    color: #c0392b;
    margin: 0 0 5px;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .account-info-page .contact-banner__title {
        font-size: 26px;
    }
}

.account-info-page .contact-banner__subtitle {

    font-weight: 400;
    font-size: 15px;
    color: #0e0e0e;
    margin: 0;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .account-info-page .contact-banner__subtitle {
        font-size: 16px;
    }
}

.account-info-page .contact-columns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    text-align: center;
}

@media (min-width: 1400px) {
    .account-info-page .contact-columns {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 50px;
        text-align: left;
    }
}

.account-info-page .contact-column {
    width: 100%;
    max-width: 360px;
}

@media (min-width: 1400px) {
    .account-info-page .contact-column {
        width: auto;
        max-width: none;
    }
}

.account-info-page .contact-column__heading {
    display: block;
    font-weight: 700;
    font-size: 18px;
    color: #0e0e0e;
    margin: 0 0 16px;
    line-height: 1.2;
    padding-bottom: 14px;
    position: relative;
    text-align: center;
}

.account-info-page .contact-column__heading::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 280px;
    height: 4px;
    background: #a94442;
}

@media (min-width: 768px) {
    .account-info-page .contact-column__heading {
        font-size: 20px;
    }
}

@media (min-width: 1400px) {
    .account-info-page .contact-column__heading {
        text-align: left;
    }

    .account-info-page .contact-column__heading::after {
        left: 0;
        transform: none;
        width: 60px;
        max-width: none;
        height: 3px;
    }
}

.account-info-page .contact-column__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-info-page .contact-column__label {

    font-weight: 700;
    font-size: 15px;
    color: #0e0e0e;
    margin: 10px 0 0;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .account-info-page .contact-column__label {
        font-size: 16px;
    }
}

.account-info-page .contact-column__value {

    font-weight: 400;
    font-size: 15px;
    color: #0e0e0e;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

@media (min-width: 768px) {
    .account-info-page .contact-column__value {
        font-size: 16px;
    }
}

.account-info-page .online-account__intro {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.45;
    color: #0e0e0e;
}

.account-info-page .online-account__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .account-info-page .online-account__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
        align-items: start;
    }
}

.account-info-page .online-account__cell {
    min-width: 0;
}

.account-info-page .online-account__value {
    margin-bottom: 12px;
}

.account-info-page .online-account__muted {
    color: #555;
    font-style: italic;
    margin-bottom: 12px;
}

.account-info-page .online-account__edit {
    margin-top: 4px;
}

/* EDIT CTAs — burgundy like widget headers (Radzen merges class onto .rz-button) */
.account-info-page .btn-edit.rz-button,
.account-info-page button.btn-edit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 10px 22px !important;
    border-radius: 6px !important;
    border: none !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    font-family: var(--font-base-stack) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
    box-shadow: none !important;
}

.account-info-page .btn-edit.rz-button:hover,
.account-info-page .btn-edit.rz-button:focus-visible,
.account-info-page button.btn-edit:hover,
.account-info-page button.btn-edit:focus-visible {
    background: #861a1f !important;
    opacity: 1;
}

.account-info-page .btn-edit.rz-button:focus-visible,
.account-info-page button.btn-edit:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


/* ===== wl-details.css ===== */

/* Win/Loss Statement details – layout matching _old EVC portal */
@media (max-width: 575px) {
    .evc-body, .rz-body.evc-body {
        padding: 2px;
        margin: 0px;
    }

    .evc-content-limit {
        padding:0;
        padding-left: 4px;
        padding-right: 4px;
    }

    .wl-details-page .doc__header {
        margin-bottom: 0.75rem;
        padding-left: calc(0.5rem + env(safe-area-inset-left));
        padding-right: calc(0.5rem + env(safe-area-inset-right));
    }

    .wl-details-page.layout__main {
        padding-top: 0.75rem;
        padding-left: calc(0.0rem + env(safe-area-inset-left));
        padding-right: calc(0.0rem + env(safe-area-inset-right));
        padding-bottom: 0.75rem;
    }
}


.wl-details-page.layout__main {
    padding-top: 0.75rem;
    padding-left: calc(0.5rem + env(safe-area-inset-left));
    padding-right: calc(0.5rem + env(safe-area-inset-right));
    padding-bottom: 0.75rem;
    background: var(--main-bg, transparent);
}

@media (min-width: 576px) {
    .wl-details-page.layout__main {
        padding-top: 2rem;
        padding-left: calc(2rem + env(safe-area-inset-left));
        padding-right: calc(2rem + env(safe-area-inset-right));
        padding-bottom: 2rem;
    }
}

@media (min-width: 768px) {
    .wl-details-page.layout__main {
        max-height: none;
        overflow-y: auto;
    }
}

@media (min-width: 1200px) {
    .wl-details-page.layout__main {
        padding-top: 5rem;
        padding-left: calc(5rem + env(safe-area-inset-left));
        padding-right: calc(5rem + env(safe-area-inset-right));
    }
}

.wl-details-page .layout__limit {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* doc__header – buttons sit ABOVE the PDF card with spacing below */
.wl-details-page .doc__header {
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .wl-details-page .doc__header {
        margin-bottom: 4rem;
    }
}

.wl-details-page .doc__btns {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .wl-details-page .doc__btns {
        gap: 2rem;
    }
}

/* Buttons stretch full-width on mobile, fixed min-width on desktop */
.wl-details-page .doc__btn {
    flex: 1;
    min-width: 0;
    position: relative;
}

@media (min-width: 768px) {
    .wl-details-page .doc__btn {
        flex: initial;
        min-width: 20rem;
    }
}

/* Native buttons – same methodology as _old (btn, btn--primary, btn--primary-reverse) */
.wl-details-page .doc__btn.btn {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    color: var(--white, var(--primary-color, #A49066));
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.2rem;
    font-size: 14px;
    font-weight: var(--button-weight, 400);
    font-family: inherit;
    line-height: 1.5;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    outline: none;
    border-radius: var(--layout-radius, 8px);
    white-space: nowrap;
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

@media (min-width: 576px) {
    .wl-details-page .doc__btn.btn {
        padding: 1rem 2rem;
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .wl-details-page .doc__btn.btn {
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    .wl-details-page .doc__btn.btn {
        font-size: 20px;
    }
}

.wl-details-page .doc__btn.btn:disabled,
.wl-details-page .doc__btn.btn.disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.5;
}

.wl-details-page .doc__btn.btn--primary {
    color: #fff;
    background-color: #A49066;
    border-color: #A49066;
}

.wl-details-page .doc__btn.btn--primary:not(:disabled):hover,
.wl-details-page .doc__btn.btn--primary:not(:disabled):focus {
    opacity: 0.8;
}

.wl-details-page .doc__btn.btn--primary-reverse {
    color: var(--primary-color, #A49066);
    border-color: var(--primary-color, #A49066);
    background: #fff;
}

.wl-details-page .doc__btn.btn--primary-reverse:hover,
.wl-details-page .doc__btn.btn--primary-reverse:focus {
    color: #fff;
    background: var(--primary-color, #A49066);
    border-color: var(--primary-color, #A49066);
}

.wl-details-page .btn__icon {
    fill: currentColor;
    width: 16px;
    height: 16px;
    flex: none;
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    display: block;
}

@media (min-width: 576px) {
    .wl-details-page .btn__icon {
        left: 2rem;
    }
}

@media (min-width: 768px) {
    .wl-details-page .btn__icon {
        width: 2rem;
        height: 2rem;
    }
}

.wl-details-page .btn__icon + .btn__text {
    margin-left: 0;
}

.wl-details-page .btn__text {
    white-space: nowrap;
    transition: inherit;
}

/* doc__main – the bordered card containing the PDF canvases */
.wl-details-page .doc__main {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: var(--card-bg, #fff);
    border: 0.2rem solid var(--card-border-color, #a49066);
    box-shadow: var(--card-shadow, none);
    overflow-x: auto;
}

@media (min-width: 768px) {
    .wl-details-page .doc__main {
        padding: 2rem;
    }
}

/* PDF canvas pages rendered by PDF.js */
#pdf-container {
    width: 100%;
    min-height: 60vh;
}

#pdf-container .pdf-page {
    margin-bottom: 10px;
}

#pdf-container .pdf-page:last-child {
    margin-bottom: 0;
}

#pdf-container canvas {
    width: 100%;
    height: auto;
    display: block;
}

/* doc__img fallback for any image-based rendering */
.wl-details-page .doc__img {
    width: 100%;
    display: block;
    height: auto;
    min-width: 50rem;
}

/* Empty / loading / error states */
.doc__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 20px;
    text-align: center;
    min-height: 40vh;
}

.doc__empty p {
    margin: 0;
    font-size: 16px;
    color: var(--rz-text-color, #0E0E0E);
}

.doc__error {
    color: var(--evc-error, #E40023) !important;
}


/* ===== app.css ===== */

h1:focus {
    outline: none;
}

body {
    margin: 0;
    font-family: var(--font-base-stack);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


/* Main content area: same as V2 EVC common.css .layout__main */
.layout__main {
/*    padding-top: 2rem;*/
    padding-left: calc(2rem + env(safe-area-inset-left));
    padding-right: calc(2rem + env(safe-area-inset-right));
    padding-bottom: 150px;
    background: var(--main-bg, transparent);
}

@media (min-width: 576px) {
    .layout__main {
        width: 100%;
/*        padding-top: 3rem;*/
        padding-left: calc(3rem + env(safe-area-inset-left));
        padding-right: calc(3rem + env(safe-area-inset-right));
        padding-bottom: 150px;
    }
}

@media (min-width: 1400px) {
    .layout__main {
        max-height: calc(var(--vh, 1vh) * 100);
        overflow-y: auto;
    }
}

@media (min-width: 1200px) {
    .layout__main {
        padding-top: 5rem;
        padding-left: calc(5rem + env(safe-area-inset-left));
        padding-right: calc(5rem + env(safe-area-inset-right));
        padding-bottom: 158px;
    }
}

.layout__limit {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* Override Radzen dialog padding for Digital Mailer modal (same as V2 .modal-body: 10 10 5 10) */
.mailer-dialog .rz-dialog-content {
    padding: 10px 10px 5px 10px !important;
}

/* From 768px down: same as V2 .modal-dialog (min-width 95%, width auto, margin 10px); keep centering (see MailerFrameModal.razor.css for position override). */
@media (max-width: 768px) {
    .rz-dialog.mailer-dialog,
    .mailer-dialog .rz-dialog {
        min-width: 95% !important;
        width: auto !important;
        max-width: 95% !important;
        margin: 10px !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        inset-block-start: auto !important;
        transform: none !important;
    }
}

/* Profile update dialogs (email / password): center in overlay like MailerFrameModal */
.rz-dialog-wrapper:has(.update-email-dialog-wrapper),
.rz-dialog-wrapper:has(.update-pw-dialog-wrapper) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
    padding-block: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

/* Shared shell: branded card, flex column, viewport-capped height with internal scroll */
.update-email-dialog-wrapper .rz-dialog-content,
.update-pw-dialog-wrapper .rz-dialog-content {
    padding: 0 !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.update-email-dialog-wrapper.rz-dialog,
.update-pw-dialog-wrapper.rz-dialog {
    border-radius: 16px;
    border: 2px solid #861a1f;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex !important;
    flex-direction: column !important;
    max-height: min(90dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)) !important;
    overflow: hidden;
}

@media (max-width: 700px) {
    .update-email-dialog-wrapper.rz-dialog,
    .update-pw-dialog-wrapper.rz-dialog {
        width: 94vw !important;
        max-width: 94vw !important;
        margin: 0 !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        inset-block-start: auto !important;
        transform: none !important;
    }
}

/* Inner card — padding + type shared by form and success steps */
.update-email-dialog-wrapper .update-email-dialog,
.update-pw-dialog-wrapper .update-pw-dialog {
    box-sizing: border-box;
    padding: 32px 36px;
    color: #0e0e0e;
    max-width: 100%;
}

@media (max-width: 575px) {
    .update-email-dialog-wrapper .update-email-dialog,
    .update-pw-dialog-wrapper .update-pw-dialog {
        padding: 28px 24px;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .update-email-dialog-wrapper .update-email-dialog,
    .update-pw-dialog-wrapper .update-pw-dialog {
        padding: 30px 28px;
    }
}


/* ===== evc-modals.css ===== */

/* EVC — Update email / password dialogs (global; Radzen overlay + wrapper classes from app.css) */

/* ------------------------------------------------------------------ */
/* Update email dialog                                                */
/* ------------------------------------------------------------------ */

.update-email-dialog-wrapper .update-email-dialog .ued__icon {
    margin-bottom: 20px;
}

.update-email-dialog-wrapper .update-email-dialog .ued__icon svg {
    width: 56px;
    height: 48px;
}

.update-email-dialog-wrapper .update-email-dialog .ued__title-block {
    display: flex;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 28px;
}

.update-email-dialog-wrapper .update-email-dialog .ued__accent-bar {
    width: 4px;
    min-height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
}

.update-email-dialog-wrapper .update-email-dialog .ued__accent-bar--error {
    background: var(--evc-warning);
}

.update-email-dialog-wrapper .update-email-dialog .ued__title {
    margin: 0 0 6px;
    font-family: var(--font-headings-stack);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--base-color);
    line-height: 1.2;
}

.update-email-dialog-wrapper .update-email-dialog .ued__subtitle {
    margin: 0;
    font-family: var(--font-base-stack);
    font-size: 14px;
    line-height: 1.45;
    color: #555;
}

.update-email-dialog-wrapper .update-email-dialog .ued__form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.update-email-dialog-wrapper .update-email-dialog .ued__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.update-email-dialog-wrapper .update-email-dialog .ued__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.update-email-dialog-wrapper .update-email-dialog .ued__label {
    font-family: var(--font-headings-stack);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--base-color);
}

.update-email-dialog-wrapper .update-email-dialog .ued__input {
    width: 100%;
    border: var(--evc-input-text-border-width) solid var(--evc-input-text-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: var(--font-base-stack);
    font-size: 15px;
    color: #0e0e0e;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, border-width 0.15s ease;
    box-sizing: border-box;
}

.update-email-dialog-wrapper .update-email-dialog .ued__input::placeholder {
    color: #bababa;
    font-size: 14px;
}

.update-email-dialog-wrapper .update-email-dialog .ued__input:hover:not(:disabled):not(:focus):not(.is-error) {
    border-color: var(--evc-input-text-border-hover);
}

.update-email-dialog-wrapper .update-email-dialog .ued__input:focus:not(.is-error) {
    border-color: var(--evc-input-text-border-focus);
    border-width: var(--evc-input-text-border-focus-width);
    box-shadow: none;
}

.update-email-dialog-wrapper .update-email-dialog .ued__input:focus-visible:not(.is-error) {
    outline: none;
}

.update-email-dialog-wrapper .update-email-dialog .ued__input.is-error {
    border-color: var(--evc-input-text-border-error);
    border-width: var(--evc-input-text-border-width);
}

.update-email-dialog-wrapper .update-email-dialog .ued__input.is-error:focus,
.update-email-dialog-wrapper .update-email-dialog .ued__input.is-error:focus-visible {
    border-color: var(--evc-input-text-border-error);
    border-width: var(--evc-input-text-border-focus-width);
    box-shadow: none;
    outline: none;
}

.update-email-dialog-wrapper .update-email-dialog .ued__error {
    font-size: 12px;
    color: var(--evc-warning);
    line-height: 1.3;
}

.update-email-dialog-wrapper .update-email-dialog .ued__divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d4d4d4, transparent);
    margin-bottom: 24px;
}

.update-email-dialog-wrapper .update-email-dialog .ued__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.update-email-dialog-wrapper .update-email-dialog .ued__actions--success {
    margin-top: 8px;
    justify-content: flex-end;
}

.update-email-dialog-wrapper .update-email-dialog .ued__actions--error {
    margin-top: 8px;
    justify-content: flex-end;
}

.update-email-dialog-wrapper .update-email-dialog .ued__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-base-stack);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s;
    line-height: 1.35;
}

.update-email-dialog-wrapper .update-email-dialog .ued__btn--cancel {
    border: 1.5px solid #861a1f;
    background: transparent;
    color: var(--primary-color);
}

.update-email-dialog-wrapper .update-email-dialog .ued__btn--cancel:hover,
.update-email-dialog-wrapper .update-email-dialog .ued__btn--cancel:focus-visible {
    background: rgba(178, 64, 37, 0.08);
}

.update-email-dialog-wrapper .update-email-dialog .ued__btn--submit {
    border: none;
    background: var(--primary-color);
    color: #fff;
}

.update-email-dialog-wrapper .update-email-dialog .ued__btn--submit:hover:not(:disabled),
.update-email-dialog-wrapper .update-email-dialog .ued__btn--submit:focus-visible:not(:disabled) {
    background: #861a1f;
    opacity: 1;
}

.update-email-dialog-wrapper .update-email-dialog .ued__btn--submit:disabled {
    background: #e8d5d0;
    color: #8a5e54;
    cursor: not-allowed;
    opacity: 0.85;
}

@media (max-width: 700px) {
    .update-email-dialog-wrapper .update-email-dialog .ued__fields {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .update-email-dialog-wrapper .update-email-dialog .ued__title {
        font-size: 16px;
    }

    .update-email-dialog-wrapper .update-email-dialog .ued__actions {
        flex-direction: column;
    }

    .update-email-dialog-wrapper .update-email-dialog .ued__btn {
        min-width: 100%;
    }
}

/* ------------------------------------------------------------------ */
/* Update password dialog                                             */
/* ------------------------------------------------------------------ */

.update-pw-dialog-wrapper .update-pw-dialog .upd__header {
    display: flex;
    flex-direction: column;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__icon {
    margin-bottom: 20px;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__icon .rzi {
    font-size: 48px;
    color: #9e9e9e;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__icon--success .rzi {
    color: #399c0a;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__icon--error .rzi {
    color: #ec0000;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__accent-bar--error {
    background: var(--evc-warning, #ec0000);
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__actions--result {
    margin-top: 8px;
    justify-content: flex-end;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__title-block {
    display: flex;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 28px;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__accent-bar {
    width: 4px;
    min-height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__title {
    margin: 0 0 6px;
    font-family: var(--font-headings-stack);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.04em;
    color: var(--base-color);
    line-height: 1.2;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__subtitle {
    margin: 0;
    font-family: var(--font-base-stack);
    font-size: 14px;
    line-height: 1.45;
    color: #555;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__field--full {
    width: min(100%, 360px);
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__password-section {
    padding: 20px;
    border: 1px solid rgba(134, 26, 31, 0.35);
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdfc 0%, #faf6f4 100%);
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__password-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "new"
        "requirements"
        "confirm";
    gap: 18px 24px;
    align-items: start;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__field--new {
    grid-area: new;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__field--confirm {
    grid-area: confirm;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__requirements-panel {
    grid-area: requirements;
    min-width: 0;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__requirements-panel .password-requirements {
    border-radius: 16px;
    padding: 0.9375rem 1rem;
    border-color: rgba(134, 26, 31, 0.35);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__requirements-panel .password-requirements__header {
    margin-bottom: 0.75rem;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__requirements-panel .password-requirements__badge {
    width: 1.375rem;
    height: 1.375rem;
    font-size: 0.75rem;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__requirements-panel .password-requirements__title {
    font-family: var(--font-headings-stack);
    font-size: 14px;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__requirements-panel .password-requirements__list {
    gap: 0.4375rem;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__requirements-panel .password-requirements__item {
    /* Core's shared CSS sets .upd__requirements-panel .password-requirements__item
       padding-left: 1.25rem, but the ::before status icon is 1.5rem wide at left:0, so
       the text overlaps it. Override here (higher specificity) to clear the icon. */
    padding-left: 2.3rem;
    font-size: 13px;
    line-height: 1.4;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__requirements-panel .password-requirements__item::before {
    font-size: 13px;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__label {
    font-family: var(--font-headings-stack);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--base-color);
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* Radzen 10+: RadzenTextBox / RadzenPassword render <input class="rz-textbox ..."> (no wrapper). */
.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap input.rz-textbox {
    width: 100%;
    border: var(--evc-input-text-border-width) solid var(--evc-input-text-border) !important;
    border-radius: 8px;
    padding: 12px 44px 12px 14px;
    font-family: var(--font-base-stack);
    font-size: 15px;
    color: #0e0e0e;
    background: #fff !important;
    outline: none;
    transition: border-color 0.2s ease, border-width 0.15s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    box-shadow: none !important;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap input.rz-textbox::placeholder {
    color: #bababa;
    font-size: 14px;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap:not(.is-error) input.rz-textbox:hover:not(:disabled):not(:focus) {
    border-color: var(--evc-input-text-border-hover) !important;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap:not(.is-error) input.rz-textbox:focus,
.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap:not(.is-error) input.rz-textbox:focus-visible {
    border-color: var(--evc-input-text-border-focus) !important;
    border-width: var(--evc-input-text-border-focus-width) !important;
    box-shadow: none !important;
    outline: none !important;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap.is-error input.rz-textbox {
    border-color: var(--evc-input-text-border-error) !important;
    border-width: var(--evc-input-text-border-width) !important;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap.is-error input.rz-textbox:focus,
.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap.is-error input.rz-textbox:focus-visible {
    border-color: var(--evc-input-text-border-error) !important;
    border-width: var(--evc-input-text-border-focus-width) !important;
    box-shadow: none !important;
    outline: none !important;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap .upd__toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px !important;
    min-width: unset !important;
    width: auto !important;
    height: auto !important;
    cursor: pointer;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap .upd__toggle .rzi {
    font-size: 20px;
    color: #9e9e9e;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap .upd__toggle:hover .rzi,
.update-pw-dialog-wrapper .update-pw-dialog .upd__input-wrap .upd__toggle:focus-visible .rzi {
    color: var(--primary-color);
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__error {
    font-size: 12px;
    color: var(--evc-warning);
    line-height: 1.3;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d4d4d4, transparent);
    margin: 0;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__actions .rz-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 28px !important;
    border-radius: 6px !important;
    font-family: var(--font-base-stack);
    font-size: 15px !important;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s;
    line-height: 1.35;
    box-shadow: none !important;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__actions .upd__btn--cancel {
    border: 1.5px solid #861a1f !important;
    background: transparent !important;
    color: var(--primary-color) !important;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__actions .upd__btn--cancel:hover,
.update-pw-dialog-wrapper .update-pw-dialog .upd__actions .upd__btn--cancel:focus-visible {
    background: rgba(178, 64, 37, 0.08) !important;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__actions .upd__btn--submit {
    border: none !important;
    background: var(--primary-color) !important;
    color: #fff !important;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__actions .upd__btn--submit:hover:not(:disabled),
.update-pw-dialog-wrapper .update-pw-dialog .upd__actions .upd__btn--submit:focus-visible:not(:disabled) {
    background: #861a1f !important;
    opacity: 1;
}

.update-pw-dialog-wrapper .update-pw-dialog .upd__actions .upd__btn--submit:disabled {
    background: #e8d5d0 !important;
    color: #8a5e54 !important;
    cursor: not-allowed;
    opacity: 0.85;
}

@media (max-width: 575px) {
    .update-pw-dialog-wrapper .update-pw-dialog .upd__header {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__field--full {
        width: 100%;
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__password-section {
        padding: 16px;
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__password-fields {
        gap: 16px;
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__title {
        font-size: 16px;
        margin-bottom: 0;
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__subtitle {
        font-size: 13px;
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__icon .rzi {
        font-size: 28px;
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__title-block {
        gap: 10px;
        margin-bottom: 24px;
        flex: 1 1 auto;
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__actions {
        flex-direction: column;
        width: 100%;
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__actions .rz-button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .update-pw-dialog-wrapper .update-pw-dialog .upd__field--full {
        width: min(100%, 420px);
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__password-section {
        padding: 18px;
    }
}

@media (min-width: 900px) {
    .update-pw-dialog-wrapper .update-pw-dialog .upd__password-fields {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 280px);
        grid-template-areas:
            "new requirements"
            "confirm requirements";
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__requirements-panel {
        align-self: stretch;
    }

    .update-pw-dialog-wrapper .update-pw-dialog .upd__requirements-panel .password-requirements {
        height: 100%;
    }
}

/* ------------------------------------------------------------------ */
/* Error dialog (Core ErrorDialog branded for EVC)                    */
/* ------------------------------------------------------------------ */

/* Overlay + shell — mirrors the update-email / update-pw treatment so the
   Core ErrorDialog sits inside the same branded card when opened via
   PlayerPortal.Core.Dialogs.ErrorDialogService (css class "error-dialog-wrapper"). */
.rz-dialog-wrapper:has(.error-dialog-wrapper) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
    padding-block: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.error-dialog-wrapper .rz-dialog-content {
    padding: 0 !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.error-dialog-wrapper.rz-dialog {
    border-radius: 16px;
    border: 2px solid #861a1f;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex !important;
    flex-direction: column !important;
    max-height: min(90dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)) !important;
    overflow: hidden;
}

@media (max-width: 700px) {
    .error-dialog-wrapper.rz-dialog {
        width: 94vw !important;
        max-width: 94vw !important;
        margin: 0 !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        inset-block-start: auto !important;
        transform: none !important;
    }
}

.error-dialog-wrapper .error-dialog {
    box-sizing: border-box;
    padding: 32px 36px;
    color: #0e0e0e;
    max-width: 100%;
}

@media (max-width: 575px) {
    .error-dialog-wrapper .error-dialog {
        padding: 28px 24px;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .error-dialog-wrapper .error-dialog {
        padding: 30px 28px;
    }
}

/* Header: icon + title/accent bar.
   Selectors use three classes so they beat Blazor's scoped `.ped__* [b-xxx]`
   rules (specificity 0,2,0) from PlayerPortal.Core's ErrorDialog.razor.css. */
.error-dialog-wrapper .error-dialog .ped__icon {
    margin-bottom: 20px;
}

.error-dialog-wrapper .error-dialog .ped__icon svg {
    width: 56px;
    height: 48px;
}

.error-dialog-wrapper .error-dialog .ped__title-block {
    display: flex;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 28px;
}

.error-dialog-wrapper .error-dialog .ped__accent-bar {
    width: 4px;
    min-height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
}

.error-dialog-wrapper .error-dialog .ped__accent-bar--warning {
    background: var(--evc-warning, #e8a317);
}

.error-dialog-wrapper .error-dialog .ped__accent-bar--info {
    background: var(--base-color);
}

.error-dialog-wrapper .error-dialog .ped__title {
    margin: 0 0 6px;
    font-family: var(--font-headings-stack);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--base-color);
    line-height: 1.2;
}

.error-dialog-wrapper .error-dialog .ped__subtitle {
    margin: 0;
    font-family: var(--font-base-stack);
    font-size: 14px;
    line-height: 1.45;
    color: #555;
}

/* Actions — primary is the Bordeaux gradient used by ued__btn--submit,
   secondary is the outlined Bordeaux button used by ued__btn--cancel. */
.error-dialog-wrapper .error-dialog .ped__actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.error-dialog-wrapper .error-dialog .ped__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-base-stack);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    line-height: 1.35;
    transition: background-color 0.2s, opacity 0.2s;
}

.error-dialog-wrapper .error-dialog .ped__btn:hover:not(:disabled),
.error-dialog-wrapper .error-dialog .ped__btn:focus-visible:not(:disabled) {
    background: #861a1f;
    opacity: 1;
}

.error-dialog-wrapper .error-dialog .ped__btn:disabled {
    background: #e8d5d0;
    color: #8a5e54;
    cursor: not-allowed;
    opacity: 0.85;
}

.error-dialog-wrapper .error-dialog .ped__btn-spinner {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: evc-ped__spin 0.8s linear infinite;
}

.error-dialog-wrapper .error-dialog .ped__btn--secondary {
    border: 1.5px solid #861a1f;
    background: transparent;
    color: var(--primary-color);
}

.error-dialog-wrapper .error-dialog .ped__btn--secondary:hover:not(:disabled),
.error-dialog-wrapper .error-dialog .ped__btn--secondary:focus-visible:not(:disabled) {
    background: rgba(178, 64, 37, 0.08);
}

.error-dialog-wrapper .error-dialog .ped__btn--secondary .ped__btn-spinner {
    border-color: rgba(134, 26, 31, 0.2);
    border-top-color: var(--primary-color);
}

@media (max-width: 575px) {
    .error-dialog-wrapper .error-dialog .ped__title {
        font-size: 16px;
    }

    .error-dialog-wrapper .error-dialog .ped__actions {
        flex-direction: column;
        width: 100%;
    }

    .error-dialog-wrapper .error-dialog .ped__btn {
        width: 100%;
        min-width: 0;
    }
}

@keyframes evc-ped__spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ===== wowbook-overrides.css ===== */

/**
 * Overrides for WowBook in EVC - like PlayerPortalV2: container window, content sizes naturally, toolbar at bottom.
 */

/* Let container size to content (book has explicit dimensions); no height:100% so book is visible. */
#mailer-wowbook-container,
#mailer-wowbook-container #pnlFlipbook {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
}

#mailer-wowbook-container .wowbook-container,
#pnlFlipbook .wowbook-container {
    display: block !important;
    width: 100% !important;
}

#mailer-wowbook-container .wowbook-book-container,
#pnlFlipbook .wowbook-book-container {
    width: 100% !important;
}

/* Toolbar at bottom, full width (like V2) */
#mailer-wowbook-container .wowbook-toolbar-container,
#pnlFlipbook .wowbook-toolbar-container {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#mailer-wowbook-container .wowbook-toolbar,
#pnlFlipbook .wowbook-toolbar,
#mailer-wowbook-container .wowbook-controls,
#pnlFlipbook .wowbook-controls {
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Golden toolbar like QA / V2 (EVC primary #A49066) */
.wowbook-toolbar-container,
.wowbook-toolbar,
.wowbook-controls {
    background-color: #A49066 !important;
    border-color: #A49066 !important;
}
.wowbook-toolbar a,
.wowbook-control {
    color: #fff !important;
}

/* Same as V2 custom.css: reduce button width so toolbar buttons are closer together */
.wowbook-control {
    width: 25px !important;
}


/* ===== iframe-layout.css ===== */

/* Iframe viewer page - like V2 FlipView: body scrolls, content flows. */
html, body {
    margin: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #0d0d0d;
}

#app {
    min-height: 100%;
    background: #0d0d0d;
}

.iframe-layout {
    min-height: 100%;
    background: #0d0d0d;
    padding: 0;
    margin: 0;
}

