:root {
  --lp-cookie-orange: #fb9946;
  --lp-cookie-orange-dark: #de7827;
  --lp-cookie-ink: #1f2428;
  --lp-cookie-muted: #5f6871;
  --lp-cookie-border: #dfe3e7;
  --lp-cookie-white: #fff;
}

#lp-cookie-consent,
#lp-cookie-consent * {
  box-sizing: border-box;
}

.lp-cookie-banner {
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  color: var(--lp-cookie-ink);
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--lp-cookie-border);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(20, 27, 34, .22);
  font-family: Montserrat, Arial, sans-serif;
}

.lp-cookie-banner[hidden],
.lp-cookie-settings[hidden],
.lp-cookie-reopen[hidden] {
  display: none !important;
}

.lp-cookie-copy {
  max-width: 720px;
}

.lp-cookie-copy h2,
.lp-cookie-settings h2 {
  margin: 0 0 8px;
  color: var(--lp-cookie-ink);
  font-size: 1.18rem;
  line-height: 1.3;
}

.lp-cookie-copy p,
.lp-cookie-option p {
  margin: 0;
  color: var(--lp-cookie-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.lp-cookie-copy a,
.lp-cookie-policy-link a {
  color: var(--lp-cookie-orange-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.lp-cookie-btn,
.lp-cookie-reopen,
.lp-cookie-close {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.lp-cookie-btn {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.lp-cookie-btn:hover {
  transform: translateY(-1px);
}

.lp-cookie-btn:focus-visible,
.lp-cookie-reopen:focus-visible,
.lp-cookie-close:focus-visible,
.lp-cookie-switch input:focus-visible + span {
  outline: 3px solid rgba(251, 153, 70, .38);
  outline-offset: 3px;
}

.lp-cookie-btn-primary {
  color: #17191b;
  background: var(--lp-cookie-orange);
  box-shadow: 0 7px 18px rgba(251, 153, 70, .25);
}

.lp-cookie-btn-primary:hover {
  background: #ffa45c;
}

.lp-cookie-btn-secondary {
  color: var(--lp-cookie-ink);
  background: var(--lp-cookie-white);
  border-color: #bfc6cc;
}

.lp-cookie-btn-secondary:hover {
  background: #f4f6f7;
}

.lp-cookie-settings {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 19, 22, .64);
  font-family: Montserrat, Arial, sans-serif;
}

.lp-cookie-settings-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 28px;
  color: var(--lp-cookie-ink);
  background: var(--lp-cookie-white);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.lp-cookie-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--lp-cookie-ink);
  background: #f1f3f4;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
}

.lp-cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--lp-cookie-border);
}

.lp-cookie-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: .95rem;
}

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

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

.lp-cookie-switch span {
  position: absolute;
  inset: 0;
  background: #aeb5bb;
  border-radius: 999px;
  transition: background-color .2s ease;
}

.lp-cookie-switch span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}

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

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

.lp-cookie-switch input:disabled + span {
  opacity: .62;
}

.lp-cookie-policy-link {
  margin: 16px 0 20px;
  font-size: .88rem;
}

.lp-cookie-reopen {
  position: fixed;
  z-index: 2147482999;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 13px;
  color: #fff;
  background: #252b30;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  font: 700 .76rem/1.2 Montserrat, Arial, sans-serif;
}

/* Preferences remain available from the discreet Cookies links in the footer. */
.lp-cookie-reopen {
  display: none !important;
}

.lp-cookie-settings-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .lp-cookie-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .lp-cookie-actions {
    justify-content: stretch;
  }

  .lp-cookie-btn {
    flex: 1 1 150px;
  }
}

@media (max-width: 560px) {
  .lp-cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 18px;
    border-radius: 15px;
  }

  .lp-cookie-copy h2,
  .lp-cookie-settings h2 {
    padding-right: 30px;
    font-size: 1.05rem;
  }

  .lp-cookie-actions {
    flex-direction: column-reverse;
  }

  .lp-cookie-btn {
    width: 100%;
    flex-basis: auto;
  }

  .lp-cookie-settings {
    align-items: end;
    padding: 0;
  }

  .lp-cookie-settings-card {
    width: 100%;
    max-height: 92vh;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
  }

  .lp-cookie-reopen span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-cookie-btn,
  .lp-cookie-switch span,
  .lp-cookie-switch span::after {
    transition: none;
  }
}
