/* ===================================================================
   Pesti Érmés — közös cookie bar + granular consent modal
   =================================================================== */

/* ---- Banner ---- */
.cookie-bar{
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(40px);
  width: min(720px, calc(100vw - 32px));
  background: var(--espresso, #2B1C10);
  color: var(--cream, #F0E4CE);
  padding: 20px 24px;
  border: 1px solid var(--oak, #C9A876);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.cookie-bar.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.cookie-bar .ct{
  font-family: 'Manrope', sans-serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
}
.cookie-bar .ct strong{
  display: block;
  font-family: 'Cinzel', serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--oak-light, #DCC094);
  margin-bottom: 6px;
}
.cookie-bar a{
  color: var(--oak-light, #DCC094);
  border-bottom: 1px solid rgba(201, 168, 118, .3);
}
.cookie-bar .ca{ display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar .cb-btn{
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .25em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--oak, #C9A876);
  color: var(--cream, #F0E4CE);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.cookie-bar .cb-btn:hover{
  background: var(--oak, #C9A876);
  color: var(--espresso, #2B1C10);
}
.cookie-bar .cb-btn.primary{
  background: var(--oak, #C9A876);
  color: var(--espresso, #2B1C10);
}
.cookie-bar .cb-btn.primary:hover{ background: var(--oak-light, #DCC094); }

@media (max-width: 700px){
  .cookie-bar{
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
    padding: 16px 18px;
    bottom: 12px;
  }
  .cookie-bar .ct{ font-size: 13px; }
  .cookie-bar .ca{ justify-content: stretch; }
  .cookie-bar .cb-btn{ flex: 1 1 auto; min-width: 0; }
}

/* ---- Modal ---- */
.cookie-modal{
  position: fixed; inset: 0;
  z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  font-family: 'Manrope', sans-serif;
}
.cookie-modal[aria-hidden="false"]{ display: flex; }
.cookie-modal__backdrop{
  position: absolute; inset: 0;
  background: rgba(26, 20, 16, .82);
  backdrop-filter: blur(4px);
}
.cookie-modal__panel{
  position: relative;
  background: var(--espresso, #2B1C10);
  color: var(--cream, #F0E4CE);
  border: 1px solid var(--oak, #C9A876);
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px 32px;
}
.cookie-modal__close{
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: 0; color: var(--cream, #F0E4CE);
  font-size: 24px; line-height: 1; cursor: pointer; padding: 6px;
}
.cookie-modal__close:hover{ color: var(--oak-light, #DCC094); }
.cookie-modal h2{
  font-family: 'Cinzel', serif;
  font-size: 18px;
  letter-spacing: .12em;
  color: var(--oak-light, #DCC094);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.cookie-modal__intro{
  font-size: 13.5px;
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 22px;
  color: var(--cream, #F0E4CE);
}
.cookie-cat{
  border-top: 1px solid rgba(201, 168, 118, .2);
  padding: 16px 0;
}
.cookie-cat:last-of-type{ border-bottom: 1px solid rgba(201, 168, 118, .2); margin-bottom: 22px; }
.cookie-cat__row{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.cookie-cat__head{
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--oak-light, #DCC094);
}
.cookie-cat__head em{
  font-family: 'Manrope', sans-serif;
  font-style: italic;
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: none;
  color: rgba(240, 228, 206, .5);
  margin-left: 6px;
}
.cookie-cat__desc{
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 0;
  color: rgba(240, 228, 206, .75);
}
/* Custom toggle switch */
.cookie-toggle{
  position: relative; width: 40px; height: 22px;
  appearance: none; -webkit-appearance: none;
  background: rgba(201, 168, 118, .25);
  border: 1px solid var(--oak, #C9A876);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.cookie-toggle::after{
  content: ''; position: absolute;
  top: 50%; left: 3px;
  width: 14px; height: 14px;
  background: var(--cream, #F0E4CE);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: left .2s;
}
.cookie-toggle:checked{ background: var(--oak, #C9A876); }
.cookie-toggle:checked::after{ left: 21px; background: var(--espresso, #2B1C10); }
.cookie-toggle:disabled{ opacity: .5; cursor: not-allowed; }
.cookie-modal__actions{
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}
@media (max-width: 540px){
  .cookie-modal__panel{ padding: 22px 20px; }
  .cookie-modal__actions{ justify-content: stretch; }
  .cookie-modal__actions .cb-btn{ flex: 1 1 auto; }
}
