:root {
  --lead-bg: #1e263c;
  --lead-bg-hover: #25304b;
  --lead-text: #ffffff;
  --lead-accent: #ff0036;
  --lead-height: 68px;
  --lead-expanded-height: 260px;
  --lead-z: 9998;
}

.sticky-lead-wrap {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: var(--lead-z);
  transition: transform 0.3s ease;
}

.sticky-lead-wrap.is-bottomed {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

#stickyLeadMount {
  position: relative;
  height: 0;
}

#stickyLeadStop {
  position: relative;
  height: 1px;
}

.sticky-lead {
  width: 100%;
  background: var(--lead-bg);
  color: var(--lead-text);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.sticky-lead-toggle {
  width: 100%;
  min-height: var(--lead-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px 16px 85px;
  cursor: pointer;
  background: var(--lead-bg);
  color: var(--lead-text);
  transition: background 0.25s ease;
  user-select: none;
  text-align: left;
}

.sticky-lead-toggle:hover {
  background: var(--lead-bg-hover);
}

.sticky-lead-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--lead-text);
  flex: 1 1 auto;
  text-align: left;
}

.sticky-lead-cta {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--lead-accent);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-lead-cta-icon {
  display: inline-block;
  transition: transform 0.25s ease;
  font-size: 18px;
  line-height: 1;
}

.sticky-lead.open .sticky-lead-cta-icon {
  transform: rotate(45deg);
}

.sticky-lead-panel {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  transition: max-height 0.35s ease;
  border-top: none;
}

.sticky-lead.open .sticky-lead-panel {
  max-height: var(--lead-expanded-height);
  border-top: 1px solid rgba(0,0,0,0.08);
}

.sticky-lead-panel-inner {
  height: var(--lead-expanded-height);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sticky-lead-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sticky-lead.open .sticky-lead-cta span:first-child {
  display: none;
}

.sticky-lead-form-only {
  justify-content: flex-start;
  padding: 24px 28px;
}

.sticky-lead-form-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.sticky-lead-form-title {
  margin: 0 0 8px;
  font-size: 22px;
  color: #1e263c;
  font-weight: 700;
  text-align: left;
}

.sticky-lead-form-text {
  margin: 0 0 18px;
  color: #4a5568;
  font-size: 15px;
  text-align: left;
}

.sticky-lead-form {
  width: 100%;
}

.sticky-lead-form-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr auto;
  gap: 14px;
  align-items: stretch;
}

.sticky-lead-form-grid input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  color: #1e263c;
  outline: none;
  box-sizing: border-box;
  text-align: left;
}

.sticky-lead-form-grid input:focus {
  border-color: #1e263c;
  box-shadow: 0 0 0 2px rgba(30, 38, 60, 0.15);
}

.sticky-lead-form-grid input:-webkit-autofill,
.sticky-lead-form-grid input:-webkit-autofill:hover,
.sticky-lead-form-grid input:-webkit-autofill:focus,
.sticky-lead-form-grid input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(30, 38, 60, 0.08) inset !important;
  box-shadow: 0 0 0 1000px rgba(30, 38, 60, 0.08) inset !important;
  -webkit-text-fill-color: #1e263c !important;
  transition: background-color 9999s ease-in-out 0s;
}

.sticky-lead-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  background: var(--lead-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0;
  border: none;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.sticky-lead-download:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.sticky-lead-download:focus,
.sticky-lead-download:active {
  border: none;
  outline: none;
  box-shadow: none;
}

.sticky-lead-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.sticky-lead-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sticky-lead-toast-box {
  background: #1e263c;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 18px;
  min-width: 260px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sticky-lead-toast-box strong {
  font-size: 15px;
}

.sticky-lead-toast-box span {
  font-size: 14px;
  opacity: 0.9;
}

.sticky-lead-privacy {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(30, 38, 60, 0.65);
  margin-top: 10px;
  text-align: left;
}

.sticky-lead-privacy a {
  color: #1e263c;
  text-decoration: underline;
}

.sticky-lead-privacy a:hover {
  opacity: 0.7;
}

.sticky-lead-consents {
  margin-top: 12px;
}

.sticky-lead-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #1e263c;
  margin-top: 10px;
  cursor: pointer;
  text-align: left;
}

.sticky-lead-checkbox input {
  margin-top: 3px;
  accent-color: #ff0036;
  cursor: pointer;
  flex: 0 0 auto;
}

.sticky-lead-checkbox span {
  flex: 1;
}

.sticky-lead-checkbox a {
  text-decoration: underline;
  color: #1e263c;
}

.sticky-lead-checkbox a:hover {
  opacity: 0.7;
}

@keyframes consentPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 0, 54, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(255, 0, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 54, 0); }
}

.consent-pulse-target {
  border-radius: 4px;
}

.consent-pulse-target.pulsing {
  animation: consentPulse 1s ease infinite;
}

/* @media (max-width: 991px) {
  .sticky-lead-form-wrap {
    padding-bottom: 10px;
  }
} */

/* Cookie button: closed state only, left + vertically centered in the closed bar */
#cookiescript_badge,
#cookiescript_badgesvg {
  left: 24px !important;
  right: auto !important;
  top: auto !important;
  bottom: calc((var(--lead-height) - 40px) / 2) !important;
  transform: none !important;
}

#cookiescript_badge,
#cookiescript_badgesvg {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.lead-open #cookiescript_badge,
body.lead-open #cookiescript_badgesvg {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 991px) {
  :root {
    --lead-height: 76px;
    --lead-expanded-height: 420px;
  }

  .sticky-lead-toggle {
    padding: 14px 18px;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    align-items: flex-start;
  }

  .sticky-lead-copy {
    font-size: 15px;
    text-align: left;
    width: 100%;
  }

  .sticky-lead-cta {
    font-size: 14px;
    width: 100%;
    justify-content: flex-start;
  }

  .sticky-lead-form-only {
    padding: 20px 18px 24px;
  }

  .sticky-lead-form-title {
    font-size: 20px;
    text-align: left;
  }

  .sticky-lead-form-text {
    text-align: left;
    margin-bottom: 16px;
  }

  .sticky-lead-form-grid {
    grid-template-columns: 1fr;
  }

  .sticky-lead-form-grid input {
    text-align: left;
  }

  .sticky-lead-form-grid input::placeholder {
    text-align: left;
  }

  .sticky-lead-download {
    width: 100%;
  }

  .sticky-lead-toast {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .sticky-lead-toast-box {
    min-width: 0;
  }

  @media (max-width: 991px) {
  /* Closed on mobile: cookie button on the right */
  body:not(.lead-open) #cookiescript_badge,
  body:not(.lead-open) #cookiescript_badgesvg {
    left: auto !important;
    right: 18px !important;
    bottom: 18px !important;
    top: auto !important;
    transform: none !important;
  }
}
}
