/* Cookie consent — toast + preferences modal (partner theme) */
.pf-cc-toast {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10050;
  width: min(380px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: var(--pf-bg-card, #151922);
  color: #e8eaed;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: inherit;
}

.pf-cc-toast[hidden],
.pf-cc-modal[hidden],
.pf-cc-backdrop[hidden] {
  display: none !important;
}

.pf-cc-toast__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.pf-cc-toast__text {
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(232, 234, 237, 0.82);
}

.pf-cc-toast__text a {
  color: var(--pf-brand-light, #f48985);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pf-cc-toast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pf-cc-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pf-cc-btn--primary {
  background: #fff;
  color: #111;
}

.pf-cc-btn--primary:hover {
  background: #f0f0f0;
}

.pf-cc-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.pf-cc-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.pf-cc-btn--brand {
  background: var(--pf-brand, #ef514c);
  color: #fff;
}

.pf-cc-btn--brand:hover {
  background: var(--pf-brand-dark, #c9322e);
}

.pf-cc-btn--link {
  background: none;
  border: 0;
  padding: 0.35rem 0.25rem;
  color: rgba(232, 234, 237, 0.75);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pf-cc-btn--link:hover {
  color: #fff;
}

.pf-cc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(2px);
}

.pf-cc-modal {
  position: fixed;
  z-index: 10070;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 24px));
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--pf-bg-card, #151922);
  color: #e8eaed;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: inherit;
  overflow: hidden;
}

.pf-cc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-cc-modal__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.pf-cc-modal__close {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.pf-cc-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pf-cc-modal__body {
  padding: 14px 20px 8px;
  overflow: auto;
  flex: 1;
}

.pf-cc-modal__intro {
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(232, 234, 237, 0.8);
}

.pf-cc-cat {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(14, 16, 20, 0.55);
  overflow: hidden;
}

.pf-cc-cat__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
}

.pf-cc-cat__toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  flex: 1;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.pf-cc-cat__chevron {
  display: inline-block;
  width: 1em;
  transition: transform 0.15s ease;
  opacity: 0.7;
}

.pf-cc-cat.is-open .pf-cc-cat__chevron {
  transform: rotate(180deg);
}

.pf-cc-cat__label {
  display: block;
  font-weight: 650;
  font-size: 0.9375rem;
  color: #fff;
  margin-bottom: 4px;
}

.pf-cc-cat__desc {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(232, 234, 237, 0.72);
}

.pf-cc-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pf-cc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.pf-cc-switch input:disabled {
  cursor: not-allowed;
}

.pf-cc-switch__track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease;
}

.pf-cc-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.pf-cc-switch input:checked + .pf-cc-switch__track {
  background: var(--pf-brand, #ef514c);
}

.pf-cc-switch input:checked + .pf-cc-switch__track::after {
  transform: translateX(20px);
}

.pf-cc-switch input:disabled + .pf-cc-switch__track {
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.28);
}

.pf-cc-cat__panel {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-cc-cat.is-open .pf-cc-cat__panel {
  display: block;
}

.pf-cc-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.pf-cc-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.pf-cc-table th,
.pf-cc-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  color: rgba(232, 234, 237, 0.78);
}

.pf-cc-table th {
  color: rgba(232, 234, 237, 0.55);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
}

.pf-cc-table tr:last-child td {
  border-bottom: 0;
}

.pf-cc-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 16, 20, 0.35);
}

.pf-cc-modal__foot .pf-cc-btn--brand {
  margin-left: auto;
}

body.pf-cc-lock {
  overflow: hidden;
}

@media (max-width: 520px) {
  .pf-cc-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .pf-cc-modal__foot .pf-cc-btn--brand {
    margin-left: 0;
    width: 100%;
  }

  .pf-cc-modal__foot {
    flex-direction: column;
    align-items: stretch;
  }
}
