/* ==========================================================================
   Golden Resort × Mews – varaushakupalkki v0.1.7 (gr-mews-booking)
   Kaikki luokat prefiksillä .grb- jotta ne eivät törmää teeman tyyleihin.
   Värit ja fontit luetaan teeman CSS-muuttujista, fallbackina brändiarvot.
   ========================================================================== */
:root {
  --grb-primary: var(--wp--preset--color--lightbrown, #7B614C);
  --grb-primary-dark: var(--wp--preset--color--darkbrown, #6F533C);
  --grb-gold: var(--wp--preset--color--gold, #8E7333);
  --grb-sand: var(--wp--preset--color--whitesmoke, #EFECE4);
  --grb-white: #FFFFFF;
  --grb-ink: #1F1A16;
  --grb-muted: #6B625A;
  --grb-line: #E3DCD0;
  --grb-line-strong: #CFC4B3;
  --grb-error: #9B2C1F;
  --grb-font: var(--wp--preset--font-family--body, "Lato"), "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grb-font-head: var(--wp--preset--font-family--heading, "essonnes-display"), "essonnes-display", "Cormorant Garamond", Georgia, serif;
  --grb-shadow: 0 18px 48px rgba(47, 35, 24, .18), 0 2px 6px rgba(47, 35, 24, .08);
  --grb-shadow-soft: 0 8px 24px rgba(47, 35, 24, .14);
  --grb-z: 9990;              /* alle Complianzin (99999) ja HubSpotin (9998–9999) */
  --grb-ease: cubic-bezier(.2, .7, .2, 1);
}

.grb, .grb * { box-sizing: border-box; }
.grb { font-family: var(--grb-font); color: var(--grb-ink); -webkit-font-smoothing: antialiased; }
:where(.grb) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
.grb :focus-visible { outline: 2px solid var(--grb-gold); outline-offset: 2px; }
/* Suoja teeman yleisiä p/span/h2/ul-tyylejä vastaan (teema: p, span -> color, font-size 1.1rem, padding-bottom .75em) */
.grb span, .grb p, .grb output { padding-bottom: 0; font-size: inherit; font-weight: inherit; color: inherit; font-family: inherit; letter-spacing: inherit; text-transform: inherit; line-height: inherit; }
.grb h2 { padding: 0; letter-spacing: normal; text-transform: none; line-height: 1.1; }
.grb ul { list-style: none; padding-left: 0; }
.grb svg { display: inline-block; }

.grb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Hakupalkki (yhteinen: inline + kelluva)
   -------------------------------------------------------------------------- */
.grb .grb-bar { position: relative; background: var(--grb-white); }
.grb .grb-bar__form { display: grid; grid-template-columns: minmax(150px, 1.25fr) minmax(220px, 1.7fr) minmax(150px, 1.15fr) minmax(130px, .95fr) auto; align-items: stretch; margin: 0; }
.grb .grb-seg { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding: 12px 20px; border-right: 1px solid var(--grb-line); transition: background .15s; }
.grb .grb-seg:hover { background: #FAF8F4; }
.grb .grb-seg[aria-expanded="true"] { background: var(--grb-sand); }
.grb .grb-seg__label { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--grb-primary-dark); white-space: nowrap; }
.grb .grb-seg__value { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grb .grb-seg__value > span { overflow: hidden; text-overflow: ellipsis; }
.grb .grb-seg__value.is-placeholder { color: var(--grb-muted); }
.grb .grb-seg__icon { flex: none; width: 16px; height: 16px; color: var(--grb-gold); }
.grb .grb-seg__chev { margin-left: auto; flex: none; width: 12px; height: 12px; color: var(--grb-primary); opacity: .7; transition: transform .2s; }
.grb .grb-seg[aria-expanded="true"] .grb-seg__chev { transform: rotate(180deg); }
.grb .grb-seg--voucher .grb-seg__value { font-size: 14px; }
.grb .grb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; background: var(--grb-sand); font-size: 13px; letter-spacing: .5px; }

.grb .grb-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 30px; background: var(--grb-primary) !important; color: var(--grb-white) !important; font-size: 15px !important; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; text-align: center !important; transition: background .15s; }
.grb .grb-cta:hover { background: var(--grb-primary-dark) !important; }
.grb .grb-cta svg { width: 16px; height: 16px; }

/* Inline (A) – etusivu */
.grb .grb-bar--inline { border: 1px solid var(--grb-line-strong); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.grb .grb-bar--inline .grb-seg { min-height: 76px; padding: 14px 22px; }
.grb .grb-bar--inline .grb-seg__value { font-size: 16px; }
.grb .grb-inline-note { margin: 14px 0 0; font-size: 13px; color: var(--grb-muted); text-align: center; letter-spacing: .2px; }
.grb .grb-inline-note a { color: var(--grb-primary); }

/* Kelluva (B) */
.grb.grb-float { position: fixed; left: 50%; bottom: 20px; z-index: var(--grb-z); width: min(1120px, calc(100vw - 48px)); transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--grb-ease), opacity .3s; pointer-events: none; }
.grb.grb-float.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.grb.grb-float .grb-bar { box-shadow: var(--grb-shadow); border-top: 2px solid var(--grb-primary); }
.grb.grb-float .grb-seg { min-height: 64px; }
.grb .grb-float__min { position: absolute; right: 0; top: -30px; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--grb-white); color: var(--grb-primary-dark); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; box-shadow: 0 -6px 14px rgba(47,35,24,.08); }
.grb .grb-float__min svg { width: 12px; height: 12px; }

/* Pienennetty (C) */
.grb.grb-compact { position: fixed; left: 24px; bottom: 24px; z-index: var(--grb-z); display: inline-flex; align-items: stretch; background: var(--grb-white); box-shadow: var(--grb-shadow-soft); border: 1px solid var(--grb-line-strong); transform: translateY(160%); opacity: 0; transition: transform .4s var(--grb-ease), opacity .25s; pointer-events: none; }
.grb.grb-compact.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.grb .grb-compact__main { display: inline-flex; align-items: center; gap: 12px; padding: 0 18px 0 16px; min-height: 52px; }
.grb .grb-compact__main svg { width: 18px; height: 18px; color: var(--grb-gold); }
.grb .grb-compact__title { font-size: 13px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--grb-primary-dark); }
.grb .grb-compact__sum { font-size: 13px; color: var(--grb-muted); border-left: 1px solid var(--grb-line); padding-left: 12px; white-space: nowrap; }
.grb .grb-compact__go { display: inline-flex; align-items: center; justify-content: center; width: 52px; background: var(--grb-primary); color: #fff; }
.grb .grb-compact__go:hover { background: var(--grb-primary-dark); }
.grb .grb-compact__go svg { width: 16px; height: 16px; }

/* Virheviesti */
.grb .grb-msg { display: none; align-items: center; gap: 10px; padding: 10px 16px; background: #FBF1EE; color: var(--grb-error); font-size: 14px; border-left: 3px solid var(--grb-error); }
.grb .grb-msg.is-shown { display: flex; }
.grb .grb-msg svg { width: 16px; height: 16px; flex: none; }
.grb.grb-float .grb-msg { position: absolute; left: 0; right: 0; bottom: calc(100% + 2px); box-shadow: var(--grb-shadow-soft); }
.grb .grb-bar--inline + .grb-msg, .grb.grb-inline .grb-msg { margin-top: 8px; }

/* --------------------------------------------------------------------------
   Popoverit (F)
   -------------------------------------------------------------------------- */
.grb .grb-pop { position: absolute; z-index: 5; background: var(--grb-white); box-shadow: var(--grb-shadow); border: 1px solid var(--grb-line); animation: grb-in .18s var(--grb-ease); }
.grb .grb-pop[hidden] { display: none; }
.grb .grb-bar--inline .grb-pop { top: calc(100% + 10px); }
.grb.grb-float .grb-pop { bottom: calc(100% + 14px); }
@keyframes grb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.grb .grb-pop__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 22px 8px; }
.grb .grb-pop__title { font-family: var(--grb-font-head); font-weight: 500; font-size: 24px; color: var(--grb-primary); margin: 0; line-height: 1.1; }
.grb .grb-pop__hint { font-size: 13px; color: var(--grb-muted); }
.grb .grb-pop__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--grb-line); }
.grb .grb-pop__sum { font-size: 14px; color: var(--grb-ink); }
.grb .grb-pop__sum b { font-weight: 700; }
.grb .grb-link { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--grb-primary) !important; text-decoration: underline; text-underline-offset: 3px; }
.grb .grb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 22px; border: 1px solid var(--grb-primary) !important; color: var(--grb-primary) !important; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; text-align: center !important; }
.grb .grb-btn:hover { background: var(--grb-primary) !important; color: #fff !important; }
.grb .grb-btn--solid { background: var(--grb-primary) !important; color: #fff !important; }
.grb .grb-btn--solid:hover { background: var(--grb-primary-dark) !important; }

/* Kohde */
.grb .grb-prop { width: 400px; left: 0; }
.grb .grb-prop__list { list-style: none; margin: 0; padding: 6px 10px 12px; }
.grb .grb-opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; width: 100%; padding: 12px; border: 1px solid transparent; }
.grb .grb-opt:hover { background: #FAF8F4; }
.grb .grb-opt[aria-checked="true"] { border-color: var(--grb-primary); background: #FBF9F5; }
.grb .grb-opt[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.grb .grb-radio { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--grb-line-strong); position: relative; }
.grb .grb-opt[aria-checked="true"] .grb-radio { border-color: var(--grb-primary); }
.grb .grb-opt[aria-checked="true"] .grb-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--grb-primary); }
.grb .grb-opt__name { display: block; font-size: 16px; font-weight: 700; color: var(--grb-ink); }
.grb .grb-opt__sub { display: block; margin-top: 2px; font-size: 13px; color: var(--grb-muted); }
.grb .grb-opt__meta { font-size: 12px; color: var(--grb-primary-dark); white-space: nowrap; padding-top: 3px; }
.grb .grb-tag { display: inline-block; margin-top: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--grb-sand); color: var(--grb-primary-dark); }

