/* File: assets/css/consent.css */
/* Fully scoped under .ccmp-root to prevent theme collisions */

.ccmp-root{
  position: fixed;
  left: 0;
  right: 0;
  z-index: 2147483000;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  pointer-events: none;
}
.ccmp-root .ccmp-fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  height: 70px;
  border-radius: 50px;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  background: #fff;
  color: #111;
  font-size: 25px;
  /*line-height: 48px;*/
  padding: 20px;
  text-align: center;
  z-index: 2147483001;
}

#img.emoji {
  scale: 1.2;
}

/* dacă vrei să apară doar după ce user a ales consimțământul */
.ccmp-root.ccmp-show-banner .ccmp-fab{
  opacity: 0;
}

.ccmp-root[data-ccmp-position="bottom"]{bottom:0}
.ccmp-root[data-ccmp-position="top"]{top:0}

.ccmp-root .ccmp-banner{
  max-width: min(1080px, calc(100vw - 20px));  margin:16px auto;
  background:#fff;
  color:#111;
  border-radius:16px;
  box-shadow:0 14px 40px rgba(0,0,0,.35);
  padding:16px;
  pointer-events:auto;
  display:none;
}
.ccmp-root.ccmp-show-banner .ccmp-banner{display:block}

.ccmp-root .ccmp-banner__content{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.ccmp-root .ccmp-banner__text{flex: 1 1 100%; min-width: 0; max-width: none;}
.ccmp-root .ccmp-title{font-size:16px;font-weight:700;margin-bottom:4px}
.ccmp-root .ccmp-message{font-size:14px;opacity:.9;line-height:1.35}
.ccmp-root .ccmp-banner__actions{flex: 1 1 100%; display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end;}

.ccmp-root .ccmp-btn{
  border:0;
  border-radius:999px;
  padding:10px 14px;
  font-size:14px;
  cursor:pointer;
  transition:transform .06s ease,opacity .2s ease;
}
.ccmp-root .ccmp-btn:active{transform:scale(.98)}
.ccmp-root .ccmp-btn--primary{background:#fff;color:#111;font-weight:700}
.ccmp-root .ccmp-btn--secondary{background:rgba(73, 67, 67, 0.14);color:#111}
.ccmp-root .ccmp-btn--ghost{background:transparent;color:#111;text-decoration:underline;opacity:.9}

.ccmp-root .ccmp-modal{
  position:fixed;
  inset:0;
  display:none;
  pointer-events:none;
}
.ccmp-root .ccmp-modal.ccmp-open{display:block;pointer-events:auto}

.ccmp-root .ccmp-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
}

.ccmp-root .ccmp-modal__panel{
  position:relative;
  max-width:720px;
  margin:8vh auto 0;
  background:#fff;
  color:#111;
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  overflow:hidden;
}

.ccmp-root .ccmp-modal__header,
.ccmp-root .ccmp-modal__footer{
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.ccmp-root .ccmp-modal__header{border-bottom:1px solid rgba(0,0,0,.08)}
.ccmp-root .ccmp-modal__footer{
  border-top:1px solid rgba(0,0,0,.08);
  justify-content:flex-end;
}

.ccmp-root .ccmp-icon-btn{
  border:0;
  background:transparent;
  font-size:20px;
  cursor:pointer;
  line-height:1;
  padding:6px 6px;
  border-radius:10px;
}
.ccmp-root .ccmp-icon-btn:hover{background:rgba(0,0,0,.05)}

.ccmp-root .ccmp-modal__body{padding:10px 16px 16px}

.ccmp-root .ccmp-pref__row{
  display:grid;
  grid-template-columns:0.5fr 1.5fr 0.2fr;
  gap:10px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.ccmp-root .ccmp-pref__row:last-child{border-bottom:0}
.ccmp-root .ccmp-pref__label{font-weight:700}
.ccmp-root .ccmp-pref__desc{opacity:.85;font-size:13px;text-align: justify}
.ccmp-root .ccmp-disabled{opacity:.55}

.ccmp-root .ccmp-switch{
  position:relative;
  display:inline-block;
  margin-left: 10px;
  width:48px;
  height:28px;
}
.ccmp-root .ccmp-switch input{opacity:0;width:0;height:0}
.ccmp-root .ccmp-slider{
  position:absolute;
  cursor:pointer;
  inset:0;
  background:rgba(0,0,0,.12);
  transition:.2s;
  border-radius:999px;
}
.ccmp-root .ccmp-slider:before{
  position:absolute;
  content:"";
  height:22px;
  width:22px;
  left:3px;
  top:3px;
  background:#fff;
  transition:.2s;
  border-radius:50%;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.ccmp-root .ccmp-switch input:checked + .ccmp-slider{background:#111}
.ccmp-root .ccmp-switch input:checked + .ccmp-slider:before{transform:translateX(20px)}

.ccmp-root .ccmp-toggle--disabled{
  width:48px;height:28px;border-radius:999px;
  background:rgba(0,0,0,.12);position:relative;
}
.ccmp-root .ccmp-toggle--disabled span{
  position:absolute;inset:3px auto 3px 3px;
  width:22px;border-radius:50%;background:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}

.ccmp-root .ccmp-pref__row .ccmp-toggle.ccmp-toggle--disabled{
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;

  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #111 !important;     /* ON track */
  position: relative;
  pointer-events: none;            /* can't change it */
  cursor: not-allowed;
}

.ccmp-root .ccmp-pref__row .ccmp-toggle.ccmp-toggle--disabled span{
  position: absolute;
  inset: 3px 3px 3px auto;         /* knob right */
  width: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

/* Necessary (locked) should not show hand cursor */
.ccmp-root .ccmp-switch--locked,
.ccmp-root .ccmp-switch--locked *{
  cursor: default !important;
}

.ccmp-root .ccmp-switch--locked .ccmp-slider{
  cursor: default !important;
}

.ccmp-root .ccmp-iframe-placeholder{
  border:1px dashed rgba(0,0,0,.25);
  border-radius:16px;
  padding:16px;
  background:rgba(0,0,0,.02);
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.ccmp-root .ccmp-iframe-placeholder__text{margin:0;font-size:14px;opacity:.85}
.ccmp-root .ccmp-iframe-placeholder__btn{white-space:nowrap}

@media (max-width:640px){
  .ccmp-root .ccmp-modal__panel{margin:6vh 10px 0}
  .ccmp-root .ccmp-pref__row{grid-template-columns:1fr}
  .ccmp-root .ccmp-banner{margin:10px}
}