.evodruck-consent[hidden] {
  display: none !important;
}

.evodruck-consent {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  font-family: Rubik, Arial, sans-serif;
}

.evodruck-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 24, 0.58);
  backdrop-filter: blur(4px);
}

.evodruck-consent-dialog {
  position: absolute;
  right: clamp(16px, 3vw, 48px);
  bottom: clamp(16px, 3vw, 42px);
  width: min(650px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: #101924;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  color: #f8fafc;
}

.evodruck-consent-dialog h2 {
  margin: 5px 38px 10px 0;
  color: #fff;
  font-size: clamp(25px, 3.5vw, 34px);
  line-height: 1.15;
}

.evodruck-consent-dialog > p {
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.65;
}

.evodruck-consent-eyebrow {
  color: #ff9d33;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.evodruck-consent-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.evodruck-consent-options {
  display: grid;
  gap: 10px;
  margin: 24px 0 14px;
}

.evodruck-consent-option,
.evodruck-consent-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  margin: 0;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

label.evodruck-consent-option {
  cursor: pointer;
}

.evodruck-consent-option > span:first-child,
.evodruck-consent-empty {
  min-width: 0;
}

.evodruck-consent-option strong,
.evodruck-consent-option small,
.evodruck-consent-empty strong,
.evodruck-consent-empty span {
  display: block;
}

.evodruck-consent-option strong,
.evodruck-consent-empty strong {
  color: #fff;
  font-size: 14px;
}

.evodruck-consent-option small,
.evodruck-consent-empty span {
  margin-top: 3px;
  color: #9daabd;
  font-size: 12px;
  line-height: 1.45;
}

.evodruck-consent-required {
  flex: 0 0 auto;
  color: #aab7c8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.evodruck-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.evodruck-consent-switch span {
  position: absolute;
  inset: 0;
  border: 1px solid #526175;
  border-radius: 99px;
  background: #263344;
  transition: 180ms ease;
}

.evodruck-consent-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  content: "";
  transition: 180ms ease;
}

.evodruck-consent-switch input:checked + span {
  border-color: #ff8300;
  background: #ff8300;
}

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

.evodruck-consent-switch input:focus-visible + span {
  outline: 3px solid rgba(255, 131, 0, 0.34);
  outline-offset: 3px;
}

.evodruck-consent-more {
  margin: 0 0 20px !important;
}

.evodruck-consent-more a {
  color: #ffad57;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.evodruck-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.evodruck-consent-button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.evodruck-consent-button-primary {
  border-color: #ff8300;
  background: #ff8300;
  color: #121212;
}

.evodruck-consent-button-secondary {
  background: transparent;
  color: #fff;
}

.evodruck-consent-button:hover {
  transform: translateY(-1px);
}

.evodruck-consent-button:focus-visible,
.evodruck-consent-close:focus-visible {
  outline: 3px solid rgba(255, 131, 0, 0.42);
  outline-offset: 3px;
}

body.evodruck-consent-visible {
  overflow: hidden;
}

@media (max-width: 640px) {
  .evodruck-consent-dialog {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(88vh, 780px);
    padding: 25px 18px 20px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  .evodruck-consent-option {
    gap: 12px;
  }

  .evodruck-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .evodruck-consent-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .evodruck-consent-button,
  .evodruck-consent-switch span,
  .evodruck-consent-switch span::after {
    transition: none;
  }
}
