/* Viewport UI stays outside ScrollSmoother's transformed content. */
html.is-intro-loading, html.is-intro-loading body,
html.is-cookie-dialog-open, html.is-cookie-dialog-open body { overflow: hidden !important; }
.cookie-banner, .cookie-dialog { font-family: Vazirmatn, Arial, sans-serif; font-weight: 300; text-align: start; }
.cookie-dialog { background: #f4f4ea; color: #000; }
.cookie-banner[hidden] { display: none; }
.cookie-banner { position: fixed; left: max(24px, env(safe-area-inset-left)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 800; display: flex; flex-direction: column; width: 480px; max-width: calc(100vw - 48px); aspect-ratio: 5 / 4; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 32px; border: 0; border-radius: 0; box-shadow: none; background: #071d38; color: #fff; }
.cookie-banner h2 { font-size: 30px; line-height: 1.2; font-weight: 500; margin: 0 0 16px; }
.cookie-banner p { max-width: 36ch; font-size: 16px; line-height: 1.5; color: #fff; margin: 0 0 auto; }
.cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1px solid #000; border-radius: 0; background: #000; color: #fff; padding: 12px 14px; font-size: 14px; font-weight: 500; line-height: 1.2; text-align: center; transition: background-color .18s, color .18s, border-color .18s; }
.cookie-button:hover { background: #753323; border-color: #753323; }
.cookie-button-outline { background: transparent; color: #000; }
.cookie-button-outline:hover { background: #b9bdaf; border-color: #000; }
.cookie-banner .cookie-button { min-height: 48px; padding: 14px 16px; font-weight: 400; border-color: #f4f4ea; background: #f4f4ea; color: #071d38; }
.cookie-banner .cookie-button:hover { border-color: #fff; background: #fff; }
.cookie-banner .cookie-button-outline { background: transparent; color: #fff; }
.cookie-banner .cookie-button-outline:hover { background: #ffffff24; border-color: #fff; }
.cookie-banner-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.cookie-text-button, .cookie-policy { color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: 7px 0 4px; font-size: 13px; font-weight: 400; line-height: 1.4; text-decoration: none; }
.cookie-text-button:hover, .cookie-policy:hover { color: #753323; }
.cookie-banner .cookie-text-button:hover, .cookie-banner .cookie-policy:hover { color: #d8d8d0; }
.cookie-dialog { width: min(680px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 0; overscroll-behavior: contain; box-shadow: 0 24px 100px #0004; }
.cookie-dialog::backdrop { background: #0009; }
.cookie-dialog-inner { padding: 40px; }
.cookie-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.cookie-dialog h2 { font-size: 38px; line-height: 1.12; font-weight: 500; letter-spacing: -.02em; }
.cookie-dialog h2:focus { outline: 0; }
.cookie-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 0 0; border: 1px solid #b9bdaf; border-radius: 0; background: transparent; color: #000; transition: background-color .18s; }
.cookie-close svg { width: 20px; height: 20px; }
.cookie-close:hover { background: #b9bdaf; }
.cookie-dialog-intro { font-size: 15px; line-height: 1.6; color: #41413a; margin-bottom: 28px; max-width: 54ch; }
.cookie-category { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; border-top: 1px solid #b9bdaf; padding: 22px 0; }
.cookie-category h3 { font-size: 19px; line-height: 1.3; font-weight: 500; margin: 0 0 8px; }
.cookie-category p { max-width: 44ch; font-size: 14px; line-height: 1.6; color: #41413a; margin: 0; }
.cookie-essential-state { color: #753323; font-size: 13px; line-height: 1.5; white-space: nowrap; padding-top: 3px; }
.cookie-essential-state::before { content: ''; display: inline-block; width: 6px; height: 6px; background: currentColor; margin-inline-end: 8px; vertical-align: 2px; }
.cookie-switch { display: grid; justify-items: center; gap: 5px; cursor: pointer; min-width: 54px; min-height: 48px; padding: 0; }
.cookie-switch input { appearance: none; position: relative; width: 48px; height: 28px; margin: 0; border: 1px solid #696c60; border-radius: 0; background: transparent; cursor: pointer; transition: background-color .18s, border-color .18s; }
.cookie-switch input::after { content: ''; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; background: #696c60; transition: transform .2s, background-color .18s; }
.cookie-switch input:checked { background: #753323; border-color: #753323; }
.cookie-switch input:checked::after { transform: translateX(20px); background: #f4f4ea; }
html[dir='rtl'] .cookie-switch input::after { left: auto; right: 4px; }
html[dir='rtl'] .cookie-switch input:checked::after { transform: translateX(-20px); }
.cookie-switch span { font-size: 12px; line-height: 1.4; color: #41413a; }
.cookie-tools-note { font-size: 12px; color: #53554b; line-height: 1.5; border-top: 1px solid #b9bdaf; padding-top: 16px; margin: 0 0 24px; }
.cookie-dialog-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cookie-dialog-policy { display: block; width: fit-content; margin-top: 20px; }
.cookie-banner :focus-visible, .cookie-dialog :focus-visible { outline: 2px solid #753323; outline-offset: 4px; }
.cookie-banner :focus-visible { outline-color: #f4f3dc; }
.footer-cookie-button { display: block; width: fit-content; text-align: inherit; text-transform: inherit; padding: 0; border: 0; border-radius: 0; color: inherit; background: transparent; font: inherit; line-height: inherit; }
.footer-cookie-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.visit-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[dir='rtl'] .cookie-banner h2 { line-height: 1.45; }
html[dir='rtl'] .cookie-dialog h2 { line-height: 1.35; letter-spacing: 0; }
html[dir='rtl'] .cookie-close { margin: -8px 0 0 -8px; }
@media (max-width: 600px) {
  .cookie-banner { left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); width: auto; right: max(16px, env(safe-area-inset-right)); max-width: none; aspect-ratio: auto; min-height: min(380px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); padding: 24px; }
  .cookie-banner h2 { font-size: 26px; }
  .cookie-banner p { margin-bottom: 24px; }
  .cookie-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .cookie-dialog-inner { padding: 24px; }
  .cookie-dialog h2 { font-size: 30px; }
  .cookie-category { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 20px 0; }
  .cookie-category > div { display: contents; }
  .cookie-category h3 { grid-column: 1; grid-row: 1; align-self: center; font-size: 18px; margin: 0; }
  .cookie-category p { grid-column: 1 / -1; grid-row: 2; }
  .cookie-category > .cookie-switch, .cookie-category > .cookie-essential-state { grid-column: 2; grid-row: 1; }
  .cookie-essential-state { font-size: 12px; }
  .cookie-dialog-actions { grid-template-columns: 1fr 1fr; }
  .cookie-dialog-actions [data-consent-save] { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 360px) {
  .cookie-banner { padding: 20px; }
  .cookie-banner-actions { grid-template-columns: 1fr; gap: 8px; }
  .cookie-dialog-inner { padding: 20px; }
  .cookie-dialog h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner *, .cookie-dialog *, .cookie-banner, .cookie-dialog { transition: none !important; }
}
