/* Banner cookie Pergosystem. */
.ck-banner,
.ck-modal,
.ck-panel {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

.ck-banner[hidden],
.ck-modal[hidden] {
  display: none !important;
}

.ck-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000000;
  background: rgba(28, 28, 28, 0.97);
  color: #f6f3ef;
  border-top: 1px solid rgba(196, 176, 154, 0.75);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.35);
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
}

.ck-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.ck-banner h2,
.ck-panel h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: #fff;
}

.ck-banner p,
.ck-panel p {
  margin: 0;
  color: #ebe4db;
  font-size: 0.95rem;
}

.ck-banner a,
.ck-panel a {
  color: #e4d3c2;
}

.ck-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ck-actions button {
  flex: 1 1 180px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.25;
}

.ck-btn-reject {
  background: #f6f3ef;
  color: #1c1c1c;
  border: 1px solid #f6f3ef;
}

.ck-btn-custom {
  background: transparent;
  color: #f6f3ef;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.ck-btn-accept {
  background: #c4b09a;
  color: #1c1c1c;
  border: 1px solid #c4b09a;
}

.ck-actions button:hover {
  filter: brightness(1.06);
}

.ck-banner :focus-visible,
.ck-panel :focus-visible {
  outline: 2px solid #e4d3c2;
  outline-offset: 2px;
}

.ck-modal {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  padding: 0;
}

.ck-panel {
  width: min(680px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: #1c1c1c;
  color: #f6f3ef;
  border: 1px solid rgba(196, 176, 154, 0.5);
  border-radius: 16px 16px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.4);
}

.ck-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ck-panel-head h2 {
  margin: 0;
}

.ck-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f6f3ef;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.ck-lead {
  margin-bottom: 14px !important;
}

.ck-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ck-cat h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #fff;
}

.ck-cat p {
  font-size: 0.9rem;
}

.ck-cookies {
  display: block;
  margin-top: 6px;
  color: #d4c8bb;
  font-size: 0.82rem;
}

.ck-badge {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(196, 176, 154, 0.22);
  color: #f0e4d6;
  font-size: 0.78rem;
  font-weight: 700;
}

.ck-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  margin-top: 2px;
}

.ck-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.ck-switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #3d3d3d;
  pointer-events: none;
  transition: background 0.15s ease;
}

.ck-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.ck-switch input:checked + i {
  background: #c4b09a;
}

.ck-switch input:checked + i::after {
  transform: translateX(20px);
}

.ck-switch input:focus-visible + i {
  outline: 2px solid #e4d3c2;
  outline-offset: 2px;
}

.ck-note {
  margin: 4px 0 0 !important;
  color: #d4c8bb !important;
  font-size: 0.85rem !important;
}

body.ck-modal-open {
  overflow: hidden;
}

.footer-cookie-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ck-reopen {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 1000000;
  padding: 8px 12px;
  border-radius: 999px;
  background: #1c1c1c;
  color: #f6f3ef;
  border: 1px solid rgba(196, 176, 154, 0.7);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}

body.ck-open .ck-reopen {
  display: none;
}

@media (min-width: 720px) {
  .ck-modal {
    align-items: center;
    padding: 24px;
  }

  .ck-panel {
    border-radius: 16px;
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .ck-actions {
    flex-direction: column;
  }

  .ck-actions button {
    width: 100%;
    flex-basis: auto;
  }
}
