/* ==========================================================================
   Cookie consent banner + preferences modal
   ========================================================================== */

.dol-cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 880px;
  margin: 0 auto;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  padding: 20px 22px;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid #e5e5e5;
}

.dol-cc-banner h2 {
  font-size: 17px;
  margin: 0 0 8px;
  color: #2d4a2d;
  font-weight: 700;
}

.dol-cc-banner p {
  margin: 0 0 14px;
  color: #333;
}

.dol-cc-banner a {
  color: #2d4a2d;
  text-decoration: underline;
}

.dol-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dol-cc-btn {
  font: inherit;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.dol-cc-btn-primary {
  background: #2d4a2d;
  color: #ffffff;
}
.dol-cc-btn-primary:hover { background: #1f351f; }

.dol-cc-btn-secondary {
  background: #ffffff;
  color: #2d4a2d;
  border-color: #2d4a2d;
}
.dol-cc-btn-secondary:hover { background: #f2f6f2; }

.dol-cc-btn-link {
  background: transparent;
  color: #555;
  border-color: transparent;
  padding: 10px 12px;
  text-decoration: underline;
}
.dol-cc-btn-link:hover { color: #2d4a2d; }

/* Floating "change settings" pill */
.dol-cc-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147482000;
  background: #2d4a2d;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: none;
}
.dol-cc-reopen:hover { background: #1f351f; }

/* Preferences modal */
.dol-cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2147483100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dol-cc-modal-overlay.is-open { display: flex; }

.dol-cc-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  max-height: 90vh;
  overflow-y: auto;
}

.dol-cc-modal h2 {
  margin: 0 0 8px;
  color: #2d4a2d;
  font-size: 20px;
}

.dol-cc-modal p { color: #333; margin: 0 0 16px; font-size: 14px; }

.dol-cc-category {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.dol-cc-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dol-cc-category h3 {
  margin: 0;
  font-size: 15px;
  color: #1a1a1a;
}

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

/* toggle switch */
.dol-cc-toggle { position: relative; width: 44px; height: 24px; flex: 0 0 44px; }
.dol-cc-toggle input { opacity: 0; width: 0; height: 0; }
.dol-cc-slider {
  position: absolute; inset: 0;
  background: #ccc; border-radius: 999px;
  transition: background 0.2s;
  cursor: pointer;
}
.dol-cc-slider::before {
  content: ""; position: absolute;
  height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform 0.2s;
}
.dol-cc-toggle input:checked + .dol-cc-slider { background: #2d4a2d; }
.dol-cc-toggle input:checked + .dol-cc-slider::before { transform: translateX(20px); }
.dol-cc-toggle input:disabled + .dol-cc-slider { background: #2d4a2d; opacity: 0.5; cursor: not-allowed; }

.dol-cc-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .dol-cc-actions { justify-content: stretch; }
  .dol-cc-actions .dol-cc-btn { flex: 1 1 auto; }
}
