/**
 * @file: consent.css
 * @description: Cookie consent banner styles (Law 195/2024)
 * @created: 2026-08-28
 */

.busline-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  background: #1e2228;
  color: #e9ecef;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
  padding: 1.25rem 0;
}

.busline-consent-banner[hidden] {
  display: none !important;
}

.busline-consent-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.busline-consent-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #fff;
}

.busline-consent-text {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 0.9rem;
  color: #cacaca;
}

.busline-consent-text a {
  color: #5eb9f0;
  text-decoration: underline;
}

.busline-consent-cats {
  display: none !important;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  margin: 0 0 1rem;
}

.busline-consent-banner.is-settings .busline-consent-cats,
.busline-consent-cats.is-open {
  display: flex !important;
}

.busline-consent-cat {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  margin: 0;
  cursor: pointer;
  color: #f6f7f9;
}

.busline-consent-cat input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  min-width: 1.15rem;
  margin: 0.15rem 0 0 !important;
  flex-shrink: 0;
  border: 2px solid #fff !important;
  border-radius: 3px;
  background: #fff !important;
  cursor: pointer;
  position: relative !important;
  opacity: 1 !important;
  display: inline-block !important;
  vertical-align: top;
  box-shadow: none !important;
}

.busline-consent-cat input[type="checkbox"]::after {
  content: "";
  position: absolute;
  left: 0.22rem;
  top: 0.02rem;
  width: 0.35rem;
  height: 0.65rem;
  border: solid #113c80;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.busline-consent-cat input[type="checkbox"]:checked {
  background: #5eb9f0 !important;
  border-color: #5eb9f0 !important;
}

.busline-consent-cat input[type="checkbox"]:checked::after {
  opacity: 1;
  border-color: #113c80;
}

.busline-consent-cat input[type="checkbox"]:disabled {
  cursor: not-allowed;
  background: #5eb9f0 !important;
  border-color: #5eb9f0 !important;
  opacity: 0.85 !important;
}

.busline-consent-cat input[type="checkbox"]:disabled::after {
  opacity: 1;
}

.busline-consent-cat small {
  display: block;
  color: #aab0bc;
  font-size: 0.75rem;
}

.busline-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.busline-consent-btn {
  appearance: none;
  border-radius: 6px;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
  min-width: 8.5rem;
  text-align: center;
}

.busline-consent-btn-accept {
  background: #113c80;
  color: #fff;
  border-color: #113c80;
}

.busline-consent-btn-reject {
  background: transparent;
  color: #fff;
  border-color: #aab0bc;
}

.busline-consent-btn-save {
  background: #343f52;
  color: #fff;
  border-color: #343f52;
}

#busline-consent-save {
  display: none;
}

.busline-consent-banner.is-settings #busline-consent-save {
  display: inline-block;
}

.busline-consent-banner.is-settings #busline-consent-customize {
  display: none;
}

.busline-consent-btn:hover,
.busline-consent-btn:focus {
  opacity: 0.92;
  outline: 2px solid #5eb9f0;
  outline-offset: 2px;
}

.busline-cookie-settings {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

footer .js-cookie-settings {
  text-decoration: none;
}

footer .js-cookie-settings:hover,
footer .js-cookie-settings:focus {
  text-decoration: underline;
}

.busline-map-placeholder {
  min-height: 450px;
  background: #f6f7f9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.4rem;
}

@media (max-width: 767px) {
  .busline-consent-btn {
    flex: 1 1 100%;
    min-width: 0;
  }
}
