/* cookie-consent.css | coachingbymay.com
 * Brand-matched styling for the GDPR consent banner.
 * Gold (#C9A227) + black + Heebo to match site.
 */

#cbm-cc-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 720px;
  z-index: 99999;
  font-family: 'Heebo', sans-serif;
  animation: cbm-cc-slide-up 0.4s ease;
}

@keyframes cbm-cc-slide-up {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.cbm-cc-box {
  background: linear-gradient(160deg, #131310 0%, #1a1a14 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 14px;
  padding: 24px 28px;
  color: #fff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.cbm-cc-box[dir="rtl"] {
  text-align: right;
}

.cbm-cc-text {
  margin-bottom: 18px;
}

.cbm-cc-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #C9A227;
  margin: 0 0 10px;
}

.cbm-cc-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.cbm-cc-link {
  color: #E6C254;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cbm-cc-link:hover { color: #C9A227; }

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

.cbm-cc-box[dir="rtl"] .cbm-cc-actions {
  justify-content: flex-start;
  flex-direction: row-reverse;
}

.cbm-cc-btn {
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.4px;
}

.cbm-cc-btn-primary {
  background: #C9A227;
  color: #0a0a0a;
}

.cbm-cc-btn-primary:hover {
  background: #E6C254;
}

.cbm-cc-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cbm-cc-btn-secondary:hover {
  border-color: rgba(201, 162, 39, 0.45);
  color: #fff;
}

/* Preferences panel */
.cbm-cc-prefs {
  margin-bottom: 18px;
}

.cbm-cc-cat {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
}

.cbm-cc-cat:first-child {
  border-top: none;
  padding-top: 0;
}

.cbm-cc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 12px;
}

.cbm-cc-cat-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.cbm-cc-cat-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

/* Toggle switch */
.cbm-cc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  flex-shrink: 0;
}

.cbm-cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cbm-cc-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  transition: 0.25s;
  border-radius: 22px;
}

.cbm-cc-slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: 0.25s;
  border-radius: 50%;
}

.cbm-cc-switch input:checked + .cbm-cc-slider {
  background: #C9A227;
}

.cbm-cc-switch input:checked + .cbm-cc-slider:before {
  transform: translateX(22px);
}

.cbm-cc-toggle-off {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  white-space: nowrap;
}

/* Footer preferences link helper */
.cbm-cc-pref-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}

.cbm-cc-pref-link:hover {
  color: #C9A227;
}

/* Mobile */
@media (max-width: 600px) {
  #cbm-cc-banner {
    bottom: 0;
    width: 100%;
    transform: none;
    left: 0;
    animation: cbm-cc-slide-up-mobile 0.4s ease;
  }
  @keyframes cbm-cc-slide-up-mobile {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .cbm-cc-box {
    border-radius: 14px 14px 0 0;
    padding: 20px;
  }
  .cbm-cc-actions {
    flex-direction: column;
  }
  .cbm-cc-btn {
    width: 100%;
    padding: 12px;
  }
}
