#epso-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  color: #17263b;
  border: 1px solid rgba(39, 62, 87, 0.12);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 46px rgba(20, 38, 63, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: -apple-system, BlinkMacSystemFont, Inter, sans-serif;
}

.epso-cc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  align-items: start;
}

.epso-cc-copy h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0;
  color: #132238;
}

.epso-cc-copy p {
  max-width: 52ch;
  margin: 0;
  color: #53637a;
  font-size: 13px;
  line-height: 1.45;
}

.epso-cc-copy a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #9a7625;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.epso-cc-options {
  display: grid;
  gap: 8px;
}

.epso-cc-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(39, 62, 87, 0.12);
  background: #f8fafc;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}

.epso-cc-option:hover {
  border-color: rgba(198, 163, 84, 0.52);
  background: #fff;
}

.epso-cc-option.is-checked {
  border-color: rgba(198, 163, 84, 0.68);
  background: #fff9ea;
  box-shadow: 0 8px 22px rgba(198, 163, 84, 0.12);
}

.epso-cc-option input {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 44px;
  block-size: 100%;
  min-inline-size: 44px;
  min-block-size: 44px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
}

.epso-cc-option:has(input:focus-visible) {
  outline: 3px solid rgba(198, 163, 84, 0.28);
  outline-offset: 3px;
}

.epso-cc-check {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1.5px solid rgba(39, 62, 87, 0.28);
  background: #fff;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

.epso-cc-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #132238;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.82);
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.epso-cc-option.is-checked .epso-cc-check {
  border-color: #c6a354;
  background: #c6a354;
  box-shadow: 0 0 0 3px rgba(198, 163, 84, 0.18);
}

.epso-cc-option.is-checked .epso-cc-check::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.epso-cc-option strong {
  display: block;
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 1px;
  color: #17263b;
}

.epso-cc-option span {
  display: block;
  color: #5d6f86;
  font-size: 11.5px;
  line-height: 1.35;
}

.epso-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.epso-cc-actions button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font: 700 12px/1 inherit;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.epso-cc-actions button:hover {
  transform: translateY(-1px);
}

.epso-cc-primary {
  background: #c6a354;
  color: #132238;
  box-shadow: 0 8px 18px rgba(198, 163, 84, 0.22);
}

.epso-cc-primary:hover {
  background: #d5b86f;
}

.epso-cc-secondary {
  background: #17263b;
  color: #fff;
}

.epso-cc-secondary:hover {
  background: #273e57;
}

.epso-cc-ghost {
  background: transparent;
  color: #58687e;
  border: 1px solid rgba(39, 62, 87, 0.16) !important;
}

.epso-cc-ghost:hover {
  background: rgba(39, 62, 87, 0.05);
  color: #17263b;
}

#epso-cookie-banner :is(a, button, input, select, textarea, [role="button"]) {
  min-width: 44px;
  min-height: 44px;
}

body.mobile-menu-open #epso-cookie-banner {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

@media (max-width: 760px) {
  #epso-cookie-banner {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    max-width: calc(100vw - 20px);
    padding: 13px;
    max-height: min(62vh, calc(100dvh - 24px));
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .epso-cc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    min-width: 0;
  }

  .epso-cc-copy h3 {
    font-size: 15px;
  }

  .epso-cc-copy p {
    font-size: 12px;
  }

  .epso-cc-actions {
    flex-direction: column;
    min-width: 0;
  }

  .epso-cc-actions button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
}
