/* Cookie Manager Styles SISBAT */
#sisbat-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #283a49;
  color: #ffffff;
  padding: 16px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.sisbat-cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.sisbat-cookie-text {
  flex: 1 1 500px;
}

.sisbat-cookie-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: #bb8f6e;
}

.sisbat-cookie-text p {
  margin: 0;
  color: #e0e0e0;
}

.sisbat-cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.sisbat-btn-cookie {
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: 'Roboto', sans-serif;
}

.sisbat-btn-cookie.-accept {
  background: #bb8f6e;
  color: #ffffff;
}

.sisbat-btn-cookie.-accept:hover {
  background: #a67c5c;
}

.sisbat-btn-cookie.-refuse {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.sisbat-btn-cookie.-refuse:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sisbat-btn-cookie.-customize {
  background: transparent;
  color: #bb8f6e;
  text-decoration: underline;
  padding: 10px 12px;
}

.sisbat-btn-cookie.-customize:hover {
  color: #d8b697;
}

.sisbat-btn-cookie.-save {
  background: #bb8f6e;
  color: #ffffff;
}

/* Modale */
#sisbat-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', sans-serif;
}

.sisbat-cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.sisbat-cookie-modal-card {
  position: relative;
  background: #ffffff;
  color: #283a49;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 1;
}

.sisbat-cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: #283a49;
  color: #ffffff;
}

.sisbat-cookie-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
}

.sisbat-cookie-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sisbat-cookie-modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.sisbat-cookie-category {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.sisbat-cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sisbat-cookie-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.sisbat-cookie-cat-header strong {
  display: block;
  font-size: 15px;
  color: #283a49;
  margin-bottom: 4px;
}

.sisbat-cookie-cat-header p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.sisbat-cookie-badge {
  background: #e5e7eb;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Switch toggle */
.sisbat-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.sisbat-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sisbat-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.sisbat-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .sisbat-slider {
  background-color: #bb8f6e;
}

input:checked + .sisbat-slider:before {
  transform: translateX(20px);
}

.sisbat-cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.sisbat-cookie-modal-footer .sisbat-btn-cookie.-refuse {
  border-color: #283a49;
  color: #283a49;
}
