/* ==========================================================================
   Restaurant Cookie Consent v2 — cookie-consent.css
   CSS custom properties are injected by JS from rccSettings,
   so ALL colour values live in one place.
   ========================================================================== */

/* ── Banner ── */
.rcc-banner {
  /* Positioning */
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 1.5rem));
  z-index: 99999;

  /* Size */
  width: calc(100% - 2rem);
  max-width: 500px;
  box-sizing: border-box;

  /* Appearance — colours set via CSS vars injected by JS */
  background: var(--rcc-bg, #1a1a1a);
  color: var(--rcc-text, #f0f0f0);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.22);

  /* Layout */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;

  /* Fade-in */
  opacity: 0;
  transition: opacity .3s ease, transform .35s cubic-bezier(.34,1.1,.64,1);
  pointer-events: none;
}

.rcc-banner.rcc-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ── Text ── */
.rcc-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .8125rem;   /* 13px */
  line-height: 1.45;
  color: var(--rcc-text, #f0f0f0);
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.rcc-text a.rcc-learn-more {
  color: var(--rcc-link, #f97316);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
  white-space: nowrap;
}
.rcc-text a.rcc-learn-more:hover,
.rcc-text a.rcc-learn-more:focus { border-bottom-color: var(--rcc-link, #f97316); }

/* ── Buttons group ── */
.rcc-actions {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

/* ── Shared button ── */
.rcc-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .75rem;   /* 12px */
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: .45rem .85rem;
  transition: filter .15s ease, transform .1s ease;
  white-space: nowrap;
}
.rcc-btn:active { transform: scale(.95); }
.rcc-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.rcc-btn--accept {
  background: var(--rcc-accept-bg, #f97316);
  color: var(--rcc-accept-text, #fff);
}
.rcc-btn--accept:hover { filter: brightness(1.1); }

.rcc-btn--reject {
  background: var(--rcc-reject-bg, rgba(255,255,255,.12));
  color: var(--rcc-reject-text, #ccc);
}
.rcc-btn--reject:hover { filter: brightness(1.25); }

/* ==========================================================================
   Mobile ≤ 480px — compact single-column layout
   ========================================================================== */
@media (max-width: 480px) {
  .rcc-banner {
    /* Even narrower bottom gap, ultra-compact padding */
    bottom: .6rem;
    width: 95%;
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    padding: .7rem .85rem .75rem;
    border-radius: 12px;
  }

  .rcc-text {
    font-size: .8125rem;
    text-align: left;
  }

  .rcc-actions {
    flex-direction: column;
    gap: .35rem;
    width: 100%;
  }

  .rcc-btn {
    width: 100%;
    text-align: center;
    padding: .55rem .85rem;
    font-size: .8125rem;
    border-radius: 7px;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .rcc-banner { transition: opacity .15s ease; transform: translateX(-50%); }
  .rcc-banner.rcc-visible { transform: translateX(-50%); }
}
