/* ====================================================
   QMtex® — cookie consent styles (self-hosted, GDPR)
   ==================================================== */

/* Banner */
.cc-banner{
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  color: #1F2328;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.2), 0 0 0 1px rgba(0,0,0,.04);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
  font-family: var(--font-body, system-ui, sans-serif);
}
.cc-banner.cc-open{ opacity:1; transform:none; }

.cc-banner .cc-inner{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  align-items: center;
}
.cc-banner h2{
  font-family: var(--font-display, "Nunito", sans-serif);
  font-size: 1.1rem;
  margin: 0 0 .35rem;
  color: #1F2328;
}
.cc-banner p{
  margin: 0;
  font-size: .93rem;
  color: #4a5058;
  line-height: 1.5;
}
.cc-banner a{ color: #1F2328; text-decoration: underline; }

.cc-actions{
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cc-btn{
  border: 2px solid transparent;
  padding: .65rem 1.05rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .15s ease;
  white-space: nowrap;
}
.cc-btn-primary{
  background: #1F2328;
  color: #ECD04E;
}
.cc-btn-primary:hover{ background: #ECD04E; color: #1F2328; transform: translateY(-1px); }
.cc-btn-ghost{
  background: transparent;
  color: #1F2328;
  border-color: #1F2328;
}
.cc-btn-ghost:hover{ background: #1F2328; color: #ECD04E; }

/* Preferences modal */
.cc-modal-overlay{
  position: fixed; inset: 0;
  background: rgba(15,17,20,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.cc-modal-overlay.cc-open{ opacity: 1; }

.cc-modal{
  background: #fff;
  color: #1F2328;
  border-radius: 16px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 40px 80px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
}
.cc-modal-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid #eaebee;
}
.cc-modal-head h2{
  font-family: var(--font-display, "Nunito", sans-serif);
  margin: 0;
  font-size: 1.25rem;
}
.cc-modal-close{
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  width: 38px; height: 38px;
  border-radius: 8px;
  cursor: pointer;
  color: #1F2328;
}
.cc-modal-close:hover{ background: #f2f3f5; }

.cc-modal-body{ padding: 1.25rem 1.4rem; }
.cc-modal-body > p{ margin: 0 0 1.25rem; color: #4a5058; font-size: .95rem; }

.cc-cat{
  border: 1px solid #eaebee;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: .9rem;
}
.cc-cat-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.cc-cat h3{
  font-family: var(--font-display, "Nunito", sans-serif);
  margin: 0;
  font-size: 1rem;
}
.cc-cat p{
  margin: .4rem 0 0;
  color: #4a5058;
  font-size: .88rem;
}

/* Toggle switch */
.cc-switch{
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
  flex-shrink: 0;
}
.cc-switch input{ opacity: 0; width: 0; height: 0; }
.cc-switch .cc-slider{
  position: absolute; inset: 0;
  background: #cfd2d7;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}
.cc-switch .cc-slider::before{
  content: "";
  position: absolute;
  left: 3px; bottom: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cc-switch input:checked + .cc-slider{ background: #1F2328; }
.cc-switch input:checked + .cc-slider::before{ transform: translateX(20px); }
.cc-switch input:disabled + .cc-slider{ background: #ECD04E; cursor: not-allowed; }

.cc-modal-foot{
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 1rem 1.4rem 1.2rem;
  border-top: 1px solid #eaebee;
}

/* Responsive */
@media (max-width: 720px){
  .cc-banner .cc-inner{
    grid-template-columns: 1fr;
    padding: 1.1rem 1.2rem;
  }
  .cc-actions{ justify-content: stretch; }
  .cc-actions .cc-btn{ flex: 1; }
}
.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
