/* Ghia Line cookie consent: banner, settings panel, footer links, policy page */

/* ---------- banner + panel ---------- */
.gl-root, .gl-root * { box-sizing: border-box; }
.gl-root {
  font-family: 'Ghia Montserrat Local', Montserrat, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 15px; line-height: 1.5; color: #102c40;
}
.gl-root [hidden] { display: none !important; }
html.gl-lock { overflow: hidden; }

.gl-banner {
  position: fixed; z-index: 100000; left: 16px; right: 16px; bottom: 16px;
  max-width: 1040px; margin: 0 auto; padding: 20px 22px;
  display: flex; gap: 22px; align-items: center;
  background: #fff; border: 1px solid rgba(10, 57, 88, .18); border-radius: 18px;
  box-shadow: 0 18px 55px rgba(10, 39, 61, .24);
}
.gl-banner p, .gl-modal p { margin: 0; }
.gl-title { margin: 0 0 4px !important; font-weight: 700; font-size: 16px; color: #0a3958; }
.gl-banner a, .gl-modal a { color: #0a3958; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.gl-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* One button style for Reject, Settings, Accept and Save: no option is visually favoured. */
.gl-btn {
  font: inherit; font-weight: 700; font-size: 14px; line-height: 1.2;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid #0a3958; background: #fff; color: #0a3958;
  cursor: pointer; white-space: nowrap;
}
.gl-btn:hover { background: #0a3958; color: #fff; }
.gl-btn:focus-visible, .gl-fab:focus-visible, .gl-close:focus-visible,
.gl-linkbtn:focus-visible, .gl-banner a:focus-visible, .gl-modal a:focus-visible {
  outline: 3px solid #ed7425; outline-offset: 2px;
}

.gl-overlay {
  position: fixed; inset: 0; z-index: 100001; padding: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 39, 61, .55);
}
.gl-modal {
  position: relative; width: 100%; max-width: 580px; max-height: 92vh; overflow: auto;
  padding: 28px 26px 24px; background: #fff; border-radius: 20px;
  box-shadow: 0 24px 70px rgba(10, 39, 61, .35);
}
.gl-modal h2 { margin: 0 36px 10px 0; font-size: 22px; line-height: 1.25; color: #0a3958; }
.gl-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  font: inherit; font-size: 26px; line-height: 1; color: #0a3958;
  background: #f6f7f8; border: 0; border-radius: 50%; cursor: pointer;
}
.gl-cat { margin-top: 14px; padding: 14px 16px; background: #f6f7f8; border-radius: 14px; }
.gl-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.gl-cat-name { font-weight: 700; color: #0a3958; }
.gl-always { font-size: 13px; font-weight: 600; color: #526774; }
.gl-cat p { font-size: 14px; color: #3d5361; }
.gl-meta { margin-top: 14px !important; font-size: 12.5px; color: #526774; word-break: break-all; }
.gl-meta:empty { display: none; }
.gl-actions-modal { margin-top: 20px; justify-content: flex-end; flex-wrap: wrap; }

/* switch */
.gl-switch { position: relative; display: inline-block; width: 52px; height: 30px; flex-shrink: 0; }
.gl-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.gl-slider { position: absolute; inset: 0; border-radius: 999px; background: #aab6bd; transition: background .15s; }
.gl-slider::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; transition: transform .15s;
}
.gl-switch input:checked + .gl-slider { background: #0a3958; }
.gl-switch input:checked + .gl-slider::before { transform: translateX(22px); }
.gl-switch input:focus-visible + .gl-slider { outline: 3px solid #ed7425; outline-offset: 2px; }

/* floating button: change or withdraw consent at any time */
.gl-fab {
  position: fixed; z-index: 99990; left: 16px; bottom: 16px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; padding: 0;
  color: #fff; background: #0a3958; border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 6px 20px rgba(10, 39, 61, .35); cursor: pointer;
}
.gl-fab:hover { background: #ed7425; }

@media (max-width: 760px) {
  .gl-banner { flex-direction: column; align-items: stretch; gap: 14px; left: 10px; right: 10px; bottom: 10px; padding: 16px; max-height: 88vh; overflow: auto; }
  .gl-actions { flex-direction: column; }
  .gl-btn { width: 100%; }
  .gl-modal { padding: 24px 18px 18px; }
  .gl-actions-modal { justify-content: stretch; }
}
@media print { .gl-root { display: none !important; } }

/* ---------- footer links ---------- */
.gl-footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 0 18px; }
.gl-footer-links--solo { display: flex; justify-content: center; margin: 14px 0 0; }
.gl-footer-links a, .gl-linkbtn {
  color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.gl-footer-links a:hover, .gl-linkbtn:hover { opacity: .8; }

/* ---------- cookie policy page ---------- */
.gl-policy-head { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.gl-policy { max-width: 920px; margin: 0 auto; padding: 6px 24px 80px; color: #102c40; font-size: 16px; line-height: 1.75; }
.gl-policy h2 { margin: 46px 0 12px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; color: #0a3958; }
.gl-policy h3 { margin: 28px 0 8px; font-size: 18px; color: #0a3958; }
.gl-policy p { margin: 0 0 14px; }
.gl-policy ul { margin: 0 0 14px; padding-left: 22px; }
.gl-policy li { margin-bottom: 6px; }
.gl-policy a { color: #0a3958; text-underline-offset: 3px; }
.gl-updated { color: #526774; font-size: 14px; }
.gl-status-box { margin: 18px 0 8px; padding: 20px 22px; background: #f6f7f8; border: 1px solid rgba(10, 57, 88, .11); border-radius: 18px; }
.gl-status-box p { margin: 0 0 14px; }
.gl-status-label { font-weight: 700; color: #0a3958; }
.gl-status-box .gl-meta { margin: 0 0 14px !important; }
.gl-table-wrap { margin: 8px 0 22px; overflow-x: auto; border: 1px solid rgba(10, 57, 88, .14); border-radius: 14px; }
.gl-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.gl-table th, .gl-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(10, 57, 88, .11); }
.gl-table th { background: #f6f7f8; color: #0a3958; font-weight: 700; }
.gl-table tr:last-child td { border-bottom: 0; }
.gl-table code { font-size: 13.5px; background: #eef2f4; padding: 1px 6px; border-radius: 6px; }
