

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  
  z-index: 150;
  background: #FFFFFF;
  border-top: 1px solid rgba(26, 28, 31, 0.08);
  box-shadow: 0 -18px 50px rgba(26, 28, 31, 0.12);
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
}
.cookie-banner.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s;
}

.cookie-banner-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(13px, 1.3vw, 18px) clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.5vw, 40px);
}

.cookie-banner-body {
  max-width: 720px;
}

.cookie-banner-title {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #1A1C1F;
}

.cookie-banner-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #4A4D52;
}

.cookie-banner-link {
  color: #1A1C1F;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-link:hover {
  color: #4A4D52;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #1A1C1F;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cookie-btn-primary {
  background: #1A1C1F;
  color: #F5F6F7;
}
.cookie-btn-primary:hover {
  background: #2F3338;
}
.cookie-btn-ghost {
  border-color: rgba(26, 28, 31, 0.14);
  color: #1A1C1F;
}
.cookie-btn-ghost:hover {
  border-color: #1A1C1F;
}

.mobile-menu.open ~ .cookie-banner {
  display: none;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1300;
  background: rgba(26, 28, 31, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cookie-modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

.cookie-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 26px 24px 22px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.cookie-modal-overlay.is-open .cookie-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cookie-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-family: inherit;
  font-size: 19px;
  line-height: 1;
  color: #868A90;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cookie-modal-close:hover {
  background: #F2F3F5;
  color: #1A1C1F;
}

.cookie-modal-title {
  margin: 0 0 6px;
  font-family: "Manrope", "Inter", -apple-system, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1A1C1F;
}

.cookie-modal-text {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #4A4D52;
}

.cookie-option {
  padding: 12px 0;
  border-top: 1px solid rgba(26, 28, 31, 0.08);
}

.cookie-option-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.cookie-option-input {
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.cookie-option-box {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(26, 28, 31, 0.4);
  border-radius: 3px;
  background: transparent;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cookie-option-head:hover .cookie-option-box {
  border-color: #1A1C1F;
}
.cookie-option-input:focus-visible + .cookie-option-box {
  border-color: #1A1C1F;
  box-shadow: 0 0 0 2px rgba(26, 28, 31, 0.2);
}
.cookie-option-input:checked + .cookie-option-box {
  background: #1A1C1F;
  border-color: #1A1C1F;
}
.cookie-option-input:checked + .cookie-option-box::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #F5F6F7;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cookie-option-input:disabled + .cookie-option-box {
  background: rgba(26, 28, 31, 0.35);
  border-color: rgba(26, 28, 31, 0.35);
}
.cookie-option-input:disabled ~ .cookie-option-name {
  color: #4A4D52;
}

.cookie-option-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #1A1C1F;
}

.cookie-option-locked {
  margin-left: auto;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  
  color: #5A5E64;
  white-space: nowrap;
}

.cookie-option-desc {
  margin: 5px 0 0 26px;
  font-size: 12px;
  line-height: 1.5;
  color: #4A4D52;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 28, 31, 0.08);
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.footer-bottom .cookie-settings-link {
  color: rgba(244, 240, 234, 0.75);
}
.footer-bottom .cookie-settings-link:hover {
  color: #F4F0EA;
}
.doc-footer .cookie-settings-link {
  color: #5A5E64;
}
.doc-footer .cookie-settings-link:hover {
  color: #1A1C1F;
}

@media (max-width: 1023px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-banner-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  body.cookie-banner-visible .room-page-mobile-cta {
    display: none;
  }
}

@media (max-width: 560px) {
  .cookie-banner-actions .cookie-btn,
  .cookie-modal-actions .cookie-btn {
    flex: 1 1 100%;
  }
  .cookie-banner-actions .cookie-btn-ghost,
  .cookie-modal-actions .cookie-btn-ghost {
    flex: 1 1 calc(50% - 4px);
  }
  
  .cookie-btn {
    padding: 12px;
  }
  .cookie-modal {
    padding: 22px 18px 18px;
    border-radius: 14px;
  }
  .cookie-modal-title {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-banner.is-open,
  .cookie-modal-overlay,
  .cookie-modal,
  .cookie-btn,
  .cookie-option-box,
  .cookie-modal-close,
  .cookie-settings-link {
    transition: none !important;
  }
}
