.cookies-float-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgb(0, 39, 168);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  z-index: 1050;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cookies-float-btn:hover {
  background-color: rgb(2, 33, 134);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.cookies-container {
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  position: fixed;
  width: 100%;
  bottom: 2rem;
  z-index: 1000;
  display: none;
}
.cookies-content {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  background: #e1e5e7;
  max-width: 600px;
  border-radius: 5px;
  padding: 1rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(1rem);
  animation: slideUp 0.5s forwards;
}
@keyframes slideUp {
  to {
    transform: initial;
    opacity: initial;
  }
}
.cookies-pref label {
  margin-right: 1rem;
}
.cookies-save {
  grid-column: 2;
  grid-row: 1/3;
  background: #093364;
  color: white;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
}
@media (max-width: 500px) {
  .cookies-content {
    grid-template-columns: 1fr;
  }
  .cookies-save {
    grid-column: 1;
    grid-row: 3;
  }
}

.cookies-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1051;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookies-modal-box {
  background: #fff;
  max-width: 600px;
  width: 90%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
}

.cookies-modal-header {
  background-color: #f8f9fa;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.cookies-close {
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.cookies-modal-body {
  padding: 20px;
  font-size: 0.95rem;
  color: #333;
}

.cookies-modal-body p a {
  color: #0d6efd;
  text-decoration: underline;
}

.cookies-section-title {
  margin: 20px 0 10px;
  font-weight: bold;
  font-size: 0.95rem;
  color: #444;
}

.cookies-group {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px;
  background-color: #f9f9f9;
}

.cookies-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookies-modal-footer {
  padding: 16px 20px;
  display: flex;
  gap: 10px;
  justify-content: end;
  background-color: #f8f9fa;
}

.cookies-pref label {
  display: block;
  margin-top: 10px;
}


.cookies-toggle {
  background: #f2f2f7;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.cookies-toggle:hover {
  background-color: #e6e6ec;
}

.cookies-toggle .icon {
  font-weight: bold;
  font-size: 1.2rem;
}

.cookies-details {
  padding: 10px 15px;
  background-color: #fcfcfc;
  border-left: 3px solid #ccc;
  margin-top: 6px;
  border-radius: 5px;
}

.cookie-block {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

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

.cookie-block p {
  margin: 4px 0 8px;
  font-size: 0.88rem;
  color: #444;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

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

.cookie-switch .slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.cookie-switch .slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background-color: white;
  left: 3px;
  top: 3px;
  transition: 0.4s;
}

.cookie-switch input:checked + .slider {
  background-color: #7c3aed;
}

.cookie-switch input:checked + .slider::before {
  transform: translateX(18px);
}

.cookie-switch.slider-active .slider {
  background-color: #6f42c1 !important; /* Cor do switch ativo */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.cookie-switch.slider-active .slider::before {
  transform: translateX(100%);
}


.cookie-switch input[type="checkbox"] {
  display: none;
}

.cookie-switch .slider {
  display: inline-block;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 50px;
  position: relative;
  transition: background-color 0.3s ease;
}

.cookie-switch .slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.cookie-switch input[type="checkbox"]:checked + .slider {
  background-color: #6f42c1;
}

.cookie-switch input[type="checkbox"]:checked + .slider::before {
  transform: translateX(26px);
}
