/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset, 88px);
}

body {
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

picture > source {
  display: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

s {
  text-decoration-thickness: 1px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.icon {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ========== COOKIE ========== */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(560px, calc(100% - 32px));
  padding: 12px 12px 12px 20px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--consent-fg, #f3f6f5);
  background: var(--consent-bg, #1d2a27);
  border-radius: var(--consent-radius, 10px);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, bottom 0.3s ease, visibility 0s linear 0.3s;
}

.consent.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease, bottom 0.3s ease, visibility 0s;
}

.consent__text {
  flex: 1;
}

.consent__text a {
  color: inherit;
  text-underline-offset: 3px;
}

.consent__actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.consent__btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--consent-radius, 10px);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.consent__btn--accept {
  color: var(--consent-accent-fg, #ffffff);
  background: var(--consent-accent, #00695a);
}

.consent__btn--accept:hover {
  background: var(--consent-accent-hover, #005447);
}

.consent__btn--decline {
  color: inherit;
  background: rgb(255 255 255 / 0.08);
}

.consent__btn--decline:hover {
  background: rgb(255 255 255 / 0.16);
}

@media (max-width: 767px) {
  .consent {
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    flex-wrap: wrap;
    gap: 8px 12px;
    width: calc(100% - 24px);
    padding: 12px 12px 12px 16px;
    font-size: 14px;
  }

  .has-sticky-bar .consent {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .consent__text {
    flex-basis: 100%;
  }

  .consent__actions {
    flex: 1;
  }

  .consent__btn {
    flex: 1;
  }
}
