/* 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;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483001;
  line-height: 1;
}

img.wp-smiley, img.emoji {
    height: 2em !important;
    width: 2em !important;
}

/* 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}
}

/* =========================
   Responsive modal fix
   ========================= */

.ccmp-root .ccmp-modal__panel{
  width: min(720px, calc(100vw - 24px));
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.ccmp-root .ccmp-modal__body{
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

/* pe mobil, fab-ul să nu mai încurce când modalul e deschis */
.ccmp-root .ccmp-modal.ccmp-open ~ .ccmp-fab,
.ccmp-root:has(.ccmp-modal.ccmp-open) .ccmp-fab{
  opacity: 0;
  pointer-events: none;
}

/* tablet / mobile */
@media (max-width: 640px){
  .ccmp-root .ccmp-modal__panel{
    width: calc(100vw - 20px);
    max-height: 88vh;
    margin: 4vh auto 0;
    border-radius: 16px;
  }

  .ccmp-root .ccmp-modal__header,
  .ccmp-root .ccmp-modal__footer{
    padding: 12px 14px;
  }

  .ccmp-root .ccmp-modal__body{
    padding: 8px 14px 14px;
  }

  .ccmp-root .ccmp-pref__row{
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .ccmp-root .ccmp-pref__label{
    font-size: 15px;
  }

  .ccmp-root .ccmp-pref__desc{
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
  }

  .ccmp-root .ccmp-btn{
    font-size: 13px;
    padding: 10px 12px;
  }

  .ccmp-root .ccmp-banner{
    margin: 10px;
  }
}

/* telefoane mici */
@media (max-width: 480px){
  .ccmp-root .ccmp-modal__panel{
    width: calc(100vw - 12px);
    max-height: 86vh;
    margin: 2vh auto 0;
    border-radius: 14px;
  }

  .ccmp-root .ccmp-modal__header,
  .ccmp-root .ccmp-modal__footer{
    padding: 10px 12px;
  }

  .ccmp-root .ccmp-modal__body{
    padding: 8px 12px 12px;
  }

  .ccmp-root .ccmp-pref__row{
    gap: 6px;
    padding: 12px 0;
  }

  .ccmp-root .ccmp-pref__label{
    font-size: 14px;
  }

  .ccmp-root .ccmp-pref__desc{
    font-size: 12px;
    line-height: 1.5;
  }

  .ccmp-root .ccmp-switch,
  .ccmp-root .ccmp-toggle--disabled,
  .ccmp-root .ccmp-pref__row .ccmp-toggle.ccmp-toggle--disabled{
    width: 44px;
    height: 26px;
  }

  .ccmp-root .ccmp-slider:before,
  .ccmp-root .ccmp-toggle--disabled span,
  .ccmp-root .ccmp-pref__row .ccmp-toggle.ccmp-toggle--disabled span{
    width: 20px;
    height: 20px;
  }

  .ccmp-root .ccmp-switch input:checked + .ccmp-slider:before{
    transform: translateX(18px);
  }

  .ccmp-root .ccmp-btn{
    font-size: 12px;
    padding: 9px 11px;
  }

  .ccmp-root .ccmp-fab{
    right: 10px;
    bottom: 10px;
    height: 42px;
    width: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}