/* Opportino cookie-choice banner
   Keep this file at /cookie-consent.css so every page can load it. */

:root {
  --op-cookie-ink: #173A3A;
  --op-cookie-teal: #0f766e;
  --op-cookie-mint: #e8f4f1;
  --op-cookie-cream: #fffdf8;
  --op-cookie-border: rgba(23, 63, 59, 0.18);
  --op-cookie-shadow: 0 18px 48px rgba(17, 56, 52, 0.18);
}

.op-cookie-banner[hidden] {
  display: none !important;
}

.op-cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 99999;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--op-cookie-ink);
  background: var(--op-cookie-cream);
  border: 1px solid var(--op-cookie-border);
  border-radius: 20px;
  box-shadow: var(--op-cookie-shadow);
  font: inherit;
}

.op-cookie-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 20px;
}

.op-cookie-banner__eyebrow {
  margin: 0 0 5px;
  color: var(--op-cookie-teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.op-cookie-banner__title {
  margin: 0 0 7px;
  color: var(--op-cookie-ink);
  font-size: clamp(1.12rem, 2.8vw, 1.36rem);
  line-height: 1.2;
}

.op-cookie-banner__text {
  max-width: 610px;
  margin: 0;
  color: var(--op-cookie-ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.op-cookie-banner__link {
  display: inline-block;
  margin-top: 8px;
  color: var(--op-cookie-teal);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.op-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 300px;
}

.op-cookie-button {
  min-height: 44px;
  padding: 10px 15px;
  color: var(--op-cookie-teal);
  background: #ffffff;
  border: 2px solid var(--op-cookie-teal);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 120ms ease, background-color 120ms ease;
}

.op-cookie-button:hover {
  background: var(--op-cookie-mint);
  transform: translateY(-1px);
}

.op-cookie-button:focus-visible,
.op-cookie-banner__link:focus-visible,
[data-cookie-settings]:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.34);
  outline-offset: 3px;
}

/* Use this class on the footer Cookie choices button if needed. */
.op-cookie-settings-link {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .op-cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    border-radius: 17px;
  }

  .op-cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 17px;
  }

  .op-cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .op-cookie-button {
    width: 100%;
  }
}


/* Match the standard Opportino footer link treatment. */
.footer .op-cookie-settings-link {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-align: left;
  text-decoration: none;
}
.footer .op-cookie-settings-link:hover { color: #fff; text-decoration: underline; }
footer.wrap .op-cookie-settings-link { color: inherit; font-size: inherit; }
