/* Cookie consent banner + Privacy Preferences modal
   (layouts/cookie-consent.blade.php). Same look as atlantisnj.com: its
   Tailwind classes written out as plain CSS. */
.bt-consent, .bt-consent * { box-sizing: border-box; }
.bt-consent { font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif; color: #333; }
.bt-consent [hidden] { display: none !important; }

.bt-consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  border-top: 1px solid rgba(0, 0, 0, 0.1); background: #FFFFFF;
  padding: 20px 16px; box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}
.bt-consent-banner-inner {
  max-width: 1152px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
}
.bt-consent-text { margin: 0; font-size: 14px; line-height: 1.625; color: #333; }
.bt-consent-text a { color: inherit; text-decoration: underline; }
.bt-consent-text a:hover { color: #033690; }
.bt-consent-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }

.bt-consent-btn {
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 20px;
  padding: 10px 20px; border-radius: 4px; cursor: pointer;
  border: 1px solid #780714; background: transparent; color: #780714;
}
.bt-consent-btn:hover { background: rgba(120, 7, 20, 0.05); }
.bt-consent-btn-primary { background: #780714; color: #FFFFFF; }
.bt-consent-btn-primary:hover { background: #5A0510; }
.bt-consent-btn-wide { padding-left: 24px; padding-right: 24px; }

@media screen and (min-width: 640px) {
  .bt-consent-banner { padding-left: 32px; padding-right: 32px; }
  .bt-consent-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .bt-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
}

.bt-consent-modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.5); padding: 16px;
}
.bt-consent-panel {
  width: 100%; max-width: 512px; max-height: 90vh; overflow-y: auto;
  border-radius: 8px; background: #FFFFFF; padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.bt-consent-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bt-consent-panel-head h2 { margin: 0; font-family: inherit; font-size: 20px; line-height: 28px; font-weight: 700; color: #333; }
.bt-consent-close {
  font-family: inherit; font-size: 24px; line-height: 1; padding: 4px;
  border: 0; border-radius: 4px; background: none; color: #666; cursor: pointer;
}
.bt-consent-close:hover { color: #333; }
.bt-consent-intro { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: #666; }

.bt-consent-options { margin-top: 24px; }
.bt-consent-option { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bt-consent-option + .bt-consent-option { margin-top: 20px; }
.bt-consent-option.is-clickable { cursor: pointer; }
.bt-consent-option-title { display: block; font-size: 16px; line-height: 24px; font-weight: 600; color: #333; }
.bt-consent-option-desc { display: block; font-size: 14px; line-height: 20px; color: #666; }
.bt-consent-option-sale { border-top: 1px solid rgba(0, 0, 0, 0.1); padding-top: 20px; }

/* Switch: the checkbox is visually hidden inside it. */
.bt-consent-toggle {
  position: relative; display: inline-flex; align-items: center; flex-shrink: 0;
  width: 44px; height: 24px; border-radius: 9999px;
  background: rgba(102, 102, 102, 0.4); transition: background-color 0.15s;
}
.bt-consent-toggle::after {
  content: ""; position: absolute; left: 2px; width: 20px; height: 20px;
  border-radius: 9999px; background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s;
}
.bt-consent-toggle:not(.is-locked):has(input:checked) { background: #00469A; }
.bt-consent-toggle:not(.is-locked):has(input:checked)::after { transform: translateX(20px); }
.bt-consent-toggle:has(input:focus-visible) { outline: 2px solid #033690; outline-offset: 2px; }
.bt-consent-toggle.is-locked { background: #00469A; opacity: 0.6; }
.bt-consent-toggle.is-locked::after { left: auto; right: 2px; transform: none; }
.bt-consent-toggle input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.bt-consent-panel-foot { margin-top: 32px; display: flex; justify-content: flex-end; }

/* Footer "Your Privacy Choices" / "Cookie Settings": buttons styled like the
   footer's copyright links. */
button.bt-consent-link {
  font: inherit; color: #7F7D7D; background: none; border: 0; padding: 0;
  cursor: pointer; text-transform: inherit;
}
button.bt-consent-link:hover { color: #FFFFFF; }
button.bt-consent-link svg { display: inline-block; width: 24px; height: 16px; vertical-align: -2px; margin-right: 4px; }
