/* Cookie Consent — tema Massas Bizzotto (claro, acento laranja).
   Versão: v1.0_20260530_38737026. Botões "Aceitar"/"Rejeitar" com igual peso visual. */

.cc-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px);
  width: calc(100% - 32px); max-width: 920px; z-index: 10000;
  background: #ffffff; color: #16202e; border: 1px solid #e6e9ee;
  border-radius: 14px; box-shadow: 0 18px 50px rgba(16,24,40,.22);
  padding: 1.25rem 1.4rem; opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}
.cc-banner.cc-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cc-banner-container { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.cc-banner-content { flex: 1 1 320px; }
.cc-title { font-size: 1.1rem; margin: 0 0 .3rem; font-family: Georgia, serif; color: #16202e; }
.cc-description { font-size: .9rem; color: #5b6675; margin: 0; line-height: 1.5; }
.cc-link, .cc-description a { color: #e8552d; text-decoration: underline; }
.cc-banner-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

.cc-btn { font: inherit; font-weight: 700; border-radius: 8px; padding: .6rem 1.2rem; cursor: pointer; border: 2px solid transparent; transition: .2s ease; font-size: .92rem; }
.cc-btn-primary { background: #e8552d; color: #fff; border-color: #e8552d; }
.cc-btn-primary:hover { background: #ff6a3d; border-color: #ff6a3d; }
/* peso visual igual ao "Aceitar" — sem dark patterns */
.cc-btn-secondary { background: #fff; color: #16202e; border-color: #16202e; }
.cc-btn-secondary:hover { background: #16202e; color: #fff; }
.cc-btn-link { background: none; border: none; color: #5b6675; text-decoration: underline; padding: .6rem .5rem; }
.cc-btn-link:hover { color: #16202e; }

/* Painel de definições */
.cc-settings-modal { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.cc-settings-modal.cc-visible { opacity: 1; visibility: visible; }
.cc-settings-overlay { position: absolute; inset: 0; background: rgba(10,16,26,.55); }
.cc-settings-container { position: relative; background: #fff; color: #16202e; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 16px; padding: 1.6rem; box-shadow: 0 24px 60px rgba(16,24,40,.3); }
.cc-settings-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cc-settings-title { font-family: Georgia, serif; font-size: 1.3rem; margin: 0; }
.cc-settings-close { background: none; border: none; cursor: pointer; color: #5b6675; padding: 4px; }
.cc-settings-description { color: #5b6675; font-size: .92rem; }
.cc-category { border: 1px solid #e6e9ee; border-radius: 10px; padding: 1rem; margin-bottom: .85rem; }
.cc-category-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.cc-category-title { font-size: 1rem; margin: 0 0 .25rem; }
.cc-category-description { font-size: .85rem; color: #5b6675; margin: 0; }

/* Toggle */
.cc-toggle { position: relative; flex: none; }
.cc-toggle input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.cc-toggle-label { display: block; width: 44px; height: 24px; background: #cbd2db; border-radius: 100px; position: relative; transition: background .2s ease; }
.cc-toggle-label::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s ease; }
.cc-toggle input:checked + .cc-toggle-label { background: #0fb9a6; }
.cc-toggle input:checked + .cc-toggle-label::after { transform: translateX(20px); }
.cc-toggle-disabled .cc-toggle-label { background: #16202e; opacity: .55; }
.cc-settings-footer { margin-top: 1rem; text-align: right; }

.cc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.cc-footer-separator { margin: 0 .35rem; }

@media (max-width: 560px) {
  .cc-banner-actions { width: 100%; }
  .cc-btn-primary, .cc-btn-secondary { flex: 1; }
}