/* Kalenteri */
.grb .grb-cal { width: 680px; left: 50%; transform: translateX(-50%); }
.grb.grb-float .grb-cal, .grb .grb-bar--inline .grb-cal { left: 12%; transform: none; }
.grb .grb-cal__months { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 6px 22px 16px; }
.grb .grb-cal__nav { position: absolute; top: 2px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--grb-primary); border: 1px solid var(--grb-line); background: #fff; }
.grb .grb-cal__nav:hover:not(:disabled) { border-color: var(--grb-primary); }
.grb .grb-cal__nav:disabled { opacity: .3; cursor: default; }
.grb .grb-cal__nav--prev { left: 22px; } .grb .grb-cal__nav--next { right: 22px; }
.grb .grb-cal__nav svg { width: 14px; height: 14px; }
.grb .grb-month__title { text-align: center; font-family: var(--grb-font-head); font-weight: 500; font-size: 20px; color: var(--grb-ink); height: 38px; line-height: 38px; text-transform: capitalize; }
.grb .grb-month__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.grb .grb-dow { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--grb-muted); padding: 6px 0 8px; }
.grb .grb-day { position: relative; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-variant-numeric: tabular-nums; text-align: center !important; }
.grb .grb-day::before { content: ""; position: absolute; inset: 2px 0; z-index: 0; }
.grb .grb-day > span { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; }
.grb .grb-day:not(:disabled):hover > span { box-shadow: inset 0 0 0 1px var(--grb-primary); }
.grb .grb-day:disabled { color: #BDB5AA; cursor: default; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.15); }
.grb .grb-day.is-today > span::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--grb-gold); }
.grb .grb-day.is-range::before { background: var(--grb-sand); }
.grb .grb-day.is-start::before { left: 50%; background: var(--grb-sand); }
.grb .grb-day.is-end::before { right: 50%; background: var(--grb-sand); }
.grb .grb-day.is-start.is-end::before { display: none; }
.grb .grb-day.is-start > span, .grb .grb-day.is-end > span { background: var(--grb-primary); color: #fff; font-weight: 700; }
.grb .grb-day.is-preview::before { background: #F5F2EC; }
.grb .grb-blank { height: 42px; }
.grb .grb-cal__legend { display: flex; gap: 18px; font-size: 12px; color: var(--grb-muted); }
.grb .grb-cal__legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }

/* Vieraat */
.grb .grb-guests { width: 360px; }
.grb .grb-step { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; }
.grb .grb-step + .grb-step { border-top: 1px solid var(--grb-line); }
.grb .grb-step__name { font-size: 16px; font-weight: 700; display: block; }
.grb .grb-step__sub { font-size: 13px; color: var(--grb-muted); display: block; margin-top: 2px; }
.grb .grb-step__ctrl { display: inline-flex; align-items: center; gap: 4px; }
.grb .grb-step__btn { width: 40px; height: 40px; display: inline-flex !important; align-items: center; justify-content: center; border: 1px solid var(--grb-line-strong) !important; color: var(--grb-primary) !important; text-align: center !important; }
.grb .grb-step__btn:hover:not(:disabled) { border-color: var(--grb-primary) !important; }
.grb .grb-step__btn:disabled { opacity: .35; cursor: not-allowed; }
.grb .grb-step__btn svg { width: 14px; height: 14px; }
.grb .grb-step__val { width: 36px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.grb .grb-cap { margin: 0 22px 14px; padding: 10px 12px; background: var(--grb-sand); font-size: 13px; line-height: 1.45; color: var(--grb-primary-dark); }
.grb .grb-cap.is-limit { background: #F6EEE2; border-left: 3px solid var(--grb-gold); }
.grb .grb-cap a { color: var(--grb-primary); font-weight: 700; }

/* Tarjouskoodi */
.grb .grb-voucher { width: 340px; right: 0; }
.grb.grb-float .grb-voucher, .grb .grb-bar--inline .grb-voucher { right: 160px; }
.grb .grb-field { padding: 6px 22px 4px; }
.grb .grb-field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--grb-primary-dark); margin-bottom: 6px; }
.grb .grb-input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--grb-line-strong); font: inherit; font-size: 16px; letter-spacing: .5px; text-transform: none; color: var(--grb-ink); background: #fff; border-radius: 0; }
.grb .grb-input:focus { outline: none; border-color: var(--grb-primary); box-shadow: 0 0 0 3px rgba(123,97,76,.15); }
.grb .grb-input[aria-invalid="true"] { border-color: var(--grb-error); }
.grb .grb-help { font-size: 12.5px; color: var(--grb-muted); margin: 8px 0 0; line-height: 1.45; }
.grb .grb-help.is-error { color: var(--grb-error); }

