.wpcc {
  font-family: "Segoe UI", sans-serif;
  position: fixed;
  z-index: 999999;
  max-width: min(460px, calc(100vw - 24px));
}

.wpcc a,
.wpcc-link-button {
  color: inherit;
}

.wpcc--bar {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  max-width: min(980px, calc(100vw - 24px));
  width: calc(100vw - 24px);
}

.wpcc--box.wpcc--bottom-left,
.wpcc--floating.wpcc--bottom-left {
  left: 16px;
  bottom: 16px;
}

.wpcc--box.wpcc--bottom-right,
.wpcc--floating.wpcc--bottom-right {
  right: 16px;
  bottom: 16px;
}

.wpcc--box.wpcc--bottom-center,
.wpcc--floating.wpcc--bottom-center {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
}

.wpcc--box.wpcc--top-center,
.wpcc--floating.wpcc--top-center {
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
}

.wpcc-banner {
  background: var(--wpcc-bg);
  color: var(--wpcc-text);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

.wpcc--bar .wpcc-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.wpcc-banner__content strong {
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

.wpcc-banner__logo {
  max-height: 32px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.wpcc-banner__content p {
  margin: 0;
  line-height: 1.6;
}

.wpcc-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 14px;
}

.wpcc-banner__actions,
.wpcc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wpcc-button,
.wpcc-preferences-trigger,
.wpcc-do-not-sell,
.wpcc-link-button,
.wpcc-revisit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
  text-decoration: none;
}

.wpcc-button:hover,
.wpcc-preferences-trigger:hover,
.wpcc-do-not-sell:hover,
.wpcc-revisit:hover {
  transform: translateY(-1px);
}

.wpcc-button--primary {
  background: var(--wpcc-accent);
  color: var(--wpcc-button-text);
}

.wpcc-button--secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--wpcc-text);
}

.wpcc-button--ghost,
.wpcc-link-button {
  background: transparent;
  color: inherit;
  outline: 1px solid rgba(255, 255, 255, 0.25);
}

.wpcc-link-button {
  padding: 4px 10px;
}

.wpcc-revisit {
  position: fixed;
  bottom: 16px;
  z-index: 1000001;
  background: var(--wpcc-surface);
  color: var(--wpcc-surface-text);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.wpcc-revisit--bottom-left {
  left: 16px;
}

.wpcc-revisit--bottom-right {
  right: 16px;
}

.wpcc-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 1000000;
}

.wpcc-modal__dialog {
  width: min(760px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  background: var(--wpcc-surface);
  color: var(--wpcc-surface-text);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.28);
  outline: none;
}

.wpcc-modal__header,
.wpcc-modal__footer {
  padding: 24px;
}

.wpcc-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.wpcc-modal__header h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.wpcc-modal__header p {
  margin: 0;
  line-height: 1.6;
}

.wpcc-modal__body {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.wpcc-category-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.08);
}

.wpcc-category-card__copy strong {
  display: block;
  margin-bottom: 6px;
}

.wpcc-category-card__copy small {
  display: block;
  line-height: 1.5;
}

.wpcc-switch {
  position: relative;
  width: 54px;
  min-width: 54px;
  height: 32px;
  display: inline-flex;
}

.wpcc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wpcc-switch__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.wpcc-switch__slider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
}

.wpcc-switch input:checked + .wpcc-switch__slider {
  background: var(--wpcc-accent);
}

.wpcc-switch input:checked + .wpcc-switch__slider::before {
  transform: translateX(22px);
}

.wpcc-modal__footer {
  border-top: 1px solid rgba(100, 116, 139, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.wpcc-status {
  color: #15803d;
  font-size: 14px;
}

.wpcc-icon-button {
  appearance: none;
  border: 0;
  background: rgba(148, 163, 184, 0.16);
  color: inherit;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

iframe[data-wpcc-category][data-wpcc-src]:not(.is-consented) {
  min-height: 220px;
  background: rgba(148, 163, 184, 0.12);
}

.wpcc-cookie-table {
  overflow: auto;
  margin: 24px 0;
}

.wpcc-cookie-table table {
  width: 100%;
  border-collapse: collapse;
}

.wpcc-cookie-table th,
.wpcc-cookie-table td {
  border: 1px solid rgba(100, 116, 139, 0.2);
  padding: 12px;
  text-align: left;
}

.wpcc-cookie-table th {
  background: rgba(148, 163, 184, 0.08);
}

[data-wpcc-requires-consent]:not(.is-consented) {
  display: none !important;
}

.wpcc-modal-open {
  overflow: hidden;
}

@media (max-width: 782px) {
  .wpcc,
  .wpcc--bar {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    transform: none !important;
    max-width: none;
    width: auto;
  }

  .wpcc-revisit {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    text-align: center;
  }

  .wpcc--bar .wpcc-banner,
  .wpcc-banner {
    display: block;
    border-radius: 18px;
  }

  .wpcc-banner__actions,
  .wpcc-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .wpcc-button,
  .wpcc-preferences-trigger,
  .wpcc-do-not-sell {
    width: 100%;
  }

  .wpcc-modal__header h2 {
    font-size: 24px;
  }
}
