/*
 * Cookie consent banner. Self-contained colours (not the host page's custom
 * properties) so it renders identically on landing/pricing/login pages, the
 * merchant dashboard and anywhere else it's included — those use different
 * stylesheets with different variable names for close to the same palette.
 */
.vl-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 940; /* below any 56px round FAB (z-index 900 + its own stacking headroom
                   is fine since FABs are shifted up while this banner is present —
                   see body:has() below — this value is just "above page content"). */
  background: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

.vl-cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.vl-cookie-banner-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #e0e0e0;
  flex: 1 1 320px;
  min-width: 0;
}

.vl-cookie-banner-text a {
  color: #ffffff;
  text-decoration: underline;
}

.vl-cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Both buttons share size, padding and border-radius — equal visual weight.
   Necessary-only is not styled as a lesser/greyed-out option. */
.vl-cookie-btn {
  appearance: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.vl-cookie-btn:hover { opacity: 0.85; }
.vl-cookie-btn:active { transform: scale(0.98); }
.vl-cookie-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.vl-cookie-btn-necessary {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff;
}

.vl-cookie-btn-accept {
  background: #ffffff;
  color: #1a1a1a;
  border: 1.5px solid #ffffff;
}

@media (max-width: 640px) {
  .vl-cookie-banner-inner {
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .vl-cookie-banner-actions {
    justify-content: stretch;
  }
  .vl-cookie-btn {
    flex: 1 1 0;
    text-align: center;
  }
}

/* Shift any floating action button up while the banner is on screen, rather
   than letting it sit under (or visually collide with) a full-width bar.
   Same pattern already used for the support FAB vs. the toast — see
   support-fab.css's body:has(#vl-sfab) .vl-toast rule. #vl-sfab itself (not
   its inner #vl-sfab-btn) is the fixed-positioned element. */
body:has(#vl-cookie-banner) #vl-sfab,
body:has(#vl-cookie-banner) .cart-fab,
body:has(#vl-cookie-banner) #ms-cart-fab {
  bottom: 108px;
}
@media (max-width: 640px) {
  body:has(#vl-cookie-banner) #vl-sfab,
  body:has(#vl-cookie-banner) .cart-fab,
  body:has(#vl-cookie-banner) #ms-cart-fab {
    bottom: 168px;
  }
}
