/* Cookie notice: designer spec 16 Nov 2026 17:30 — fixed bottom white card,
   16px padding, 16px radius, Inter 0.875rem, equal-weight Accept / Decline. */

.roka-cookie-bar {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  box-sizing: border-box;
  max-width: 1200px;
  margin-inline: auto;
  background: var(--roka-white);
  color: var(--roka-charcoal);
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--roka-shadow-2);
  font-family: var(--roka-font-body);
  font-size: 0.875rem;
  line-height: 1.5;
}

html.roka-cookie-pending .roka-cookie-bar,
.roka-cookie-bar.is-open {
  display: block;
}

.roka-cookie-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roka-cookie-bar__text {
  margin: 0;
  color: var(--roka-charcoal);
}

.roka-cookie-bar__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.roka-cookie-bar__actions .roka-btn {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
}

.roka-cookie-bar__privacy {
  font-family: var(--roka-font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--roka-blue);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.roka-cookie-bar__privacy:hover {
  color: var(--roka-blue-dark);
}

@media (min-width: 640px) {
  .roka-cookie-bar {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }
  .roka-cookie-bar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .roka-cookie-bar__text {
    flex: 1 1 auto;
  }
  .roka-cookie-bar__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
  }
  .roka-cookie-bar__actions .roka-btn {
    width: auto;
    min-width: 140px;
  }
}

/* Lift the WhatsApp float so the bar never covers it. */
html.roka-cookie-pending .roka-fab,
body.roka-cookie-bar-open .roka-fab {
  bottom: calc(16px + var(--roka-cookie-bar-h, 220px));
}
@media (min-width: 1024px) {
  html.roka-cookie-pending .roka-fab,
  body.roka-cookie-bar-open .roka-fab {
    bottom: calc(24px + var(--roka-cookie-bar-h, 140px));
  }
}

/* Footer "Cookie settings" matches the Privacy Policy link. */
.roka-footer .roka-cookie-settings {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #fff;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.roka-footer .roka-cookie-settings:hover {
  color: #fff;
}
