.slp-consent,
.slp-consent-dialog {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.slp-consent[hidden],
.slp-consent-dialog[hidden] {
  display: none !important;
}

.slp-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 920;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(14px);
}

.slp-consent__copy strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 17px;
}

.slp-consent__copy p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
}

.slp-consent__copy a,
.slp-consent__link-button {
  color: #93c5fd;
  text-decoration: underline;
}

.slp-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.slp-consent__button,
.slp-consent__link-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #64748b;
  border-radius: 7px;
  color: #fff;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.slp-consent__button--primary {
  border-color: #2563eb;
  background: #2563eb;
}

.slp-consent__link-button {
  border-color: transparent;
}

.slp-consent-dialog {
  position: fixed;
  inset: 0;
  z-index: 940;
  display: grid;
  place-items: center;
  padding: 20px;
}

.slp-consent-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.slp-consent-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  overflow-y: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.42);
}

.slp-consent-dialog__header,
.slp-consent-dialog__footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid #e2e8f0;
}

.slp-consent-dialog__footer {
  justify-content: flex-end;
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
}

.slp-consent-dialog__header span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slp-consent-dialog__header h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.slp-consent-dialog__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 24px;
  cursor: pointer;
}

.slp-consent-dialog__body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.slp-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.slp-consent-option strong {
  color: #0f172a;
}

.slp-consent-option p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.slp-consent-option > span {
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

.slp-consent-option input {
  width: 22px;
  height: 22px;
}

body.slp-consent-dialog-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .slp-consent {
    right: 10px;
    bottom: max(84px, calc(84px + env(safe-area-inset-bottom)));
    left: 10px;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  body.single-product .slp-consent {
    bottom: max(88px, calc(88px + env(safe-area-inset-bottom)));
  }

  .slp-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slp-consent__button--primary {
    grid-column: 1 / -1;
  }

  .slp-consent-dialog__footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .slp-consent__button,
  .slp-consent__link-button {
    width: 100%;
  }
}