/* --------------------------------------------------------------------------
   Mobiili (D, E)
   -------------------------------------------------------------------------- */
.grb.grb-fab { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: var(--grb-z); display: none; align-items: center; gap: 14px; min-height: 58px; padding: 8px 10px 8px 18px; background: var(--grb-primary); color: #fff; box-shadow: 0 10px 28px rgba(47,35,24,.28); transform: translateY(180%); transition: transform .4s var(--grb-ease); }
.grb.grb-fab.is-visible { transform: none; }
.grb.grb-fab svg { width: 20px; height: 20px; flex: none; }
.grb .grb-fab__text { display: flex; flex-direction: column; min-width: 0; }
.grb .grb-fab__title { font-size: 15px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.grb .grb-fab__sum { font-size: 13px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grb .grb-fab__go { margin-left: auto; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); }

.grb-scrim { position: fixed; inset: 0; z-index: calc(var(--grb-z) + 1); background: rgba(31, 26, 22, .45); opacity: 0; transition: opacity .25s; pointer-events: none; }
.grb-scrim.is-open { opacity: 1; pointer-events: auto; }
.grb.grb-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--grb-z) + 2); max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: var(--grb-white); border-radius: 14px 14px 0 0; transform: translateY(105%); transition: transform .38s var(--grb-ease); visibility: hidden; }
.grb.grb-sheet.is-open { transform: none; visibility: visible; }
.grb .grb-sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--grb-line-strong); margin: 8px auto 0; flex: none; }
.grb .grb-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 12px; border-bottom: 1px solid var(--grb-line); flex: none; }
.grb .grb-sheet__title:focus { outline: none; }
.grb .grb-sheet__title { font-family: var(--grb-font-head); font-weight: 500; font-size: 26px; color: var(--grb-primary); margin: 0; }
.grb .grb-sheet__back, .grb .grb-sheet__close { width: 40px; height: 40px; display: inline-flex !important; align-items: center; justify-content: center; color: var(--grb-primary-dark) !important; }
.grb .grb-sheet__back svg, .grb .grb-sheet__close svg { width: 18px; height: 18px; }
.grb .grb-sheet__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.grb .grb-sheet__foot { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--grb-line); background: #fff; }
.grb .grb-sheet__foot .grb-cta { width: 100%; min-height: 54px; }
.grb .grb-sheet__foot .grb-pop__sum { display: block; text-align: center; margin-bottom: 10px; color: var(--grb-muted); font-size: 13px; }

