/* =====================================================
   COOKIE CONSENT BANNER — SITE STYLE
   =====================================================
   Custom cookie consent plugin (consent.css)

   Colours:
   - Main colour:  var(--color-brand) / #3a5973  (buttons, borders, checkboxes)
   - Dark colour:  #0f3446  (text, hover states, overlay)

   Parts:
   - .tc-banner   Full-screen blurred popup shown to new visitors
   - .tc-inner    White card in the middle (logo, text, buttons)
   - .tc-btn      Square buttons (outline, fills on hover)
   - .tc-btn-main Filled "Accept" button
   - .tc-btn-link Plain underlined text button
   - .tc-overlay  Dark backdrop behind the settings popup
   - .tc-modal    Settings popup with the cookie options

   Note: class names are unchanged, so the plugin's
   JavaScript is not affected by these styles.
   ===================================================== */

.tc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
  background: #fff; color: var(--color-brand); border-top: 3px solid var(--color-brand);
  box-shadow: 0 -4px 20px rgba(15, 52, 70, .15);
  font-size: 15px; line-height: 1.5;
}
.tc-inner {
  max-width: 1140px; margin: 0 auto; padding: 16px 20px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.tc-text { flex: 1 1 480px; }
.tc-text p { margin: 0; }
.tc-title {
  font-size: 15px; margin: 0 0 6px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #0f3446;
}
.tc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tc-btn {
  cursor: pointer; font: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 22px; border-radius: 999px;
  background: transparent; color: #3a5973; border: 2px solid var(--color-brand);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.tc-btn:hover, .tc-btn:focus { background: #3a5973; color: #fff; }
.tc-btn:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.tc-btn-main {
  background: var(--color-brand); color: #fff;
  box-shadow: 0 2px 6px rgba(58, 89, 115, .25);
}
.tc-btn-main:hover, .tc-btn-main:focus {
  background: #0f3446; border-color: #0f3446; color: #fff;
  box-shadow: 0 4px 10px rgba(15, 52, 70, .3);
}
.tc-btn-link {
  background: transparent; color: #3a5973; border-color: transparent;
  text-decoration: underline; padding-left: 10px; padding-right: 10px;
}
.tc-btn-link:hover, .tc-btn-link:focus {
  background: transparent; color: #0f3446; border-color: transparent;
}
.tc-overlay {
  position: fixed; inset: 0; z-index: 100000; background: rgba(15, 52, 70, .6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.tc-modal {
  background: #fff; color: var(--color-brand); max-width: 560px; width: 100%; max-height: 90vh; overflow: auto;
  border-radius: 16px; padding: 28px; font-size: 15px; line-height: 1.5;
  border-top: 3px solid var(--color-brand);
  box-shadow: 0 2px 6px rgba(15, 52, 70, .08), 0 18px 40px rgba(15, 52, 70, .25);
}
.tc-row { padding: 12px 0; border-bottom: 1px solid var(--color-brand); }
.tc-label { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.tc-check { width: 18px; height: 18px; accent-color: var(--color-brand); }
.tc-row-desc { margin: 6px 0 0 28px; color: rgba(15, 52, 70, .7); }
.tc-modal .tc-actions { margin-top: 18px; justify-content: flex-end; }
@media (max-width: 600px) {
  .tc-actions { width: 100%; }
  .tc-btn { flex: 1 1 100%; }
}

/* =====================================================
   FULL-SCREEN CONSENT POPUP
   =====================================================
   The banner covers the whole screen and blurs the page
   behind it. The white card in the middle holds the logo,
   text and buttons. All corners are square.
   ===================================================== */

/* Full-screen blurred backdrop */
.tc-banner {
  position: fixed; inset: 0;
  left: 0; right: 0; top: 0; bottom: 0;
  width: auto; max-width: none;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow: auto;
  background: rgba(15, 52, 70, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 0; border-radius: 0;
  box-shadow: none;
  transform: none;
  transition: none;
}
.tc-banner:hover {
  transform: none;
  box-shadow: none;
}

/* Remove the old cookie badge */
.tc-banner::before { content: none; }

/* Big white card */
.tc-inner {
  width: 100%; max-width: 680px; margin: auto;
  padding: 48px 48px 40px;
  display: flex; flex-direction: column; align-items: stretch;
  gap: 20px; text-align: center;
  background: #fff; color: #0f3446;
  border-top: 6px solid var(--color-brand);
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(15, 52, 70, .08), 0 30px 70px rgba(15, 52, 70, .35);
}

/* Logo band: white logo on your main colour. Change the URL to your logo file */
.tc-inner::before {
  content: "";
  display: block; width: auto; height: 110px;
  margin: -48px -48px 0;
  background: var(--color-brand) url("/images/tips-logo-03072026.svg") center / auto 56px no-repeat;
}

.tc-text { flex: 0 0 auto; }
.tc-title { font-size: 22px; margin: 0 0 12px; }
.tc-text p { font-size: 16px; line-height: 1.6; }

/* Square buttons, side by side */
.tc-actions {
  flex-direction: row; flex-wrap: wrap;
  justify-content: center; align-items: stretch;
  width: 100%; gap: 12px; margin-top: 8px;
}
.tc-btn {
  flex: 1 1 auto; width: auto;
  padding: 14px 26px; border-radius: 0;
  text-align: center;
}
.tc-btn-link { flex: 0 0 100%; border-radius: 0; }

/* Square settings popup, blurred backdrop */
.tc-overlay {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tc-modal { border-radius: 0; }

/* Stop the page scrolling behind the popup */
body:has(.tc-banner) { overflow: hidden; }

@media (max-width: 600px) {
  .tc-inner { padding: 32px 22px 28px; }
  .tc-inner::before {
    height: 90px;
    margin: -32px -22px 0;
    background-size: auto 44px;
  }
  .tc-actions { flex-direction: column; }
  .tc-btn { flex: 0 0 auto; width: 100%; }
}