/**
 * Cookie Consent Banner Styles
 *
 * GDPR-compliant cookie banner matching reFitness dark teal/navy design.
 * Fixed to bottom of viewport, responsive, high z-index.
 *
 * @author    Jimmy Lindmark
 * @copyright MJ STRATEGI TECH SOLUTIONS SL
 * @license   All Rights Reserved
 */

/* ── Banner container ── */
#rf-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #0a2a2a 0%, #0d3b3b 100%);
  border-top: 2px solid rgba(0, 178, 169, 0.4);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  animation: rf-cb-slide-up 0.35s ease-out;
  font-family: inherit;
}

#rf-cookie-banner.rf-cb--hiding {
  animation: rf-cb-slide-down 0.3s ease-in forwards;
}

@keyframes rf-cb-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes rf-cb-slide-down {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

/* ── Inner wrapper ── */
.rf-cb-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
}

/* ── Text ── */
.rf-cb-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.rf-cb-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 14px;
}

/* ── Action buttons row ── */
.rf-cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

/* ── Buttons ── */
.rf-cb-btn {
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.rf-cb-btn:hover {
  transform: translateY(-1px);
}

.rf-cb-btn:active {
  transform: translateY(0);
}

/* Accept all — teal */
.rf-cb-btn--accept {
  background: #00b2a9;
  color: #fff;
}

.rf-cb-btn--accept:hover {
  background: #00cec4;
}

/* Necessary only — outlined */
.rf-cb-btn--necessary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.rf-cb-btn--necessary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

/* Settings toggle — text link style */
.rf-cb-btn--settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rf-cb-btn--settings:hover {
  color: #fff;
}

/* Save custom selection */
.rf-cb-btn--save {
  background: #00b2a9;
  color: #fff;
  margin-top: 12px;
}

.rf-cb-btn--save:hover {
  background: #00cec4;
}

/* ── Details / settings panel ── */
.rf-cb-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rf-cb-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.rf-cb-option label {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 160px;
}

.rf-cb-option label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00b2a9;
  cursor: pointer;
}

.rf-cb-option-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.4;
  flex: 1;
  min-width: 200px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .rf-cb-inner {
    padding: 16px;
  }

  .rf-cb-actions {
    flex-direction: column;
  }

  .rf-cb-btn {
    width: 100%;
    text-align: center;
  }

  .rf-cb-btn--settings {
    text-align: center;
  }

  .rf-cb-option {
    flex-direction: column;
    gap: 2px;
  }

  .rf-cb-option-desc {
    padding-left: 26px;
  }
}
