/* Cookie banner + dialog. Brand: Oswald labels, Arimo body, dark blue #0D6CA6. */
#tmg-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: #0D6CA6; color: #ffffff; font-family: Arimo, Helvetica, Arial, sans-serif;
  box-shadow: 0 -6px 24px rgba(0,0,0,.18);
}
#tmg-banner .tmg-wrap {
  max-width: 1280px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px;
}
#tmg-banner .tmg-text { flex: 1 1 360px; margin: 0; font-size: 15px; line-height: 1.55; }
#tmg-banner .tmg-text a { color: #ffffff; text-decoration: underline; }
#tmg-banner .tmg-text span { display: block; opacity: .9; }
html.tmg-open body { padding-bottom: var(--tmg-h, 0px); }

.tmg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tmg-btn {
  font-family: Oswald, sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  min-height: 44px; padding: 10px 20px; border-radius: 2px;
  background: #ffffff; color: #0D6CA6; border: 2px solid #ffffff;
}
.tmg-btn:hover { background: #F7F4F0; }
.tmg-btn:focus-visible, .tmg-x:focus-visible, .tmg-switch input:focus-visible + .tmg-slider {
  outline: 3px solid #C4788A; outline-offset: 2px;
}

#tmg-dialog {
  border: 0; padding: 0; max-width: min(560px, calc(100vw - 32px)); width: 100%;
  border-radius: 6px; background: #F7F4F0; color: #1B1B1F;
  font-family: Arimo, Helvetica, Arial, sans-serif;
}
#tmg-dialog::backdrop { background: rgba(13,40,60,.55); }
#tmg-dialog .tmg-panel { position: relative; padding: clamp(22px, 4vw, 36px); }
#tmg-dialog h2 { margin: 0 0 10px; font-family: Oswald, sans-serif; font-weight: 500; font-size: 28px; letter-spacing: .02em; }
#tmg-dialog .tmg-lede { margin: 0 0 18px; font-size: 15px; line-height: 1.6; }
#tmg-dialog .tmg-x {
  position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0;
  background: transparent; font-size: 30px; line-height: 1; color: #1B1B1F; cursor: pointer;
}
#tmg-dialog .tmg-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 0; border-top: 1px solid rgba(27,27,31,.14);
}
#tmg-dialog .tmg-row strong { display: block; font-family: Oswald, sans-serif; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; margin-bottom: 4px; }
#tmg-dialog .tmg-row span { font-size: 14px; line-height: 1.5; color: rgba(27,27,31,.78); }
#tmg-dialog .tmg-actions { margin-top: 18px; }
#tmg-dialog .tmg-btn { background: #0D6CA6; color: #ffffff; border-color: #0D6CA6; }
#tmg-dialog .tmg-btn:hover { background: #0a5584; border-color: #0a5584; }
#tmg-dialog .tmg-foot { margin: 16px 0 0; font-size: 14px; }
#tmg-dialog .tmg-foot a { color: #7B2D42; }

.tmg-switch { position: relative; flex: 0 0 auto; width: 52px; height: 30px; display: inline-block; }
.tmg-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tmg-switch input:disabled { cursor: not-allowed; }
.tmg-slider { position: absolute; inset: 0; border-radius: 30px; background: #9a9aa0; transition: background .2s; pointer-events: none; }
.tmg-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tmg-switch input:checked + .tmg-slider { background: #0D6CA6; }
.tmg-switch input:checked + .tmg-slider::after { transform: translateX(22px); }
.tmg-switch input:disabled + .tmg-slider { opacity: .55; }
.tmg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .tmg-slider, .tmg-slider::after { transition: none; } }
@media (max-width: 520px) {
  #tmg-banner .tmg-wrap { padding: 14px 16px; gap: 10px; }
  #tmg-banner .tmg-text { font-size: 14px; line-height: 1.45; }
  .tmg-actions { gap: 8px; }
  .tmg-btn { flex: 1 1 calc(50% - 4px); padding: 10px 8px; font-size: 13px; letter-spacing: .08em; }
  .tmg-btn[data-tmg=customize], .tmg-btn[data-tmg=save] { flex-basis: 100%; }
}

.tmg-footer-link {
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  font: inherit; font-size: 13px; color: rgba(255,255,255,.45);
}
.tmg-footer-link:hover { color: #ffffff; }
