/* ============================================================
   CentSnap 前台弹窗样式：Cookie 同意横幅 + 年龄验证覆盖层
   由 core/storefront.php 的 cs_front_overlays() 注入，配合 front-overlays.js
   ============================================================ */

/* ── Cookie 同意横幅（页面底部）── */
#csCookieBanner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 22px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  box-sizing: border-box;
}
#csCookieBanner .cs-cookie-text {
  flex: 1 1 280px;
  line-height: 1.6;
}
#csCookieBanner .cs-cookie-text a {
  color: #6b21a8;
  text-decoration: underline;
}
#csCookieBanner .cs-cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
#csCookieBanner .cs-cookie-btn {
  border: 1px solid transparent;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s ease;
}
#csCookieBanner .cs-cookie-btn:hover { opacity: .88; }
/* 移动端：按钮堆叠占满宽度 */
#csCookieBanner.cs-mobile { flex-direction: column; align-items: stretch; }
#csCookieBanner.cs-mobile .cs-cookie-actions { flex-direction: column; width: 100%; }
#csCookieBanner.cs-mobile .cs-cookie-btn { width: 100%; text-align: center; }

/* ── 年龄验证全屏覆盖层 ── */
#csAgeGate {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
#csAgeGate .cs-age-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  box-sizing: border-box;
}
#csAgeGate .cs-age-logo {
  max-width: 150px;
  max-height: 56px;
  margin: 0 auto 18px;
  display: block;
  object-fit: contain;
}
#csAgeGate .cs-age-title {
  font-size: 1.5em;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.3;
}
#csAgeGate .cs-age-desc {
  font-size: 0.95em;
  line-height: 1.8;
  margin: 0 0 26px;
  opacity: .85;
}
/* 无障碍描述：屏幕阅读器可见，视觉隐藏 */
#csAgeGate .cs-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#csAgeGate .cs-age-reject-hint {
  font-size: 1.05em;
  line-height: 1.7;
  opacity: .92;
  margin: 0;
}
#csAgeGate .cs-age-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
#csAgeGate .cs-age-btn {
  flex: 1;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .15s ease;
  text-decoration: none;
  display: inline-block;
}
#csAgeGate .cs-age-btn:hover { opacity: .9; }