.grb .grb-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-bottom: 1px solid var(--grb-line); }
.grb .grb-row__icon { width: 20px; height: 20px; color: var(--grb-gold); flex: none; }
.grb .grb-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grb .grb-row__label { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--grb-primary-dark); }
.grb .grb-row__value { font-size: 16px; }
.grb .grb-row__value.is-placeholder { color: var(--grb-muted); }
.grb .grb-row__chev { margin-left: auto; width: 14px; height: 14px; color: var(--grb-primary); }
.grb.grb-sheet .grb-step { padding: 14px 18px; }
.grb.grb-sheet .grb-cap { margin: 0 18px 16px; }
.grb.grb-sheet .grb-prop__list { padding: 8px 12px 16px; }
.grb.grb-sheet .grb-field { padding: 14px 18px; }
.grb.grb-sheet .grb-msg { margin: 12px 18px 0; }
.grb .grb-mcal { padding: 0 14px 18px; }
.grb .grb-mcal .grb-dowbar { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(7, 1fr); background: #fff; border-bottom: 1px solid var(--grb-line); }
.grb .grb-mcal .grb-month { padding-top: 6px; }
.grb .grb-mcal .grb-month__title { text-align: left; padding-left: 6px; }
.grb .grb-mcal .grb-day { height: 46px; }
.grb .grb-mcal .grb-day > span { width: 42px; height: 42px; }
.grb .grb-mcal__more { display: block; margin: 8px auto 0; }

/* Esteet ja tilat */
body.grb-mews-open .grb-float, body.grb-mews-open .grb-compact, body.grb-mews-open .grb-fab, body.grb-menu-open .grb-fab { transform: translateY(180%) !important; opacity: 0 !important; pointer-events: none !important; }
body.grb-sheet-open { overflow: hidden; }

/* Breakpoint: teeman header vaihtuu 1024 px kohdalla → sama raja */
@media (max-width: 1023.98px) {
  .grb.grb-float, .grb.grb-compact { display: none !important; }
  .grb.grb-fab { display: flex; }
  .grb.grb-inline .grb-bar__form { grid-template-columns: 1fr 1fr; }
  .grb.grb-inline .grb-seg { border-bottom: 1px solid var(--grb-line); }
  .grb.grb-inline .grb-seg--dates { grid-column: 1 / -1; order: -1; }
  .grb.grb-inline .grb-cta { grid-column: 1 / -1; min-height: 54px; }
  .grb.grb-inline .grb-pop { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .grb .grb-bar__form { grid-template-columns: minmax(130px, 1.15fr) minmax(200px, 1.6fr) minmax(130px, 1.1fr) minmax(110px, .8fr) auto; }
  .grb .grb-seg { padding: 10px 14px; }
  .grb .grb-cta { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .grb *, .grb.grb-float, .grb.grb-compact, .grb.grb-fab, .grb.grb-sheet, .grb-scrim { transition: none !important; animation: none !important; }
}

/* ---- v0.1 lisäykset ---- */
.grb .grb-pop__actions { display: flex; gap: 18px; align-items: center; }
.grb .grb-cta.is-busy { opacity: .75; cursor: progress; }
.grb .grb-cta.is-busy svg { animation: grb-pulse 1s infinite alternate; }
@keyframes grb-pulse { from { transform: translateX(0); } to { transform: translateX(4px); } }
.grb-inline-slot { max-width: 1344px; margin: 0 auto; }
.grb-nojs { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; padding: 16px; background: #fff; border: 1px solid #CFC4B3; font-family: Lato, sans-serif; }
.grb-nojs label { display: flex; flex-direction: column; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #6F533C; gap: 4px; }
.grb-nojs input, .grb-nojs select { height: 42px; padding: 0 10px; border: 1px solid #CFC4B3; font-size: 15px; }
.grb-nojs button { height: 42px; padding: 0 22px; background: #7B614C; color: #fff; border: 0; text-transform: uppercase; letter-spacing: 1px; }
[inert] .grb-seg, [inert] button { pointer-events: none; }

/* ---- v0.1.1: kohteen valintapaneeli desktopilla (kun palkki ei ole näkyvissä) ---- */
@media (min-width: 1024px) {
  .grb.grb-sheet { left: 50%; right: auto; width: 480px; border-radius: 0; transform: translate(-50%, 105%); box-shadow: var(--grb-shadow); }
  .grb.grb-sheet.is-open { transform: translate(-50%, 0); }
}

/* ---- v0.1.4: etusivun inline-palkki teeman kapeassa sisältösarakkeessa (is-layout-constrained) ----
   Desktopilla palkki levitetään sisältösarakkeesta riippumatta leveäksi (enint. 1344 px) ja keskitetään
   vanhemman keskikohtaan. Ei riipu teeman alignwide-tuesta. Mobiili ennallaan. */
@media (min-width: 1024px) {
  .grb-inline-slot[data-grb-inline], .grb.grb-inline[data-grb-inline] {
    box-sizing: border-box; position: relative; left: 50%; transform: translateX(-50%);
    width: min(1344px, calc(100vw - 64px)) !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;
  }
}

/* ---- v0.1.5: inline-palkin valintapaneelien tasojärjestys ----
   Syy: v0.1.4:n leveysratkaisu (position: relative + transform) muodostaa inline-palkille oman tasojärjestyksen
   (stacking context) tasolle 0. Paneelin z-index (5) vaikuttaa vain sen sisällä, ja myöhemmin DOM:ssa tulevat
   sijoitetut sisältöelementit (esim. kampanjanosto, kuvat, z-index ≥ 1) piirtyvät päälle.
   Korjaus: paneelin ollessa auki inline-palkki nostetaan sisällön yläpuolelle (alle kelluvan palkin 9990,
   evästebannerin 99999 ja Mewsin varausikkunan 100000). Suljettuna ennallaan → navigaatio ja mobiilivalikko ennallaan. */
.grb-inline-slot[data-grb-inline].grb-pop-open, .grb.grb-inline[data-grb-inline].grb-pop-open { position: relative; z-index: 9989 !important; }

/* ---- v0.1.7: Complianzin "Evästeasetukset"-painike mobiilissa ----
   Complianz: #cmplz-manage-consent .cmplz-manage-consent { position: fixed; bottom: var(--cmplz-manage-consent-offset);
   right: 40px; z-index: 9998; animation: mc_slideIn/mc_slideOut (bottom) }. Animaatio ohittaa tavalliset arvot,
   joten nosto käyttää !important-arvoja ja vain, kun JS on asettanut luokan (mobiili + varauspainike näkyvissä).
   Banneriin (.cmplz-cookiebanner) ei kosketa. */
@media (max-width: 1023.98px) {
  html.grb-cmplz-lift #cmplz-manage-consent .cmplz-manage-consent { bottom: var(--grb-cmplz-bottom, 78px) !important; animation: none !important; transition: bottom .3s var(--grb-ease); }
  /* Varauspaneeli auki: painike paneelin ja taustan alle, jotta paneelin toiminnot (esim. Valmis) eivät peity. */
  body.grb-sheet-open #cmplz-manage-consent .cmplz-manage-consent { z-index: calc(var(--grb-z) - 1) !important; }
}
@media (max-width: 1023.98px) and (prefers-reduced-motion: reduce) {
  html.grb-cmplz-lift #cmplz-manage-consent .cmplz-manage-consent { transition: none !important; }
}
