/* 420 Plugins — Cookie banner
   - Single solid panel (no semi-transparent surround)
   - Sits above the existing UI, bottom-right on desktop, full-width-ish on mobile
*/

.ra-cookie-root,
#ra-cookie-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: min(420px, calc(100vw - 32px));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", sans-serif;
}

/* Optional fade-out when hiding */
.ra-cookie-root.ra-cookie-hidden,
#ra-cookie-root.ra-cookie-hidden {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.26s ease-out, transform 0.26s ease-out;
}

.ra-cookie-banner {
  background:
    radial-gradient(150% 220% at 0% 0%, rgba(169, 122, 255, 0.5), transparent),
    radial-gradient(130% 200% at 100% 100%, rgba(65, 235, 136, 0.35), #05030b);
  border-radius: 18px;
  padding: 14px 16px 12px;
  color: #f9f7ff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  line-height: 1.5;
}

/* Layout */
.ra-cookie-main {
  margin-bottom: 8px;
}

.ra-cookie-heading {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.ra-cookie-copy {
  margin: 0 0 10px;
  color: rgba(248, 247, 255, 0.88);
}

/* Buttons */
.ra-cookie-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.ra-cookie-btn {
  flex: 1 1 auto;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out,
              background 0.12s ease-out, color 0.12s ease-out;
}

.ra-cookie-btn-primary {
  background: linear-gradient(180deg, #41eb88, #22d86a);
  box-shadow:
    0 12px 28px rgba(46, 232, 112, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.06) inset;
  color: #04110b;
  font-weight: 600;
}

.ra-cookie-btn-primary:hover,
.ra-cookie-btn-primary:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #45f090, #2de077);
  box-shadow:
    0 18px 40px rgba(46, 232, 112, 0.32),
    0 0 0 1px rgba(0, 0, 0, 0.08) inset;
}

.ra-cookie-btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 10px 24px rgba(46, 232, 112, 0.26),
    0 0 0 1px rgba(0, 0, 0, 0.08) inset;
}

.ra-cookie-btn-secondary {
  background: rgba(5, 7, 16, 0.75);
  color: #f5f5ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ra-cookie-btn-secondary:hover {
  background: rgba(10, 12, 25, 0.95);
}

/* Link row (Cookie settings + Privacy) */
.ra-cookie-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0 10px 0 0;
  font-size: 12px;
  color: #e0ddff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.ra-cookie-link:hover {
  color: #ffffff;
}

.ra-cookie-privacy {
  font-size: 12px;
  color: rgba(233, 232, 255, 0.85);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.ra-cookie-privacy:hover {
  color: #ffffff;
}

/* Details panel */
.ra-cookie-details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.ra-cookie-section-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.ra-cookie-row {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.ra-cookie-row-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

.ra-cookie-row-body {
  flex: 1 1 auto;
  font-size: 12px;
  color: rgba(245, 244, 255, 0.9);
}

.ra-cookie-row-analytics {
  align-items: center;
}

.ra-cookie-row-analytics .ra-cookie-row-body {
  margin-left: 6px;
}

.ra-cookie-row-text {
  font-size: 12px;
  color: rgba(235, 234, 255, 0.9);
}

/* Toggle switch */
.ra-cookie-toggle-wrap {
  flex: 0 0 auto;
}

.ra-cookie-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.ra-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ra-cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(16, 17, 30, 0.9);
  transition: 0.18s;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.ra-cookie-switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  top: 2px;
  background: linear-gradient(135deg, #41eb88, #22d86a);
  border-radius: 50%;
  transition: 0.18s;
  box-shadow: 0 0 10px rgba(65, 235, 136, 0.7);
}

/* ✅ ON state: softer green track so it's obvious */
.ra-cookie-switch input:checked + .ra-cookie-switch-slider {
  background: linear-gradient(
    180deg,
    rgba(65, 235, 136, 0.45),
    rgba(34, 216, 106, 0.26)
  );
  box-shadow:
    inset 0 0 0 1px rgba(65, 235, 136, 0.9),
    0 0 16px rgba(65, 235, 136, 0.55);
}

.ra-cookie-switch input:checked + .ra-cookie-switch-slider:before {
  transform: translateX(20px);
}

/* Details actions */
.ra-cookie-details-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .ra-cookie-root,
  #ra-cookie-root {
    left: 16px;
    right: 16px;
    bottom: 12px;
    max-width: none;
  }

  .ra-cookie-banner {
    padding: 12px 12px 10px;
  }

  .ra-cookie-buttons {
    flex-direction: column;
  }

  .ra-cookie-btn {
    width: 100%;
  }
}
