:root {
  --dp-consent-blue: #203c64;
  --dp-consent-orange: #ff7a00;
  --dp-consent-orange-hover: #e96f00;
  --dp-consent-text: #24364b;
  --dp-consent-muted: #5f6b7a;
  --dp-consent-border: #dbe3ec;
  --dp-consent-white: #fff;
}

.dp-consent-banner[hidden],
.dp-consent-modal[hidden],
.dp-consent-floating-button[hidden] {
  display: none !important;
}

.dp-consent-banner,
.dp-consent-modal,
.dp-consent-floating-button,
.dp-consent-manage-link {
  box-sizing: border-box;
  font-family: "Albert Sans", Arial, sans-serif;
}

.dp-consent-banner *,
.dp-consent-modal * {
  box-sizing: border-box;
}

.dp-consent-banner {
  position: fixed;
  z-index: 999999;
  left: 18px;
  bottom: 18px;
  width: min(460px, calc(100vw - 36px));
  color: var(--dp-consent-text);
}

.dp-consent-banner__inner {
  display: block;
  width: 100%;
  padding: 22px 24px 20px;
  border: 1px solid rgba(32, 60, 100, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow:
    0 22px 54px rgba(15, 35, 60, 0.22),
    0 3px 10px rgba(15, 35, 60, 0.08);
  text-align: center;
}

.dp-consent-banner__copy {
  max-width: 400px;
  margin: 0 auto;
}

.dp-consent-banner h2,
.dp-consent-modal h2 {
  margin: 0 0 9px;
  color: var(--dp-consent-blue);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.dp-consent-banner p,
.dp-consent-modal p {
  margin: 0;
  color: var(--dp-consent-muted);
  font-size: 13px;
  line-height: 1.58;
}

.dp-consent-banner__link {
  display: inline-block;
  margin-top: 9px;
  color: var(--dp-consent-blue);
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.dp-consent-banner__actions,
.dp-consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dp-consent-banner__actions {
  justify-content: center;
  align-items: stretch;
  margin-top: 17px;
}

.dp-consent-button,
.dp-consent-floating-button,
.dp-consent-manage-link {
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 9px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.dp-consent-banner__actions .dp-consent-button {
  flex: 0 1 auto;
  min-width: 112px;
}

.dp-consent-button:hover,
.dp-consent-button:focus-visible,
.dp-consent-floating-button:hover,
.dp-consent-floating-button:focus-visible,
.dp-consent-manage-link:hover,
.dp-consent-manage-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 35, 60, 0.16);
  outline: 3px solid rgba(255, 122, 0, 0.32);
  outline-offset: 2px;
}

.dp-consent-button--accept,
.dp-consent-button--save {
  background: linear-gradient(180deg, #ff941f 0%, var(--dp-consent-orange) 100%);
  color: #10253a;
  box-shadow: 0 7px 18px rgba(253, 120, 15, 0.22);
}

.dp-consent-button--reject {
  background: linear-gradient(180deg, #294c78 0%, var(--dp-consent-blue) 100%);
  color: var(--dp-consent-white);
  box-shadow: 0 7px 18px rgba(32, 60, 100, 0.18);
}

.dp-consent-button--settings {
  border-color: var(--dp-consent-blue);
  background: var(--dp-consent-white);
  color: var(--dp-consent-blue);
}

.dp-consent-modal {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dp-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 23, 39, 0.68);
}

.dp-consent-modal__panel {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 18px;
  padding: 28px;
  background: var(--dp-consent-white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.dp-consent-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #eef3f8;
  color: var(--dp-consent-blue);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.dp-consent-modal__close::before,
.dp-consent-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.dp-consent-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.dp-consent-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dp-consent-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--dp-consent-border);
  border-radius: 14px;
}

.dp-consent-choice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--dp-consent-blue);
}

.dp-consent-choice--locked > span {
  flex: 0 0 auto;
  color: var(--dp-consent-blue);
  font-size: 13px;
  font-weight: 800;
}

.dp-consent-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
}

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

.dp-consent-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #b7c3d1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dp-consent-switch span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.dp-consent-switch input:checked + span {
  background: var(--dp-consent-orange);
}

.dp-consent-switch input:checked + span::after {
  transform: translateX(20px);
}

.dp-consent-switch input:focus-visible + span {
  outline: 3px solid rgba(253, 120, 15, 0.28);
  outline-offset: 3px;
}

.dp-consent-modal__actions {
  margin-top: 22px;
}

.dp-consent-floating-button {
  position: fixed;
  z-index: 999998;
  left: 16px;
  bottom: 16px;
  min-height: 38px;
  padding: 8px 12px;
  border-color: var(--dp-consent-blue);
  background: var(--dp-consent-white);
  color: var(--dp-consent-blue);
  box-shadow: 0 8px 28px rgba(15, 35, 60, 0.16);
  font-size: 12px;
}

.dp-consent-manage-link {
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
}

html.dp-consent-modal-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .dp-consent-banner {
    right: auto;
    bottom: 10px;
    left: 10px;
    width: min(440px, calc(100vw - 20px));
  }

  .dp-consent-banner__inner {
    padding: 19px 18px 17px;
  }

  .dp-consent-banner__actions .dp-consent-button {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .dp-consent-banner__actions .dp-consent-button--settings {
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  .dp-consent-button,
  .dp-consent-modal__actions .dp-consent-button {
    flex-basis: 100%;
    width: 100%;
  }

  .dp-consent-modal__panel {
    padding: 24px 18px;
  }

  .dp-consent-choice {
    align-items: flex-start;
  }
}
