.pv-cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  display: none;
  justify-content: center;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  color: #f0ede8;
  pointer-events: none;
}

.pv-cookie-consent.is-visible {
  display: flex;
}

.pv-cookie-panel {
  width: min(1040px, 100%);
  background: rgba(17, 17, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  pointer-events: auto;
}

.pv-cookie-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 24px;
}

.pv-cookie-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: oklch(72% 0.16 58);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pv-cookie-kicker::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
}

.pv-cookie-title {
  margin: 0 0 8px;
  color: #f0ede8;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pv-cookie-text {
  max-width: 660px;
  margin: 0;
  color: rgba(240, 237, 232, 0.68);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
}

.pv-cookie-text a,
.pv-cookie-link {
  color: rgba(240, 237, 232, 0.86);
  text-decoration: underline;
  text-decoration-color: rgba(240, 237, 232, 0.28);
  text-underline-offset: 3px;
}

.pv-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pv-cookie-btn {
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(240, 237, 232, 0.78);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.pv-cookie-btn:hover,
.pv-cookie-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  color: #f0ede8;
  outline: none;
}

.pv-cookie-btn:active {
  transform: translateY(1px);
}

.pv-cookie-btn-primary {
  border-color: oklch(72% 0.16 58);
  background: oklch(72% 0.16 58);
  color: #0d0d0f;
}

.pv-cookie-btn-primary:hover,
.pv-cookie-btn-primary:focus-visible {
  border-color: oklch(78% 0.16 58);
  background: oklch(78% 0.16 58);
  color: #0d0d0f;
}

.pv-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.58);
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  color: #f0ede8;
}

.pv-cookie-modal.is-visible {
  display: flex;
}

.pv-cookie-dialog {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.pv-cookie-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pv-cookie-dialog h2 {
  margin: 0 0 8px;
  color: #f0ede8;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pv-cookie-dialog p {
  margin: 0;
  color: rgba(240, 237, 232, 0.62);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
}

.pv-cookie-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(240, 237, 232, 0.68);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pv-cookie-close:hover,
.pv-cookie-close:focus-visible {
  color: #f0ede8;
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.pv-cookie-options {
  padding: 8px 28px 0;
}

.pv-cookie-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pv-cookie-option-title {
  display: block;
  margin-bottom: 6px;
  color: #f0ede8;
  font-size: 15px;
  font-weight: 500;
}

.pv-cookie-option-desc {
  color: rgba(240, 237, 232, 0.58);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 300;
}

.pv-cookie-switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
}

.pv-cookie-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.pv-cookie-slider {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pv-cookie-slider::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  background: rgba(240, 237, 232, 0.8);
  transition: transform 0.2s, background 0.2s;
}

.pv-cookie-switch input:checked + .pv-cookie-slider {
  border-color: oklch(72% 0.16 58);
  background: oklch(72% 0.16 58 / 0.24);
}

.pv-cookie-switch input:checked + .pv-cookie-slider::before {
  transform: translateX(22px);
  background: oklch(72% 0.16 58);
}

.pv-cookie-switch input:disabled + .pv-cookie-slider {
  cursor: not-allowed;
  opacity: 0.72;
}

.pv-cookie-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 24px 28px 28px;
}

.pv-cookie-footer-link {
  cursor: pointer;
}

@media (max-width: 760px) {
  .pv-cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .pv-cookie-panel-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .pv-cookie-actions,
  .pv-cookie-dialog-actions {
    justify-content: stretch;
  }

  .pv-cookie-btn {
    flex: 1 1 100%;
  }

  .pv-cookie-modal {
    padding: 12px;
  }

  .pv-cookie-dialog-head,
  .pv-cookie-options,
  .pv-cookie-dialog-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pv-cookie-option {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
