﻿/* Public unsubscribe page (delFromNewsLetter.aspx). Standalone: no panel stylesheets.
   Brand colors come from --primary (domain theme via DefaultsPro.setStyleTheme);
   every var() has a static fallback first for browsers without custom properties. */

@font-face {
    font-family: 'RubikLocal';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Rubik'), local('Rubik-Regular'), url('../Font/rubik/Rubik-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'RubikLocal';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Rubik Medium'), local('Rubik-Medium'), url('../Font/rubik/Rubik-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'RubikLocal';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Rubik Bold'), local('Rubik-Bold'), url('../Font/rubik/Rubik-Bold.ttf') format('truetype');
}

:root {
    --primary: #0e639d;
    --secondary: #6328A7;
    --primary-ink: #0b4f7e;
    --primary-soft: #e8f1f8;
    --on-primary: #ffffff;
}

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body.u-body {
    background: #f4f6fa;
    color: #1d2433;
    font-family: 'RubikLocal', 'Rubik', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

.u-body * { box-sizing: border-box; }

.u {
    min-height: 100vh;
    padding: 32px 16px 28px;
    text-align: center; /* centers the inline-block column in very old browsers */
}

.u-col {
    display: inline-block;
    width: 100%;
    max-width: 480px;
    text-align: right;
    vertical-align: top;
}

[dir="ltr"] .u-col { text-align: left; }

/* ---------- brand header ---------- */
.u-brand { display: table; margin: 0 0 16px; }
.u-brand > div { display: table-cell; vertical-align: middle; }
.u-logo {
    width: 40px; height: 40px; border-radius: 10px;
    background: #0e639d; background: var(--primary);
    color: #ffffff; color: var(--on-primary);
    font-weight: 500; font-size: 15px; line-height: 40px; text-align: center;
}
.u-brand-txt { padding: 0 10px; }
.u-brand-name { font-weight: 500; font-size: 15px; color: #1d2433; }
.u-brand-sub { font-size: 12.5px; color: #5f6880; }

/* ---------- card ---------- */
.u-card {
    background: #ffffff;
    border: 1px solid #e3e7ef;
    border-radius: 14px;
    padding: 26px 24px 22px;
    box-shadow: 0 1px 2px rgba(20, 30, 50, .04), 0 6px 20px rgba(20, 30, 50, .05);
}

.u-ico {
    width: 48px; height: 48px; border-radius: 50%;
    background: #e8f1f8; background: var(--primary-soft);
    color: #0e639d; color: var(--primary-ink);
    margin: 0 0 14px; text-align: center; line-height: 0; padding-top: 12px;
}
.u-ico svg { display: inline-block; }
.u-ico.ok { background: #e6f4ec; color: #17784a; }
.u-ico.warn { background: #fdf3e1; color: #8a5200; }
.u-ico.err { background: #fbeaec; color: #b42331; }
.u-ico.muted { background: #eef0f4; color: #4a5468; }

.u-card h1 { font-size: 22px; line-height: 1.3; margin: 0 0 6px; font-weight: 500; color: #1d2433; }
.u-card p, .u-p { margin: 0 0 10px; color: #4a5468; }
.u-card b { color: #1d2433; font-weight: 500; }

/* email chip; the UserMail TextBox is rendered disabled and styled as a chip */
.u-email,
input.u-email-box[disabled] {
    display: inline-block;
    direction: ltr;
    unicode-bidi: embed;
    font: inherit;
    font-weight: 500;
    color: #1d2433;
    background: #f1f3f7;
    border: 0;
    border-radius: 8px;
    padding: 3px 10px;
    margin: 2px 0 0;
    word-break: break-all;
    -webkit-text-fill-color: #1d2433; /* Safari greys out disabled inputs */
    opacity: 1;
    max-width: 100%;
}
input.u-email-box { width: 100%; text-align: left; }
input.u-email-box[disabled] { width: auto; text-align: center; }
input.u-email-box:not([disabled]) {
    border: 1px solid #b9c1cf; border-radius: 10px; padding: 9px 12px; background: #fff; font-size: 15px;
}
.u-validator { color: #b42331; }

/* ---------- options ---------- */
.u-fs { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.u-legend { font-weight: 500; font-size: 15px; margin: 0 0 10px; padding: 0; color: #1d2433; display: block; }

.u-opt {
    position: relative;
    display: block;
    border: 1.5px solid #e3e7ef;
    border-radius: 12px;
    padding: 13px 14px 13px 14px;
    margin: 0 0 10px;
    background: #ffffff;
    cursor: pointer;
}
.u-opt:hover { border-color: #c5ccd9; }
.u-opt.is-on {
    border-color: #0b4f7e; border-color: var(--primary-ink);
    background: #e8f1f8; background: var(--primary-soft);
}
.u-opt input[type="radio"] {
    position: absolute; top: 15px; right: 14px;
    width: 18px; height: 18px; margin: 0;
    accent-color: #0e639d; accent-color: var(--primary);
}
[dir="ltr"] .u-opt input[type="radio"] { right: auto; left: 14px; }
.u-opt label { display: block; padding-right: 30px; font-weight: 500; color: #1d2433; cursor: pointer; }
.u-opt small { display: block; padding-right: 30px; color: #5f6880; font-size: 13.5px; margin-top: 1px; }
[dir="ltr"] .u-opt label, [dir="ltr"] .u-opt small { padding-right: 0; padding-left: 30px; }

/* a subscriber with no named lists: the single "remove" option reads as a statement */
.u-single .u-opt { border: 0; background: transparent; padding: 0; cursor: default; }
.u-single .u-opt input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.u-single .u-opt label, .u-single .u-opt small { padding: 0; }
.u-single .u-legend { display: none; }

/* per-list toggles: CheckBox renders input + label; the label draws the switch */
.u-lists { margin: -2px 0 12px; padding: 2px 14px; border: 1px solid #e3e7ef; border-radius: 12px; background: #fbfcfe; }
.u-li { padding: 10px 0; border-bottom: 1px solid #e3e7ef; }
.u-li:last-child { border-bottom: 0; }
.u-switch { position: relative; display: block; }
.u-switch input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; top: 12px; left: 12px; }
.u-switch label {
    position: relative; display: block; min-height: 24px; line-height: 24px;
    padding-left: 54px; font-weight: 500; color: #1d2433; cursor: pointer;
}
[dir="ltr"] .u-switch label { padding-left: 0; padding-right: 54px; }
.u-switch label:before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 40px; height: 24px; border-radius: 12px; background: #b3bccb;
}
.u-switch label:after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 50%; background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
[dir="ltr"] .u-switch label:before { left: auto; right: 0; }
[dir="ltr"] .u-switch label:after { left: auto; right: 19px; }
.u-switch input:checked + label:before { background: #0e639d; background: var(--primary); }
.u-switch input:checked + label:after { left: 19px; }
[dir="ltr"] .u-switch input:checked + label:after { right: 3px; }
.u-switch input:disabled + label { color: #8a93a6; cursor: default; }
.u-switch input:focus + label:before { outline: 3px solid #0b4f7e; outline: 3px solid var(--primary-ink); outline-offset: 2px; }
.u-li-state { display: block; font-size: 12.5px; color: #5f6880; }
.u-lists-hint { font-size: 12.5px; color: #5f6880; padding: 8px 0 6px; }

/* ---------- remarks / reason ---------- */
.u-reason { margin-top: 18px; }
.u-lbl { display: block; font-weight: 500; margin-bottom: 8px; color: #1d2433; }
.u-opt-txt { color: #5f6880; font-weight: 400; }
.u-chips { margin: 0 0 6px; }
.u-chip {
    font: inherit; font-size: 13.5px;
    border: 1px solid #c3cad6; background: #ffffff; color: #1d2433;
    border-radius: 999px; padding: 6px 12px; margin: 0 0 8px 6px; cursor: pointer;
}
[dir="ltr"] .u-chip { margin: 0 6px 8px 0; }
.u-chip[aria-pressed="true"] {
    border-color: #0e639d; border-color: var(--primary);
    background: #e8f1f8; background: var(--primary-soft);
    color: #0b4f7e; color: var(--primary-ink);
}
.u-body textarea {
    display: block; width: 100%; min-height: 80px;
    font: inherit; font-size: 15px; color: #1d2433;
    border: 1px solid #b9c1cf; border-radius: 10px; padding: 10px 12px;
    resize: vertical; background: #ffffff;
}
.u-hint { font-size: 12.5px; color: #5f6880; margin-top: 4px; }

/* ---------- actions ---------- */
.u-actions { margin-top: 20px; }
.u-btn {
    display: block; width: 100%;
    font: inherit; font-weight: 500; font-size: 15.5px; text-align: center; text-decoration: none;
    border: 0; border-radius: 10px; padding: 13px 18px; margin: 0 0 6px; cursor: pointer;
    background: #0e639d; background: var(--primary);
    color: #ffffff; color: var(--on-primary);
}
.u-btn:hover, .u-btn:focus { text-decoration: none; color: #ffffff; color: var(--on-primary); filter: brightness(.94); }
.u-btn.ghost { background: transparent; color: #0b4f7e; color: var(--primary-ink); }
.u-btn.ghost:hover { background: #e8f1f8; background: var(--primary-soft); color: #0b4f7e; color: var(--primary-ink); filter: none; }
.u-btn.outline {
    display: inline-block; width: auto; background: #ffffff; color: #1d2433;
    border: 1px solid #c3cad6; font-size: 14px; padding: 9px 14px; margin: 0 0 8px 8px;
}
[dir="ltr"] .u-btn.outline { margin: 0 8px 8px 0; }
.u-btn.outline:hover { background: #f6f8fb; color: #1d2433; filter: none; }
.u-btn svg { vertical-align: -3px; margin: 0 4px; }

.u-body :focus { outline: 3px solid #0b4f7e; outline: 3px solid var(--primary-ink); outline-offset: 2px; }
.u-body :focus:not(:focus-visible) { outline: none; }
.u-body .u-switch input:focus:not(:focus-visible) + label:before { outline: none; }

/* ---------- privacy ---------- */
.u-priv { margin-top: 20px; border-top: 1px solid #e3e7ef; padding-top: 12px; }
.u-priv-toggle {
    display: block; width: 100%; text-align: inherit;
    font: inherit; font-size: 14px; font-weight: 500; color: #4a5468;
    background: transparent; border: 0; padding: 6px 0; cursor: pointer; border-radius: 6px;
}
.u-priv-toggle svg { vertical-align: -4px; margin: 0 0 0 6px; }
[dir="ltr"] .u-priv-toggle svg { margin: 0 6px 0 0; }
.u-priv-toggle .u-chev { float: left; margin: 0; }
[dir="ltr"] .u-priv-toggle .u-chev { float: right; }
.u-priv-toggle[aria-expanded="true"] .u-chev svg { -webkit-transform: rotate(180deg); transform: rotate(180deg); }
.u-priv-body { padding: 8px 0 2px; font-size: 13.5px; color: #4a5468; }
.u-priv-btns { margin-top: 10px; }

.u-note { border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-top: 10px; }
.u-note.ok { background: #e6f4ec; color: #0f5534; }
.u-note.err { background: #fbeaec; color: #8c1a26; }

/* ---------- result screens ---------- */
.u-receipt { margin: 16px 0 0; border: 1px solid #e3e7ef; border-radius: 12px; padding: 2px 14px; background: #fbfcfe; }
.u-receipt-row { display: table; width: 100%; padding: 8px 0; border-bottom: 1px solid #e3e7ef; font-size: 14px; }
.u-receipt-row:last-child { border-bottom: 0; }
.u-receipt-row > span { display: table-cell; vertical-align: top; }
.u-receipt-k { color: #5f6880; }
.u-receipt-v { font-weight: 500; color: #1d2433; text-align: left; }
[dir="ltr"] .u-receipt-v { text-align: right; }
.u-sub-h { font-weight: 500; font-size: 14px; margin: 14px 0 0; color: #1d2433; }
.u-res { list-style: none; margin: 6px 0 12px; padding: 0; }
.u-res li { padding: 3px 0; color: #1d2433; }
.u-res svg { vertical-align: -4px; margin: 0 0 0 6px; }
[dir="ltr"] .u-res svg { margin: 0 6px 0 0; }
.u-res .x { color: #b42331; }
.u-res .v { color: #17784a; }

.u-foot { margin-top: 16px; font-size: 12px; color: #5f6880; }

@media (max-width: 420px) {
    .u { padding: 18px 12px 16px; }
    .u-card { padding: 22px 16px 18px; }
    .u-card h1 { font-size: 20px; }
}
