/* Ellipse cookie modal. Farby hotela: --cc-accent / --cc-dark (themeSetup), inak --cu / --night. */
#pb-cc {
  --cc-accent: var(--cu, #ce9153);
  --cc-dark: var(--night, #1d1d1b);
  --cc-paper: var(--cream, #fbf8f4);
  --cc-text: var(--ink2, #3a3936);
  --cc-muted: var(--mute, #6b6862);
  --cc-line: var(--line, #e8e1d8);
  --cc-card: #ffffff;
  --cc-card-b: #ece5db;
  --cc-heading: var(--terrace-heading-font, "Forum", serif);
  --cc-body: var(--terrace-body-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);

  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 14, 12, .55);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  font-family: var(--cc-body);
  animation: pbccFade .35s ease;
}

#pb-cc[hidden] {
  display: none !important;
}

#pb-cc *,
#pb-cc *::before,
#pb-cc *::after {
  box-sizing: border-box;
}

html.pb-cc-lock,
body.pb-cc-lock {
  overflow: hidden !important;
}

@keyframes pbccFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pbccUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.pb-cc__box {
  width: 100%;
  max-width: 560px;
  max-height: 94vh;
  overflow-y: auto;
  background: var(--cc-paper);
  color: var(--cc-dark);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: pbccUp .45s ease;
}

.pb-cc__hd {
  background: var(--cc-dark);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pb-cc__hd img {
  height: 34px;
  width: auto;
  display: block;
}

.pb-cc__hd span {
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.pb-cc__ct {
  padding: 26px 28px 6px;
}

.pb-cc__ct h2 {
  font-family: var(--cc-heading);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--cc-dark);
}

.pb-cc__ct p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--cc-text);
}

.pb-cc__bn {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 4px;
}

.pb-cc__bn > div {
  background: var(--cc-card);
  border: 1px solid var(--cc-card-b);
  border-radius: 14px;
  padding: 14px 12px 12px;
}

.pb-cc__bn svg {
  width: 22px;
  height: 22px;
  display: block;
  margin-bottom: 10px;
  fill: none;
  stroke: var(--cc-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pb-cc__bn b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-dark);
  margin-bottom: 3px;
}

.pb-cc__bn small {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--cc-muted);
}

.pb-cc__st {
  display: none;
  padding: 14px 28px 0;
}

.pb-cc__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0 0 10px;
  font: 500 13px/1.2 var(--cc-body);
  color: var(--cc-muted);
  cursor: pointer;
}

.pb-cc__back:hover {
  color: var(--cc-dark);
}

.pb-cc__back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.pb-cc__rw {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--cc-line);
}

.pb-cc__rw b {
  display: block;
  font-size: 14px;
}

.pb-cc__rw small {
  color: var(--cc-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.pb-cc__tg {
  position: relative;
  width: 44px;
  height: 26px;
  flex: none;
}

.pb-cc__tg input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pb-cc__tg i {
  position: absolute;
  inset: 0;
  background: #cfc8bf;
  border-radius: 99px;
  transition: .2s;
  cursor: pointer;
}

.pb-cc__tg i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}

.pb-cc__tg input:checked + i {
  background: var(--cc-accent);
}

.pb-cc__tg input:checked + i::after {
  transform: translateX(18px);
}

.pb-cc__tg input:disabled + i {
  opacity: .55;
  cursor: default;
}

.pb-cc__tg input:focus-visible + i {
  outline: 2px solid var(--cc-dark);
  outline-offset: 2px;
}

.pb-cc__bt {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  padding: 22px 28px 0;
}

.pb-cc__btn {
  height: 50px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 12px/1 var(--cc-body);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.pb-cc__btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.pb-cc__btn--ghost {
  background: rgba(29, 29, 27, .04);
  border: 1px solid rgba(29, 29, 27, .16);
  color: var(--cc-dark);
}

.pb-cc__btn--ghost:hover {
  background: rgba(29, 29, 27, .08);
}

.pb-cc__btn--primary {
  background: var(--cc-accent);
  border: 0;
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--cc-accent) 28%, transparent);
}

.pb-cc__btn--primary:hover {
  filter: brightness(1.07);
}

.pb-cc__btn:focus-visible {
  outline: 2px solid var(--cc-dark);
  outline-offset: 2px;
}

.pb-cc__l2 {
  display: none;
}

#pb-cc.is-open .pb-cc__bn {
  display: none;
}

#pb-cc.is-open .pb-cc__st {
  display: block;
}

#pb-cc.is-open .pb-cc__l1 {
  display: none;
}

#pb-cc.is-open .pb-cc__l2 {
  display: flex;
}

#pb-cc.is-open .pb-cc__bt {
  grid-template-columns: 1fr 1fr 1.25fr;
}

.pb-cc__lg {
  padding: 14px 28px 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--cc-muted);
}

.pb-cc__lg a {
  color: var(--cc-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  #pb-cc {
    align-items: flex-end;
    padding: 0;
  }

  .pb-cc__box {
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .pb-cc__ct h2 {
    font-size: 26px;
  }

  .pb-cc__bn {
    grid-template-columns: 1fr;
  }

  .pb-cc__bt,
  #pb-cc.is-open .pb-cc__bt {
    grid-template-columns: 1fr;
  }

  .pb-cc__btn--primary {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pb-cc,
  .pb-cc__box {
    animation: none;
  }
}
