.analytics-consent {
  position: fixed;
  z-index: 30;
  inset-inline-end: 20px;
  inset-block-end: max(20px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(390px, calc(100vw - 40px));
  padding: 16px 18px;
  border: 1px solid #c9cdb6;
  border-radius: 10px;
  background: #faf8ee;
  box-shadow: 0 5px 25px #2937212b;
  color: #35442a;
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent h2 {
  margin: 0 0 5px;
  font: normal 21px/1.2 Georgia, 'Times New Roman', serif;
}

.analytics-consent p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.analytics-consent-actions button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #4d572b;
  border-radius: 5px;
  background: #faf8ee;
  color: #35442a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.analytics-consent-actions button[data-analytics-choice="granted"] {
  background: #4d572b;
  color: #fffdf4;
}

.analytics-consent :focus-visible,
[data-analytics-settings]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.analytics-consent-actions button[data-analytics-choice="granted"]:focus-visible {
  outline-color: #35442a;
}

@media (max-width: 700px) {
  .analytics-consent {
    inset-inline: 12px;
    inset-block-end: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-width: 430px;
  }

  body:has(.mobile-booking-bar) > .analytics-consent {
    inset-block-end: calc(80px + env(safe-area-inset-bottom));
  }
}
