/* SunHealth Cookie Consent — front-end styles */

.shcc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  background: #1b2a2f;
  color: #f5f7f6;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.shcc-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shcc-banner__text {
  flex: 1 1 480px;
}

.shcc-banner__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.shcc-banner__text a {
  color: #7fd6b8;
  text-decoration: underline;
  margin-left: 4px;
}

.shcc-banner__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shcc-btn {
  cursor: pointer;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.shcc-btn--primary {
  background: #2d9e83;
  color: #fff;
}
.shcc-btn--primary:hover { background: #257e69; }

.shcc-btn--outline {
  background: transparent;
  color: #f5f7f6;
  border-color: rgba(255,255,255,0.4);
}
.shcc-btn--outline:hover { border-color: #fff; }

.shcc-btn--ghost {
  background: transparent;
  color: #cfd8d6;
  border-color: transparent;
  text-decoration: underline;
}

/* Preferences modal */
.shcc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.shcc-modal__panel {
  background: #fff;
  color: #1b2a2f;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 10px;
  padding: 28px;
}

.shcc-modal__panel h2 {
  margin-top: 0;
  font-size: 20px;
}

.shcc-category {
  border-top: 1px solid #e6e6e6;
  padding: 14px 0;
}

.shcc-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.shcc-category p {
  margin: 0;
  font-size: 13px;
  color: #555;
}

.shcc-toggle--locked {
  font-size: 12px;
  color: #888;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 3px 10px;
}

.shcc-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}
.shcc-switch input { opacity: 0; width: 0; height: 0; }
.shcc-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .2s;
  border-radius: 24px;
}
.shcc-slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}
.shcc-switch input:checked + .shcc-slider { background-color: #2d9e83; }
.shcc-switch input:checked + .shcc-slider:before { transform: translateX(18px); }

.shcc-modal__actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.shcc-reopen {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 999998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #1b2a2f;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

@media (max-width: 640px) {
  .shcc-banner__inner { flex-direction: column; align-items: stretch; }
  .shcc-banner__actions { justify-content: stretch; }
  .shcc-btn { flex: 1 1 auto; text-align: center; }
}
