/* Stiluri Banner + Modal + Toggle + Acordeon */

/* Banner */
#gdpr-banner {
  display: none;
  position: fixed;
  bottom: 10%; /* spațiu vizibil de jos */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-family: sans-serif;
  text-align: center;
  z-index: 10000;
}

#gdpr-banner button,
#gdpr-banner a {
  margin-left: 10px;
  padding: 10px 25px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

#gdpr-banner button {
  background: #0073e6;
  color: #fff;
}

#gdpr-banner a {
  background: #eee;
  color: #333;
}

/* Buton „Modifică preferințele” */
#gdpr-preferences-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0073e6;
  border: none;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#gdpr-preferences-btn svg {
  stroke: white;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

#gdpr-preferences-btn:hover {
  background-color: #005bb5;
}

/* Overlay + Modal */
#gdpr-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
}

#gdpr-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  font-family: sans-serif;
}

#gdpr-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-bottom: 2px solid #0073e6;
  position: relative;
}

#gdpr-modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: #0073e6;
}

#gdpr-modal-header .close-modal {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #0073e6;
  padding: 4px;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

#gdpr-modal-header .close-modal:hover {
  color: #005bb5;
}

#gdpr-modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 15px 20px;
}

.cookie-section {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.cookie-section:last-child {
  border-bottom: none;
}

.cookie-section .cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-section .cookie-header .left {
  display: flex;
  align-items: center;
}

.cookie-section p.cookie-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: #444;
}

/* Toggle switch */
.cookie-toggle {
  -webkit-appearance: none;
  width: 36px;
  height: 18px;
  background: #ccc;
  
  border-radius: 9px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 8px;
  border: none;
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 1px;
  left: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
}

.cookie-toggle:checked {
  background: #139dd7 !important; /* culoare albastră mai clară */
}

.cookie-toggle:checked::after {
  transform: translateX(18px);
  background: #fff;
  border: 1px solid #0b70c3;
  box-shadow: 0 0 0 2px rgba(0, 115, 230, 0.3);
}


/* Acordeon arrow */
.toggle-accordion {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  color: #666;
  transition: transform 0.2s;
}

.toggle-accordion.open {
  transform: rotate(180deg);
  color: #33a5d5;
}

.cookie-list {
  list-style: disc;
  margin: 8px 0 0 20px;
  padding-left: 1em;
  display: none;
}

/* Footer modal */
#gdpr-modal-footer {
  text-align: right;
  border-top: 1px solid #eee;
  padding: 10px 20px;
}

#gdpr-save {
  background: #0073e6;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
}

.cookie-count {
  margin-left: 6px;
}


/* Responsive pentru mobil */
@media (max-width: 480px) {
  #gdpr-banner {
    padding: 20px 10px;
    bottom: 30%;
  }
  #gdpr-manage {
  padding: 5px 10px !important;
}
  #gdpr-banner button,
  #gdpr-banner a {
    display: block;
    width: 100%;
    margin: 8px 0 0;
  }
}

