/* Aviso de cookies (LGPD) — Center Shop */
.csck-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: #fff; border-top: 4px solid #EA1C24; box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  font-family: 'Montserrat', sans-serif; color: #051756;
  transform: translateY(100%); transition: transform .3s ease;
}
.csck-banner.show { transform: translateY(0); }
.csck-banner__in { max-width: 1200px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.csck-banner p { font-size: 14px; line-height: 21px; margin: 0; }
.csck-banner p a { text-decoration: underline; font-weight: 700; color: inherit; }
.csck-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.csck-btn {
  font-family: inherit; font-size: 13px; font-weight: 600; text-transform: uppercase; line-height: 1;
  border-radius: 999px; padding: 13px 22px; cursor: pointer; border: 2px solid #051756; white-space: nowrap;
  transition: filter .2s;
}
.csck-btn:hover { filter: brightness(1.15); }
.csck-btn--solid { background: #051756; color: #fff; }
.csck-btn--outline { background: transparent; color: #051756; }
.csck-btn--link { background: none; border-color: transparent; color: #EA1C24; padding: 13px 10px; }
.csck-btn:focus-visible, .csck-switch input:focus-visible + .csck-slider, .csck-x:focus-visible { outline: 3px solid #0A7CFF; outline-offset: 2px; }

.csck-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; font-family: 'Montserrat', sans-serif; }
.csck-overlay[hidden] { display: none; }
.csck-modal { position: relative; background: #fff; color: #051756; width: 560px; max-width: 100%; border-radius: 12px; padding: 28px; max-height: 94vh; overflow-y: auto; }
.csck-modal h2 { color: #EA1C24; font-size: 22px; line-height: 28px; font-weight: 700; margin: 0 40px 16px 0; }
.csck-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f1f1; color: #051756; font-size: 18px; cursor: pointer; line-height: 1; }
.csck-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #e5e5e5; }
.csck-cat h3 { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.csck-cat p { font-size: 13px; line-height: 19px; margin: 0; }
.csck-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.csck-switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.csck-slider { position: absolute; inset: 0; background: #b5b5b5; border-radius: 26px; transition: background .2s; }
.csck-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; }
.csck-switch input:checked + .csck-slider { background: #051756; }
.csck-switch input:checked + .csck-slider::before { transform: translateX(20px); }
.csck-switch input:disabled { cursor: not-allowed; }
.csck-switch input:disabled + .csck-slider { opacity: .6; }
.csck-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; border-top: 1px solid #e5e5e5; padding-top: 18px; }

/* botão "voltar ao topo" sobe enquanto o banner estiver visível */
.to-top { transition: opacity .3s, visibility .3s, bottom .3s; }
body.csck-open .to-top { bottom: calc(24px + var(--csck-h, 0px)); }

@media (max-width: 767px) {
  .csck-banner__in { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .csck-actions { flex-direction: column; align-items: stretch; }
  .csck-btn { width: 100%; text-align: center; }
  .csck-foot .csck-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .csck-banner, .to-top, .csck-slider, .csck-slider::before { transition: none; }
}
