.cp-root {
  font-family: var(--cp-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  line-height: 1.5;
  letter-spacing: 0;
}

.cp-overlay {
  position: fixed;
  inset: 0;
  background: var(--cp-overlay);
  z-index: 9997;
}

.cp-banner,
.cp-modal,
.cp-preferences-trigger {
  box-sizing: border-box;
}

.cp-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 22px;
  border: 1px solid var(--cp-border);
  border-radius: 20px;
  background: var(--cp-surface);
  color: var(--cp-text);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.cp-banner-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.cp-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--cp-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cp-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--cp-text);
}

.cp-description {
  margin: 0;
  color: var(--cp-text-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 60ch;
}

.cp-policy-link-wrap {
  margin: 10px 0 0;
}

.cp-policy-link {
  color: var(--cp-accent-text);
  text-underline-offset: 2px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  border-bottom: 0;
  padding-bottom: 0;
}

.cp-brand-footer,
.cp-modal-footer {
  display: block;
  width: 100%;
}

.cp-brand-note {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 6px;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--cp-border);
  color: var(--cp-text-muted);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.015em;
  opacity: 0.82;
}

.cp-brand-note strong {
  color: var(--cp-text);
  font-weight: 700;
}

.cp-brand-note-modal {
  margin-top: 14px;
}

.cookie-policy-desk-policy-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  color: #1f2937;
}

.cookie-policy-desk-policy-page h1,
.cookie-policy-desk-policy-page h2 {
  line-height: 1.2;
}

.cookie-policy-desk-policy-page h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.cpd-policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 0 0 20px;
  color: #475569;
  font-size: 14px;
}

.cpd-policy-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 28px;
}

.cpd-policy-highlight-card {
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.cpd-policy-highlight-card p {
  margin: 0;
}

.cookie-policy-desk-policy-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  background: #fff;
}

.cookie-policy-desk-policy-page th,
.cookie-policy-desk-policy-page td {
  padding: 12px;
  border: 1px solid #d1d5db;
  text-align: left;
  vertical-align: top;
}

.cookie-policy-desk-policy-page thead th {
  background: #f3f4f6;
}

.cp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cp-actions-banner {
  justify-content: flex-end;
  align-self: end;
}

.cp-button,
.cp-icon-button,
.cp-preferences-trigger {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cp-button:hover,
.cp-icon-button:hover,
.cp-preferences-trigger:hover {
  transform: translateY(-1px);
}

.cp-button {
  min-height: 44px;
  padding: 0 18px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  box-shadow: none;
  white-space: nowrap;
}

.cp-button-primary {
  background: var(--cp-accent);
  color: var(--cp-accent-text);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.cp-button-secondary {
  background: transparent;
  color: var(--cp-text);
  border: 1px solid var(--cp-border);
}

.cp-button-ghost {
  background: rgba(15, 23, 42, 0.04);
  color: var(--cp-text);
  border: 1px solid transparent;
}

.cp-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: min(700px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 28px 28px 24px;
  border: 1px solid var(--cp-border);
  border-radius: 20px;
  background: var(--cp-surface);
  color: var(--cp-text);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.2);
}

.cp-modal::-webkit-scrollbar {
  width: 10px;
}

.cp-modal::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.cp-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-right: 56px;
}

.cp-modal-title-wrap {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.cp-modal-title-wrap .cp-title {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.18;
  max-width: none;
}

.cp-icon-button {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  color: var(--cp-text-muted);
}

.cp-icon-button-glyph {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  transform: translateY(-2px);
}

.cp-icon-button-banner {
  top: 14px;
  right: 14px;
}

.cp-category-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--cp-border);
}

.cp-category-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cp-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cp-category-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.cp-category-heading h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cp-text);
}

.cp-category-card p {
  margin: 0;
  color: var(--cp-text-muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 52ch;
}

.cp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--cp-text-muted);
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cp-switch {
  display: inline-flex;
  align-items: center;
}

.cp-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cp-switch-ui {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: none;
}

.cp-switch-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.cp-switch input:checked + .cp-switch-ui {
  background: var(--cp-accent);
}

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

.cp-switch input:disabled + .cp-switch-ui {
  background: var(--cp-success);
}

.cp-actions-modal {
  margin-top: 22px;
  justify-content: flex-end;
}

.cp-preferences-trigger {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9996;
  min-height: 42px;
  padding: 0 15px;
  background: var(--cp-surface);
  color: var(--cp-text);
  border: 1px solid var(--cp-border);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}

.cp-copy {
  display: grid;
  gap: 0;
}

.cp-modal .cp-description {
  max-width: 54ch;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .cpd-policy-highlight-grid {
    grid-template-columns: 1fr;
  }

  .cp-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .cp-banner-main {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cp-title {
    font-size: 22px;
    line-height: 1.18;
  }

  .cp-modal {
    inset: auto 8px 8px 8px;
    transform: none;
    width: auto;
    max-height: min(82vh, 720px);
    padding: 18px 14px 14px;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.24);
  }

  .cp-modal-header {
    margin-bottom: 10px;
    padding-right: 38px;
    gap: 10px;
  }

  .cp-modal-title-wrap .cp-title {
    font-size: 18px;
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .cp-modal .cp-badge {
    font-size: 10px;
    padding: 5px 8px;
  }

  .cp-modal .cp-description {
    font-size: 13px;
    line-height: 1.55;
    max-width: none;
  }

  .cp-policy-link-wrap {
    margin-top: 8px;
  }

  .cp-category-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .cp-category-heading {
    gap: 8px;
    margin-bottom: 6px;
  }

  .cp-category-heading h3 {
    font-size: 15px;
  }

  .cp-category-card p {
    font-size: 12px;
    line-height: 1.5;
    max-width: none;
  }

  .cp-switch {
    justify-content: flex-start;
  }

  .cp-actions-banner,
  .cp-actions-modal {
    flex-direction: column;
    align-items: stretch;
  }

  .cp-modal-footer {
    position: sticky;
    bottom: -14px;
    margin: 16px -14px -14px;
    padding: 12px 14px 14px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, var(--cp-surface) 18%);
    border-top: 1px solid var(--cp-border);
  }

  .cp-actions-modal {
    margin-top: 0;
  }

  .cp-brand-note {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 9px;
  }

  .cp-button {
    width: 100%;
    min-height: 42px;
    font-size: 13px;
  }

  .cp-preferences-trigger {
    right: 12px;
    bottom: 12px;
    min-height: 36px;
    max-width: calc(100vw - 24px);
    padding: 0 12px;
    font-size: 11px;
  }

  .cp-icon-button {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }

  .cp-icon-button-glyph {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .cp-banner {
    padding: 16px 14px 14px;
  }

  .cp-title {
    font-size: 20px;
  }

  .cp-modal {
    inset: auto 6px 6px 6px;
    max-height: 84vh;
    padding: 16px 12px 12px;
    border-radius: 20px;
  }

  .cp-modal-title-wrap .cp-title {
    font-size: 17px;
  }

  .cp-modal-footer {
    margin: 14px -12px -12px;
    padding: 10px 12px 12px;
  }
}
