/*
 * RoofScope cookie consent (MAR-618): the consent panel and the Cookie Notice page, from the approved prototype.
 * Every rule is scoped to .cookie-panel or .cookie-notice-page so nothing here changes the rest of the site
 * (Bootstrap and mytheme). Rajdhani and Roboto are already loaded by the site header.
 */
.cookie-panel,
.cookie-notice-page {
  --cc-brand: #ed1c24;
  --cc-action: #bf1620;
  --cc-ink: #3f3f41;
  --cc-body: #4b5158;
  --cc-muted: #606770;
  --cc-line: #d7dce0;
  --cc-surface: #f4f5f6;
  --cc-track: #68717a;
  --cc-radius: 8px;
  --cc-rise-ease: cubic-bezier(0, 0, .58, 1);
  --cc-panel-inset: 24px;
  color-scheme: light;
}
.cookie-panel,
.cookie-notice-page,
.cookie-panel *,
.cookie-panel *::before,
.cookie-panel *::after,
.cookie-notice-page *,
.cookie-notice-page *::before,
.cookie-notice-page *::after { box-sizing: border-box; }
.cookie-panel[hidden],
.cookie-panel [hidden],
.cookie-notice-page [hidden] { display: none !important; }
.cookie-panel h2, .cookie-panel h3, .cookie-panel p,
.cookie-notice-page h1, .cookie-notice-page h2, .cookie-notice-page h3, .cookie-notice-page p { margin: 0; }
.cookie-panel button,
.cookie-notice-page button { font: inherit; color: inherit; border: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cookie-panel button:disabled { cursor: default; }
.cookie-panel a,
.cookie-notice-page a { color: inherit; text-underline-offset: 2px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cookie-panel button:focus-visible,
.cookie-panel a:focus-visible,
.cookie-notice-page button:focus-visible,
.cookie-notice-page a:focus-visible { outline: 3px solid #005c8a; outline-offset: 3px; }
.cookie-panel .visually-hidden,
.cookie-notice-page .visually-hidden,
.cookie-status { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.cookie-panel .button,
.cookie-notice-page .cc-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--cc-action); border-radius: var(--cc-radius); background: var(--cc-action); color: #fff; font: 600 16px/20px Rajdhani, Arial, sans-serif; text-align: center; text-decoration: none; transition: background-color 140ms ease, border-color 140ms ease; white-space: normal; }
.cookie-panel .button:hover,
.cookie-notice-page .cc-button:hover { background: #a4111a; border-color: #a4111a; color: #fff; }
.cookie-panel .button:active,
.cookie-notice-page .cc-button:active { background: #8d1017; }

/* One fixed card; its motion changes neither document layout nor scroll position. No scrim, no focus trap. */
.cookie-panel { position: fixed; z-index: 1060; left: max(var(--cc-panel-inset), env(safe-area-inset-left)); bottom: max(var(--cc-panel-inset), env(safe-area-inset-bottom)); width: 448px; max-width: calc(100vw - var(--cc-panel-inset) * 2); max-height: calc(100vh - var(--cc-panel-inset) * 2); max-height: calc(100dvh - max(var(--cc-panel-inset), env(safe-area-inset-bottom)) - max(var(--cc-panel-inset), env(safe-area-inset-top))); background: #fff; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); box-shadow: 0 8px 24px rgba(31, 36, 41, .16); color: var(--cc-body); font: 400 14px/1.5 Roboto, Arial, sans-serif; text-align: left; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.cookie-panel h2 { font: 600 24px/28px Rajdhani, Arial, sans-serif; color: var(--cc-ink); padding-right: 28px; outline: none; }
.cookie-panel .corner-close { position: absolute; right: -1px; top: -1px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: var(--cc-line); border-radius: 0 8px 0 14px; transition: background-color 140ms; }
.cookie-panel .corner-close img { display: block; }
.cookie-panel .corner-close:hover { background: #c5cdd3; }
.cookie-panel .corner-close:focus-visible { outline-offset: -4px; }
.cookie-panel .notice-view { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; overflow: auto; overscroll-behavior: contain; }
.cookie-panel .notice-copy { font-size: 14px; line-height: 20px; }
.cookie-panel .notice-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cookie-panel .notice-actions .button { width: 200px; flex: 0 1 200px; }
.cookie-panel .policy-link { color: var(--cc-muted); font-size: 13px; line-height: 18px; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.cookie-panel .notice-actions .policy-link { flex-shrink: 0; }
.cookie-panel .preferences-view { display: flex; flex-direction: column; min-height: 0; max-height: 578px; padding: 16px 18px 16px 20px; }
.cookie-panel .preferences-header { flex-shrink: 0; padding-right: 2px; }
.cookie-panel .preferences-intro { font-size: 14px; line-height: 20px; margin-top: 8px; }
.cookie-panel .inline-link { background: transparent; padding: 0 0 0 3px; font: 400 13px/20px Roboto, Arial, sans-serif; text-decoration: underline; text-underline-offset: 2px; color: var(--cc-muted); position: relative; vertical-align: baseline; white-space: nowrap; }
.cookie-panel .inline-link::after { content: ""; position: absolute; inset: -12px -1px; }
.cookie-panel .preferences-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; margin-top: 12px; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #c5cbd0 transparent; scroll-padding-block: 8px; }
.cookie-panel .cookie-information { font-size: 13px; line-height: 20px; padding: 0 0 8px; }
.cookie-panel .cookie-information p + p { margin-top: 12px; }
.cookie-panel .cookie-information .policy-link { margin-top: 4px; }
.cookie-panel .gpc-notice { padding: 10px 12px; margin-bottom: 8px; background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: 4px; font-size: 12px; line-height: 18px; }
.cookie-panel .cookie-category { position: relative; padding: 8px 0; border-bottom: 1px solid var(--cc-line); }
.cookie-panel .cookie-category:first-child { padding-top: 8px; }
.cookie-panel .category-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.cookie-panel .category-heading h3 { font: 600 20px/24px Rajdhani, Arial, sans-serif; color: var(--cc-ink); min-width: 0; }
.cookie-panel .category-expand { display: none; }
.cookie-panel .always-active { font-size: 13px; line-height: 20px; color: var(--cc-muted); white-space: nowrap; }
.cookie-panel .category-summary { font-size: 13px; line-height: 20px; margin-top: 4px; }
.cookie-panel .category-description { font-size: 13px; line-height: 20px; margin: 0 0 8px; }
.cookie-panel .cookie-toggle { position: absolute; right: 0; top: 10px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; width: 88px; height: 44px; background: transparent; padding: 0 12px 0 0; border-radius: 6px; flex: none; color: var(--cc-body); }
.cookie-panel .category-heading:has(.cookie-toggle) h3 { padding-right: 76px; }
.cookie-panel .switch-label { font: 400 13px/20px Roboto, Arial, sans-serif; min-width: 18px; text-align: right; }
.cookie-panel .switch-track { display: block; width: 40px; height: 24px; flex: none; border-radius: 20px; background: var(--cc-track); padding: 3px; transition: background-color 160ms; }
.cookie-panel .switch-track span { display: block; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform 160ms var(--cc-rise-ease); box-shadow: 0 1px 2px #0000000d; }
.cookie-panel .cookie-toggle[aria-checked=true] .switch-track { background: var(--cc-action); }
.cookie-panel .cookie-toggle[aria-checked=true] .switch-track span { transform: translateX(16px); }
.cookie-panel .cookie-toggle:disabled { opacity: .6; }
.cookie-panel .cookie-toggle:focus-visible,
.cookie-panel .category-expand:focus-visible { outline-offset: -3px; }
.cookie-panel .preferences-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px 2px 0 0; }
.cookie-panel .save-button { width: 100%; }
.cookie-panel .choice-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.cookie-panel .reject-button { background: var(--cc-muted); border-color: var(--cc-muted); }
.cookie-panel .reject-button:hover { background: #50565e; border-color: #50565e; }
.cookie-panel .withdraw-note { font-size: 13px; line-height: 20px; color: var(--cc-muted); }

@media (max-width: 600px) {
  .cookie-panel { --cc-panel-inset: 16px; width: 343px; max-width: calc(100vw - 32px); }
  .cookie-panel .notice-view { padding: 16px; }
  .cookie-panel .preferences-view { padding: 12px 14px 12px 16px; max-height: 482px; }
  .cookie-panel .preferences-header h2 { padding-right: 28px; }
  .cookie-panel .preferences-body { margin-top: 12px; }
  .cookie-panel .cookie-category,
  .cookie-panel .cookie-category:first-child { padding: 4px 0; }
  .cookie-panel .category-heading { min-height: 44px; gap: 0; align-items: flex-start; }
  .cookie-panel .category-heading h3 { font-size: 18px; line-height: 22px; flex: 1; }
  .cookie-panel .category-heading:has(.cookie-toggle) h3 { padding-right: 0; }
  .cookie-panel .desktop-category-title,
  .cookie-panel .category-summary { display: none; }
  .cookie-panel .category-expand { display: flex; align-items: center; text-align: left; gap: 8px; width: 100%; min-height: 44px; background: transparent; padding: 7px 0; font: 600 18px/22px Rajdhani, Arial, sans-serif; }
  .cookie-panel .chevron { flex: none; width: 12px; height: 16px; position: relative; font-size: 0; transition: transform 160ms var(--cc-rise-ease); }
  .cookie-panel .chevron::before { content: ""; position: absolute; inset: 0; background: url("../image/cookie-consent/category-chevron.svg") center / contain no-repeat; }
  .cookie-panel .category-expand[aria-expanded=true] .chevron { transform: rotate(90deg); }
  .cookie-panel .always-active { padding: 12px 8px 12px 4px; font-size: 13px; }
  .cookie-panel .cookie-toggle { position: static; right: auto; top: auto; padding: 0 10px 0 0; width: 80px; height: 44px; gap: 8px; }
  .cookie-panel .category-description { margin: 0 0 8px; }
  .cookie-panel .withdraw-note { display: none; }
}
@media (max-width: 359px) {
  .cookie-panel h2 { font-size: 22px; line-height: 26px; }
  .cookie-panel .notice-actions { gap: 12px; }
  .cookie-panel .notice-actions .button { width: auto; flex: 1; padding: 10px 8px; }
  .cookie-panel .notice-actions .policy-link { font-size: 12px; }
  .cookie-panel .preferences-intro { font-size: 13px; }
  .cookie-panel .inline-link { font-size: 12px; }
  .cookie-panel .category-heading h3,
  .cookie-panel .category-expand { font-size: 17px; line-height: 20px; }
  .cookie-panel .cookie-toggle { width: 68px; padding-right: 2px; gap: 5px; }
  .cookie-panel .always-active { font-size: 12px; padding-right: 2px; }
  .cookie-panel .choice-pair .button { padding: 10px 6px; font-size: 15px; }
}
@media (max-height: 420px) {
  .cookie-panel .preferences-view { padding-top: 10px; padding-bottom: 10px; }
  .cookie-panel .preferences-intro { margin-top: 4px; }
  .cookie-panel .preferences-body { margin-top: 6px; }
  .cookie-panel .withdraw-note { display: none; }
  .cookie-panel .preferences-actions { gap: 6px; padding-top: 6px; }
}

/* ---------------------------------------------------------------- Cookie Notice page */
.cookie-notice-page { color: var(--cc-body); font: 400 16px/26px Roboto, Arial, sans-serif; text-align: left; }
.cookie-notice-page .policy-masthead { background: var(--cc-surface); padding: 48px 32px; }
.cookie-notice-page .policy-masthead-inner { max-width: 1120px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: 16px 32px; }
.cookie-notice-page .policy-masthead h1 { font: 600 48px/54px Rajdhani, Arial, sans-serif; color: var(--cc-ink); }
.cookie-notice-page .policy-intro { grid-column: 1 / -1; max-width: 800px; font: 400 16px/26px Roboto, Arial, sans-serif; color: var(--cc-body); }
.cookie-notice-page .policy-preferences { grid-column: 2; grid-row: 1; }
.cookie-notice-page .policy-layout { display: grid; grid-template-columns: 224px minmax(0, 744px); gap: 56px; max-width: 1088px; padding: 48px 32px 64px; margin: auto; align-items: start; }
.cookie-notice-page .policy-toc { position: sticky; top: calc(var(--cc-header-offset, 0px) + 24px); }
.cookie-notice-page .policy-toc h2 { font: 600 20px/26px Rajdhani, Arial, sans-serif; margin-bottom: 4px; color: var(--cc-ink); }
.cookie-notice-page .policy-toc ul { display: flex; flex-direction: column; gap: 4px; list-style: none; margin: 0; padding: 0; }
.cookie-notice-page .policy-toc a { display: block; padding: 10px 12px; border-radius: var(--cc-radius); font: 400 16px/24px Roboto, Arial, sans-serif; text-decoration: none; color: var(--cc-body); }
.cookie-notice-page .policy-toc a:hover { background: var(--cc-surface); }
.cookie-notice-page .policy-toc a[aria-current=location] { background: var(--cc-surface); color: var(--cc-action); }
.cookie-notice-page .policy-toc-toggle { display: none; }
.cookie-notice-page .policy-article { min-width: 0; display: flex; flex-direction: column; gap: 32px; color: var(--cc-body); font: 400 16px/26px Roboto, Arial, sans-serif; }
.cookie-notice-page .policy-section,
.cookie-notice-page .policy-category { scroll-margin-top: calc(var(--cc-header-offset, 0px) + 16px); }
.cookie-notice-page .policy-section h2 { font: 600 28px/34px Rajdhani, Arial, sans-serif; color: var(--cc-ink); margin-bottom: 12px; }
.cookie-notice-page .policy-category { margin-top: 24px; }
.cookie-notice-page .policy-category h3 { font: 600 24px/28px Rajdhani, Arial, sans-serif; color: var(--cc-ink); margin-bottom: 12px; }
.cookie-notice-page .policy-article p + p,
.cookie-notice-page .policy-article ul + p { margin-top: 12px; }
.cookie-notice-page .policy-article ul:not(.browser-links) { margin: 12px 0 0; padding-left: 22px; }
.cookie-notice-page .policy-article li + li { margin-top: 8px; }
.cookie-notice-page .policy-inline-link { color: inherit; white-space: normal; text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice-page .policy-inline-link:hover { color: var(--cc-action); }
.cookie-notice-page .policy-article .browser-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0; padding: 0; }
.cookie-notice-page .browser-links li { flex: 1 1 0; min-width: 0; margin: 0 !important; }
.cookie-notice-page .browser-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); background: #fff; color: var(--cc-ink); font: 600 15px/20px Rajdhani, Arial, sans-serif; text-decoration: none; white-space: nowrap; transition: background-color 140ms, border-color 140ms; }
.cookie-notice-page .browser-link img { width: 20px; height: 20px; flex: none; object-fit: contain; }
.cookie-notice-page .browser-link:hover { background: var(--cc-surface); border-color: #aeb7c0; color: var(--cc-ink); }
@media (max-width: 1100px) {
  .cookie-notice-page .policy-layout { gap: 32px; grid-template-columns: 200px minmax(0, 1fr); }
  .cookie-notice-page .browser-links li { flex: 0 1 calc((100% - 16px) / 3); }
}
@media (max-width: 900px) {
  .cookie-notice-page .policy-masthead { padding: 28px 24px; }
  .cookie-notice-page .policy-masthead-inner { display: flex; flex-direction: column; align-items: stretch; gap: 20px; max-width: 680px; }
  .cookie-notice-page .policy-masthead h1 { font-size: 38px; line-height: 44px; }
  .cookie-notice-page .policy-intro { line-height: 25px; }
  .cookie-notice-page .policy-preferences { order: 2; width: 100%; }
  .cookie-notice-page .policy-layout { display: flex; flex-direction: column; gap: 28px; padding: 24px 24px 40px; max-width: 728px; }
  .cookie-notice-page .policy-toc { position: static; width: 100%; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); }
  .cookie-notice-page .policy-toc h2 { padding: 12px; margin: 0; }
  .cookie-notice-page .policy-toc-toggle { display: flex; width: 100%; min-height: 48px; padding: 12px; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: var(--cc-radius); font: 600 16px/24px Rajdhani, Arial, sans-serif; text-align: left; }
  .cookie-notice-page .policy-toc-toggle img { flex: none; transition: transform 160ms ease; }
  .cookie-notice-page .policy-toc-toggle[aria-expanded=true] img { transform: rotate(180deg); }
  .cookie-notice-page .policy-toc.js h2,
  .cookie-notice-page .policy-toc.js:not(.is-open) ul { display: none; }
  .cookie-notice-page .policy-toc ul { padding: 0 8px 8px; }
  .cookie-notice-page .policy-article { width: 100%; line-height: 25px; }
  .cookie-notice-page .policy-section h2 { font-size: 24px; line-height: 30px; }
  .cookie-notice-page .policy-category h3 { font-size: 22px; line-height: 28px; }
}
@media (max-width: 600px) {
  .cookie-notice-page .browser-links li { flex: 0 1 calc((100% - 8px) / 2); }
}
@media (max-width: 359px) {
  .cookie-notice-page .browser-link { font-size: 14px; gap: 6px; padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-panel *,
  .cookie-panel *::before,
  .cookie-panel *::after,
  .cookie-notice-page .browser-link,
  .cookie-notice-page .policy-toc-toggle img { transition: none !important; animation: none !important; }
}
