/* Cookie consent banner — fixed bottom bar, storefront shell safe. */

.bd-cookie-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #b9c8dd;
  box-shadow: 0 -8px 24px rgba(14, 52, 119, 0.08);
}

.bd-cookie-consent[hidden] {
  display: none;
}

.bd-cookie-consent__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--storefront-content-max, 1248px);
  margin: 0 auto;
}

.bd-cookie-consent__text {
  flex: 1 1 280px;
  margin: 0;
  color: #0e3477;
  font-size: 0.875rem;
  line-height: 1.45;
}

.bd-cookie-consent__link {
  color: #12508a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bd-cookie-consent__link:hover {
  color: #0e3477;
}

.bd-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bd-cookie-consent__btn {
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.bd-cookie-consent__btn--primary {
  color: #fff;
  background: #12508a;
  border: 1px solid #12508a;
}

.bd-cookie-consent__btn--primary:hover {
  background: #0e3477;
  border-color: #0e3477;
}

.bd-cookie-consent__btn--secondary {
  color: #0e3477;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #b9c8dd;
}

.bd-cookie-consent__btn--secondary:hover {
  background: #f3f8fe;
}

@media (max-width: 767px) {
  .bd-cookie-consent {
    background-color: #f3f8fe;
    background-image:
      linear-gradient(rgba(18, 60, 134, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(18, 60, 134, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
  }

  .bd-cookie-consent__actions {
    width: 100%;
  }

  .bd-cookie-consent__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
