/**
 * Hotel Cookie Consent — banner layout & theme (design reference).
 */

.hotel-cookie-consent-root {
  position: fixed;
  z-index: 2147483000;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  padding: 16px;
  box-sizing: border-box;
}

.hotel-cookie-consent-root[hidden] {
  display: none !important;
}

.hotel-cookie-consent {
  pointer-events: auto;
  width: 100%;
  max-width: 396px;
  background-color: #c8f5a6;
  border-radius: 12px;
  padding: 30px 22px 18px;
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.12),
    0 4px 12px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  font-family: var(
    --bs-font-oakes-grotesk,
    "oakesGrotesk",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif
  );
  color: #1a1d26;
}

.hotel-cookie-consent__text {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 300;
}

/* Match theme `.buttons__item--tertiary` / link affordance */
.hotel-cookie-consent__text a {
  color: #074c51;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 0.5px solid #000;
  transition:
    color 0.26s ease,
    border-bottom-color 0.26s ease;
}

.hotel-cookie-consent__text a:hover,
.hotel-cookie-consent__text a:focus-visible {
  color: #a6bdf7;
  border-bottom-color: #a6bdf7;
}

.hotel-cookie-consent__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
}

/**
 * Reveal hover — same interaction as theme `.buttons__item` + `.buttons__item--secondary`.
 */
.hotel-cookie-consent__btn--reveal {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-clip: padding-box;
  transform: translateZ(0);
  background-color: #303549;
  color: #cfffb0;
  font-weight: 400;
  line-height: 1.2;
  border-radius: 999px;
	border: none;
  transition:
    color 0.26s ease,
    background-color 0.32s ease;
}

.hotel-cookie-consent__btn--reveal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  background-color: #cfffb0;
}

.hotel-cookie-consent__btn--reveal::after {
  content: attr(data-text);
  position: absolute;
  font-weight: 400;
  inset: 0;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transform: translateY(110%);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hotel-cookie-consent__btn--reveal .hotel-cookie-consent__btn-text {
  position: relative;
  z-index: 0;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.hotel-cookie-consent__btn--reveal:hover::before,
.hotel-cookie-consent__btn--reveal:focus-visible::before {
  transform: translateY(0);
}

.hotel-cookie-consent__btn--reveal:hover::after,
.hotel-cookie-consent__btn--reveal:focus-visible::after {
  transform: translateY(0);
}

.hotel-cookie-consent__btn--reveal:hover,
.hotel-cookie-consent__btn--reveal:focus-visible {
  box-shadow: none;
  background-color: #cfffb0;
  color: #303549;
  transition:
    color 0.32s ease,
    background-color 0.32s ease 0.12s;
}

.hotel-cookie-consent__btn--reveal:focus-visible {
  outline: 2px solid #074c51;
  outline-offset: 3px;
}

.hotel-cookie-consent__accept {
  font-size: 14px;
  padding: 12px 28px;
}

/* Match theme `.buttons__item--tertiary` */
.hotel-cookie-consent__customise {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  color: #074c51;
  border-radius: 0;
  border-bottom: 0.5px solid #000;
  text-decoration: none;
  transition:
    color 0.26s ease,
    border-bottom-color 0.26s ease;
}

.hotel-cookie-consent__customise:hover,
.hotel-cookie-consent__customise:focus-visible {
  color: #a6bdf7;
  border-bottom-color: #a6bdf7;
}

.hotel-cookie-consent__customise:focus-visible {
  outline: 2px solid #074c51;
  outline-offset: 3px;
}

.hotel-cookie-consent__panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 77, 64, 0.18);
  display: none;
}

.hotel-cookie-consent__panel.is-open {
  display: block;
}

.hotel-cookie-consent__panel-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1d26;
}

.hotel-cookie-consent__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.hotel-cookie-consent__option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.hotel-cookie-consent__option-label {
  flex: 1;
}

.hotel-cookie-consent__option-label strong {
  display: block;
  color: #1a1d26;
}

.hotel-cookie-consent__option-label span {
  display: block;
  font-size: 12px;
  color: rgba(26, 29, 38, 0.72);
  margin-top: 2px;
}

.hotel-cookie-consent__toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.hotel-cookie-consent__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.hotel-cookie-consent__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(45, 49, 66, 0.2);
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.hotel-cookie-consent__slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hotel-cookie-consent__toggle input:checked + .hotel-cookie-consent__slider {
  background-color: #303549;
}

.hotel-cookie-consent__toggle
  input:checked
  + .hotel-cookie-consent__slider::before {
  transform: translateX(18px);
}

.hotel-cookie-consent__toggle
  input:checked:disabled
  + .hotel-cookie-consent__slider {
  opacity: 0.85;
  cursor: not-allowed;
}

.hotel-cookie-consent__save {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
}

@media (max-width: 540px) {
  .hotel-cookie-consent {
    padding: 22px 20px 20px;
    border-radius: 12px;
  }

  .hotel-cookie-consent__row {
    flex-direction: column;
    align-items: stretch;
  }

  .hotel-cookie-consent__accept {
    width: 100%;
    text-align: center;
  }

  .hotel-cookie-consent__customise {
    text-align: center;
    width: 100%;
  }
}
