/* Weather: native top-layer dialog, existing brand palette and photography. */
.rm-weather-dialog {
    --weather-bg: #151817;
    --weather-text: #faf8f3;
    --weather-muted: #bcbeb7;
    --weather-accent: #dbb686;
    --weather-line: #3a3e38;
    --weather-ease: cubic-bezier(.2, 0, 0, 1);
    width: min(640px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--weather-line);
    border-radius: 28px;
    color: var(--weather-text);
    background: var(--weather-bg);
    box-shadow: 0 28px 100px #0008;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: opacity 180ms ease-out, transform 180ms var(--weather-ease);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.rm-weather-dialog.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-duration: 300ms;
}
.rm-weather-dialog::backdrop {
    background: rgb(0 0 0 / .68);
    backdrop-filter: blur(6px);
}
.rm-weather-dialog [hidden] { display: none !important; }
.rm-weather-dialog :is(h2, h3, strong, button, input) { font-family: inherit; }
body.rm-weather-open { overflow: hidden; }
.rm-weather-dialog__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 32px;
    min-height: 272px;
    background: #161b19;
}
.rm-weather-dialog__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #121613f2, #121613a8 55%, #12161350), linear-gradient(0deg, #151817, transparent 60%);
}
.rm-weather-dialog__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
    outline: 1px solid rgb(255 255 255 / .1);
    outline-offset: -1px;
    transform: scale(1.07);
    transition: transform 400ms var(--weather-ease);
}
.rm-weather-dialog.is-open .rm-weather-dialog__image { transform: scale(1); }
.rm-weather-dialog__topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-right: 48px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--weather-accent);
}
.rm-weather-dialog__topline > span:last-child { color: var(--weather-muted); }
.rm-weather-dialog__close {
    position: sticky;
    top: 16px;
    z-index: 3;
    margin: 16px 16px -60px auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ffffff38;
    border-radius: 50%;
    background: #151817c9;
    color: var(--weather-text);
    font: 300 28px/1 Arial, sans-serif;
    cursor: pointer;
    transition: background-color 140ms ease-out, transform 140ms ease-out;
}
.rm-weather-dialog__hero-copy {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 24px;
    margin-top: 64px;
}
.rm-weather-dialog h2 {
    margin: 0;
    max-width: 10ch;
    color: var(--weather-text);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: 1.07;
    text-wrap: balance;
}
.rm-weather-dialog__metric { display: grid; gap: 4px; text-align: right; }
.rm-weather-dialog__hero-copy > * { min-width: 0; }
.rm-weather-dialog__metric strong {
    color: var(--weather-accent);
    font-size: clamp(64px, 8vw, 88px);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -.07em;
    font-variant-numeric: tabular-nums;
}
.rm-weather-dialog__metric span { color: var(--weather-muted); font-size: 13px; }
.rm-weather-dialog .rm-weather-offer__panel,
.rm-weather-dialog__forecast {
    position: static;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 8px 32px 28px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
    opacity: 1;
}
.rm-weather-dialog .rm-weather-offer__body { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 24px; }
.rm-weather-dialog h3 { margin: 0 0 8px; color: var(--weather-text); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.rm-weather-dialog p { margin: 0; color: var(--weather-muted); font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.rm-weather-dialog .rm-weather-offer__timer-wrap { display: grid; justify-items: end; gap: 8px; padding: 0; text-align: right; }
.rm-weather-dialog .rm-weather-offer__timer-wrap span { color: var(--weather-muted); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.rm-weather-dialog .rm-weather-offer__timer-wrap strong { color: var(--weather-accent); font-size: 24px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.rm-weather-dialog p.rm-weather-dialog__terms { margin-top: 16px; font-size: 13px; }
.rm-weather-dialog__code { margin-top: 20px; border-block: 1px solid var(--weather-line); }
.rm-weather-dialog__code summary { min-height: 48px; padding: 14px 0; color: var(--weather-text); font-size: 13px; cursor: pointer; }
.rm-weather-dialog .rm-weather-offer__code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; padding: 0; border: 0; background: none; }
.rm-weather-dialog .rm-weather-offer__code { color: var(--weather-text); font-size: 16px; letter-spacing: .06em; overflow-wrap: anywhere; }
.rm-weather-dialog .rm-weather-offer__actions,
.rm-weather-dialog .rm-weather-offer__claim-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.rm-weather-dialog .rm-button { min-height: 48px; padding: 14px 16px; border-radius: 14px; font-size: 12px; letter-spacing: .025em; line-height: 1.4; transition: transform 140ms ease-out, background-color 140ms ease-out, color 140ms ease-out; }
.rm-weather-dialog .rm-button--primary { color: #181b17; background: var(--weather-accent); border-color: var(--weather-accent); box-shadow: none; }
.rm-weather-dialog .rm-button--ghost,
.rm-weather-dialog .rm-button--secondary { color: var(--weather-text); background: transparent; border: 1px solid var(--weather-line); }
.rm-weather-dialog .rm-weather-offer__claim-form { margin-top: 24px; padding: 24px 0 0; border: 0; border-top: 1px solid var(--weather-line); background: none; border-radius: 0; }
.rm-weather-dialog .rm-weather-offer__claim-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.rm-weather-dialog .rm-weather-offer__claim-fields label { display: grid; gap: 8px; color: var(--weather-muted); font-size: 12px; }
.rm-weather-dialog .rm-weather-offer__claim-fields label > span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.rm-weather-dialog .rm-weather-offer__claim-fields input { width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; border: 1px solid #5b6157; border-radius: 12px; color: var(--weather-text); background: #222621; font: inherit; font-size: 16px; }
.rm-weather-dialog input::placeholder { color: #adb2a7; opacity: 1; }
.rm-weather-dialog .rm-form-consent { margin-top: 20px; color: var(--weather-muted); font-size: 13px; line-height: 1.5; align-items: start; }
.rm-weather-dialog .rm-form-consent input { accent-color: var(--weather-accent); }
.rm-weather-dialog .rm-form-consent a { color: var(--weather-text); text-decoration: underline; }
.rm-weather-dialog .rm-weather-offer__claim-cancel { min-height: 48px; border: 1px solid var(--weather-line); border-radius: 14px; background: transparent; color: var(--weather-text); font-size: 13px; cursor: pointer; }
.rm-weather-dialog .rm-weather-offer__status { min-height: 0; margin-top: 16px; color: var(--weather-accent); font-size: 13px; line-height: 1.5; }
.rm-weather-dialog .rm-weather-offer__status:empty { display: none; }
.rm-weather-dialog .rm-weather-offer__success { position: static; display: grid; justify-items: center; gap: 12px; margin-top: 24px; padding: 28px 16px; background: #232c24; border: 1px solid #51604d; border-radius: 20px; text-align: center; }
.rm-weather-dialog .rm-weather-offer__success strong { font-size: 22px; }
.rm-weather-dialog .rm-weather-offer__success-mark { color: var(--weather-accent); }
.rm-weather-dialog.is-claiming .rm-weather-offer__body,
.rm-weather-dialog.is-claiming .rm-weather-dialog__terms,
.rm-weather-dialog.is-claiming .rm-weather-dialog__code,
.rm-weather-dialog.is-claiming .rm-weather-offer__actions,
.rm-weather-dialog .is-success .rm-weather-offer__body,
.rm-weather-dialog .is-success .rm-weather-dialog__terms,
.rm-weather-dialog .is-success .rm-weather-offer__actions { display: none !important; }
.rm-weather-dialog.is-claiming .rm-weather-offer__claim-form { margin-top: 0; padding-top: 8px; border-top: 0; }
.rm-weather-dialog__forecast-heading { display: grid; gap: 4px; margin-bottom: 20px; }
.rm-weather-dialog__forecast-heading > span { color: var(--weather-muted); font-size: 12px; }
.rm-weather-dialog .rm-weather-offer__forecast-days { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; }
.rm-weather-dialog .rm-weather-offer__forecast-day { display: grid; justify-items: center; align-content: start; gap: 12px; min-width: 0; padding: 16px 6px; border: 1px solid var(--weather-line); border-radius: 14px; background: #ffffff04; text-align: center; }
.rm-weather-dialog .rm-weather-offer__forecast-date { color: var(--weather-text); font-size: 12px; font-weight: 600; }
.rm-weather-dialog .rm-weather-offer__forecast-icon { width: 24px; height: 24px; color: var(--weather-accent); }
.rm-weather-dialog .rm-weather-offer__forecast-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rm-weather-dialog .rm-weather-offer__forecast-temperatures { color: var(--weather-text); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.rm-weather-dialog .rm-weather-offer__forecast-day small { display: block; max-width: none; min-height: 3em; color: var(--weather-muted); font-size: 11px; line-height: 1.5; white-space: normal; overflow: visible; text-overflow: clip; }
.rm-weather-dialog .rm-weather-offer__forecast-day .rm-weather-dialog__precipitation { min-height: 0; font-size: 10px; }
.rm-weather-dialog__forecast > .rm-button { width: 100%; margin-top: 24px; }
.rm-weather-dialog p.rm-weather-dialog__source { margin-top: 16px; font-size: 11px; }
.rm-weather-dialog button:active,
.rm-weather-dialog .rm-button:active { transform: scale(.96); }
.rm-weather-dialog :is(button, a, summary, input):focus-visible { outline: 2px solid var(--weather-accent); outline-offset: 4px; }
.rm-weather-dialog button:disabled { opacity: .55; cursor: wait; transform: none; }
html body .rm-header__inner > .rm-weather-v2 { position: absolute !important; top: 14px !important; bottom: auto !important; transform: translateX(-50%) !important; }
html body .rm-header__inner > .rm-weather-v2 .rm-weather-offer__forecast { cursor: pointer; pointer-events: auto !important; touch-action: manipulation; font-family: inherit; min-height: 44px !important; }
html body .rm-header__inner > .rm-weather-v2 .rm-weather-offer__forecast-head > span { display: grid; gap: 2px; min-width: 0; }
html body .rm-header__inner > .rm-weather-v2 :is(.rm-weather-offer__forecast, .rm-weather-offer__dock):focus-visible { outline: 2px solid #dbb686; outline-offset: 3px; }
html body .rm-header__inner > .rm-weather-v2 .rm-weather-offer__dock { min-height: 44px !important; display: grid !important; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px !important; padding: 8px 12px !important; color: #dbb686; background: #26221b !important; border: 1px solid #6d5941 !important; }
html body .rm-header__inner > .rm-weather-v2 .rm-weather-offer__dock-label { display: none !important; }
html body .rm-header__inner > .rm-weather-v2 .rm-weather-offer__dock-discount { position: static !important; margin: 0 !important; padding: 0 !important; font: 600 20px/1 system-ui, sans-serif !important; color: #dbb686 !important; white-space: nowrap; }
html body .rm-header__inner > .rm-weather-v2 .rm-weather-offer__dock-discount::after { display: none !important; }
html body .rm-header__inner > .rm-weather-v2 .rm-weather-offer__dock-mark { display: grid !important; place-items: center; width: 24px !important; height: 24px !important; padding: 0 !important; background: none !important; }
html body .rm-header__inner > .rm-weather-v2 .rm-weather-offer__dock-mark svg { width: 20px !important; height: 20px !important; }
html body .rm-header__inner > .rm-weather-v2 .rm-weather-offer__dock strong { position: static !important; color: #faf8f3 !important; font: 600 12px/1 system-ui, sans-serif !important; font-variant-numeric: tabular-nums !important; }
@media (hover: hover) {
    .rm-weather-dialog__close:hover { background: #3a3e38; }
    .rm-weather-dialog .rm-button--primary:hover { background: #edcfa7; }
}
@media (max-width: 1023px) {
    html body .rm-header__inner > .rm-weather-v2 { left: auto !important; right: 56px !important; width: min(170px, calc(100vw - 186px)) !important; max-width: min(170px, calc(100vw - 186px)) !important; transform: none !important; }
}
@media (max-width: 600px) {
    html body .rm-header__inner > .rm-weather-v2 .rm-weather-offer__dock { grid-template-columns: minmax(0, 1fr) auto; }
    html body .rm-header__inner > .rm-weather-v2 .rm-weather-offer__dock-mark { display: none !important; }
    .rm-weather-dialog { width: calc(100vw - 16px); margin: auto auto max(8px, env(safe-area-inset-bottom)); border-radius: 24px; max-height: calc(100dvh - 24px); }
    .rm-weather-dialog__hero { padding: 24px; min-height: 236px; }
    .rm-weather-dialog__topline { font-size: 10px; }
    .rm-weather-dialog__topline > span:last-child { display: none; }
    .rm-weather-dialog__hero-copy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 56px; }
    .rm-weather-dialog h2 { font-size: clamp(27px, 7.2vw, 36px); }
    .rm-weather-dialog__metric strong { font-size: clamp(56px, 16vw, 76px); }
    .rm-weather-dialog__metric span { font-size: 11px; }
    .rm-weather-dialog .rm-weather-offer__panel, .rm-weather-dialog__forecast { padding: 4px 24px 24px; }
    .rm-weather-dialog .rm-weather-offer__body { gap: 16px; grid-template-columns: 1fr; }
    .rm-weather-dialog .rm-weather-offer__timer-wrap { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-block: 1px solid var(--weather-line); }
    .rm-weather-dialog .rm-weather-offer__actions, .rm-weather-dialog .rm-weather-offer__claim-fields { grid-template-columns: 1fr; }
    .rm-weather-dialog .rm-weather-offer__forecast-days { grid-template-columns: 1fr; gap: 0; }
    .rm-weather-dialog .rm-weather-offer__forecast-day { grid-template-columns: 56px 24px 1fr 60px; align-items: center; gap: 12px; justify-items: start; padding: 14px 0; border: 0; border-bottom: 1px solid var(--weather-line); border-radius: 0; background: none; text-align: left; }
    .rm-weather-dialog .rm-weather-offer__forecast-day small { display: none; }
    .rm-weather-dialog .rm-weather-offer__forecast-day .rm-weather-dialog__precipitation { display: block; font-size: 11px; text-align: right; }
    .rm-weather-dialog .rm-weather-offer__forecast-temperatures { font-size: 14px; }
    .rm-weather-dialog.is-claiming .rm-weather-dialog__hero { min-height: 180px; }
    .rm-weather-dialog.is-claiming .rm-weather-dialog__hero-copy { margin-top: 32px; }
    .rm-weather-dialog.is-claiming h2 { font-size: 26px; }
    .rm-weather-dialog.is-claiming .rm-weather-dialog__metric strong { font-size: 56px; }
    html body .rm-header__inner > .rm-weather-v2 .rm-weather-offer__forecast-head strong { font-size: 11px; }
}
@media (max-width: 360px) {
    .rm-weather-dialog__hero { padding: 20px; }
    .rm-weather-dialog .rm-weather-offer__panel, .rm-weather-dialog__forecast { padding-inline: 20px; }
    .rm-weather-dialog .rm-weather-offer__forecast-day { grid-template-columns: 50px 20px 1fr 56px; gap: 8px; }
    .rm-weather-dialog h2 { font-size: 26px; }
    .rm-weather-dialog__metric strong, .rm-weather-dialog.is-claiming .rm-weather-dialog__metric strong { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .rm-weather-dialog, .rm-weather-dialog *, .rm-weather-dialog *::before, .rm-weather-dialog *::after { animation: none !important; transition: none !important; }
    .rm-weather-dialog, .rm-weather-dialog__image { transform: none; }
    .rm-weather-dialog button:active, .rm-weather-dialog .rm-button:active { transform: none; }
}
