/* Cookie Consent – LGPD (Lei nº 13.709/2018) Vanilla CSS • < 10 KB */

.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cc-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #ffffff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  padding: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.cc-banner--visible {
  transform: translateY(0);
}

.cc-banner__text {
  flex: 1 1 300px;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

.cc-banner__text a {
  color: #16a34a;
  text-decoration: underline;
  font-weight: 500;
}

.cc-banner__text a:hover {
  color: #16a34a;
}

.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cc-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.4;
}

.cc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cc-btn:active {
  transform: translateY(0);
}

.cc-btn--accept {
  background: #16a34a;
  color: #fff;
}

.cc-btn--accept:hover {
  background: #15803d;
}

.cc-btn--reject {
  background: transparent;
  color: #16a34a;
  border: 2px solid #16a34a;
}

.cc-btn--reject:hover {
  background: #cbd5e1;
}

.cc-btn--settings {
  background: transparent;
  color: #16a34a;
  border: 2px solid #16a34a;
}

.cc-btn--settings:hover {
  background: #cbd5e1;
}

.cc-btn--save {
  background: #16a34a;
  color: #fff;
  width: 100%;
  margin-top: 8px;
}

.cc-btn--save:hover {
  background: #16a34a;
}

.cc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100000;
  transform: translate(-50%, -50%) scale(0.92);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 92%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.cc-modal--visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.cc-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.cc-modal__desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.cc-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

.cc-category:last-of-type {
  border-bottom: none;
}

.cc-category__info {
  flex: 1;
  padding-right: 16px;
}

.cc-category__name {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.cc-category__detail {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

.cc-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cc-toggle__slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cc-toggle__slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cc-toggle input:checked + .cc-toggle__slider {
  background: #16a34a;
}

.cc-toggle input:checked + .cc-toggle__slider::before {
  transform: translateX(22px);
}

.cc-toggle input:disabled + .cc-toggle__slider {
  background: #16a34a;
  opacity: 0.6;
  cursor: not-allowed;
}

.cc-toggle input:disabled:checked + .cc-toggle__slider::before {
  transform: translateX(22px);
}

.cc-footer-link {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.cc-footer-link:hover {
  opacity: 1;
  color: #f6b538;
}

@media (max-width: 600px) {
  .cc-banner {
    padding: 16px 14px 16px;
    flex-direction: column;
    gap: 12px;
    max-height: 85dvh;
    overflow-y: auto;
  }

  .cc-banner__text {
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    flex-basis: auto;
  }

  .cc-banner__actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cc-btn {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
    padding: 9px 10px;
    font-size: 12px;
  }

  .cc-btn--settings {
    flex: 1 1 100%;
  }

  .cc-modal {
    padding: 20px 16px;
    width: 96%;
    max-height: 90dvh;
  }

  .cc-modal__title {
    font-size: 17px;
  }

  .cc-modal__desc {
    font-size: 12px;
  }

  .cc-category__name {
    font-size: 13px;
  }

  .cc-category__detail {
    font-size: 11px;
  }
}

.cc-modal::-webkit-scrollbar {
  width: 6px;
}

.cc-modal::-webkit-scrollbar-track {
  background: transparent;
}

.cc-modal::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.cc-btn:focus-visible,
.cc-toggle input:focus-visible + .cc-toggle__slider,
.cc-footer-link:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}
