/* Southeastern Services & More LLC — Custom Privacy Consent Banner
   Pattern: compact bottom-center banner + manage modal.
   Calls zaraz.setConsent() directly; Zaraz's native modal stays OFF.
   Degrades gracefully (no-op) when Zaraz is not present.
   Brand: Navy #131760 / #1B2080 · Indigo accent #A3A7E1 · Amber CTA #CF4520
*/

.ses-privacy-banner,
.ses-privacy-modal {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Bottom-center banner wrapper ── */
.ses-privacy-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(92vw, 1080px);
  z-index: 2147483647;
  display: none;
  color: #ffffff;
}

.ses-privacy-banner.is-visible {
  display: block;
}

/* ── Panel: navy gradient, two-column grid ── */
.ses-privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(163, 167, 225, 0.16), transparent 32%),
    linear-gradient(135deg, #0C1048 0%, #1B2080 100%);
  border: 1px solid rgba(163, 167, 225, 0.30);
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(7, 10, 40, 0.40),
    0 0 32px rgba(27, 32, 128, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
}

/* ── Copy block (left column) ── */
.ses-privacy-copy {
  min-width: 0;
}

.ses-privacy-eyebrow {
  margin: 0 0 4px;
  color: #E06040;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ses-privacy-title {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ses-privacy-text {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8rem;
  line-height: 1.5;
}

.ses-privacy-text a {
  color: #A3A7E1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ses-privacy-text a:hover {
  color: #D1D3F0;
}

/* ── Actions block (right column) ── */
.ses-privacy-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

/* ── Shared button base ── */
.ses-privacy-btn {
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 999px;
  min-height: 36px;
  padding: 0.58rem 1rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ses-privacy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(163, 167, 225, 0.80);
}

.ses-privacy-btn:focus-visible {
  outline: 3px solid rgba(224, 96, 64, 0.55);
  outline-offset: 3px;
}

/* ── Accept All — Amber CTA (matches site's primary button) ── */
.ses-privacy-btn--primary {
  background: #CF4520;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(207, 69, 32, 0.35);
}

.ses-privacy-btn--primary:hover {
  background: #B03518;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(207, 69, 32, 0.45);
}

/* ── Manage — ghost link style ── */
.ses-privacy-btn--link {
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  border-color: transparent;
}

.ses-privacy-btn--link:hover {
  color: #ffffff;
  border-color: transparent;
  background: transparent;
}

/* ═══════════════════════════════════════════
   Manage Preferences Modal
   ═══════════════════════════════════════════ */

.ses-privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 10, 40, 0.62);
  backdrop-filter: blur(8px);
}

.ses-privacy-modal.is-visible {
  display: flex;
}

.ses-privacy-modal-panel {
  width: min(600px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #ffffff;
  color: #111827;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 28px 80px rgba(7, 10, 40, 0.40);
}

.ses-privacy-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.10);
}

.ses-privacy-modal-header h2 {
  margin: 0;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #131760;
  letter-spacing: -0.01em;
}

.ses-privacy-modal-header p {
  margin: 0.4rem 0 0;
  color: #4B5563;
  font-size: 0.875rem;
  line-height: 1.5;
}

.ses-privacy-close {
  flex-shrink: 0;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(19, 23, 96, 0.08);
  color: #131760;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.ses-privacy-close:hover {
  background: rgba(19, 23, 96, 0.16);
}

/* ── Purpose category card ── */
.ses-privacy-category {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  padding: 1rem;
  margin: 0.625rem 0;
  background: rgba(236, 237, 248, 0.45);
}

.ses-privacy-category-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.ses-privacy-category h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #131760;
}

.ses-privacy-category p {
  margin: 0.3rem 0 0;
  color: #4B5563;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ── Toggle ── */
.ses-privacy-toggle {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #4B5563;
  flex-shrink: 0;
}

.ses-privacy-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #1B2080;
  cursor: pointer;
}

.ses-privacy-toggle input:disabled {
  cursor: default;
  opacity: 0.5;
}

/* ── Modal action buttons ── */
.ses-privacy-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.125rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 24, 39, 0.10);
}

.ses-privacy-modal-actions .ses-privacy-btn {
  color: #131760;
  border-color: rgba(19, 23, 96, 0.22);
  background: rgba(19, 23, 96, 0.05);
}

.ses-privacy-modal-actions .ses-privacy-btn:hover {
  border-color: rgba(19, 23, 96, 0.40);
  background: rgba(19, 23, 96, 0.09);
}

.ses-privacy-modal-actions .ses-privacy-btn--primary {
  background: #CF4520;
  color: #ffffff;
  border-color: transparent;
}

.ses-privacy-modal-actions .ses-privacy-btn--primary:hover {
  background: #B03518;
  border-color: transparent;
}

/* ═══════════════════════════════════════════
   Responsive — mobile bottom sheet
   ═══════════════════════════════════════════ */

@media (max-width: 860px) {
  .ses-privacy-banner {
    width: calc(100vw - 20px);
    bottom: 10px;
  }

  .ses-privacy-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 18px 18px;
    border-radius: 16px;
  }

  .ses-privacy-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .ses-privacy-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .ses-privacy-category-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
