.consent-banner {
  position: fixed;
  bottom: 16px;
  right: 16px;
  max-width: 440px;
  background: #fff;
  color: #333;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
  z-index: 9999;
  display: none;
}
.consent-banner p {
  margin: 0 0 12px;
}
.consent-banner-privacy {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #888;
  text-decoration: underline;
}
.consent-banner-privacy:hover {
  color: #00529C;
}
.consent-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}
.consent-btn {
  padding: 7px 12px;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.consent-banner .consent-btn svg {
  width: 12px;
  height: 12px;
}
.consent-btn svg {
  flex-shrink: 0;
}
.consent-btn-accept {
  background: #00529C;
  color: #fff;
}
.consent-btn-accept:hover {
  background: #0066b8;
}
.consent-btn-decline {
  background: #e8eef5;
  color: #333;
}
.consent-btn-decline:hover {
  background: #d0dbe8;
}
.consent-btn-settings {
  background: #e8eef5;
  color: #333;
}
.consent-btn-settings:hover {
  background: #d0dbe8;
}
.consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
}
.consent-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  color: #333;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 28px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  z-index: 10000;
}
.consent-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  border-radius: 4px;
  transition: color .2s, background-color .2s;
}
.consent-modal-close:hover {
  color: #333;
  background: #e8eef5;
}
.consent-modal-close:focus-visible {
  outline: 2px solid #00529C;
  outline-offset: 2px;
}
.consent-modal h2 {
  font-size: 1.25em;
  font-weight: 600;
  margin: 0 0 8px;
  color: #333;
}
.consent-modal > p {
  margin: 0 0 20px;
  color: #555;
}
.consent-services {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.consent-service {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 12px 14px;
}
.consent-service-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.consent-service-header strong {
  font-size: 14px;
}
.consent-badge {
  font-size: 11px;
  color: #00529C;
  font-weight: 600;
  margin-left: auto;
}
.consent-details-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #888;
  transition: transform .2s;
  flex-shrink: 0;
  line-height: 0;
}
.consent-details-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}
.consent-details-toggle:hover,
.consent-details-toggle:focus-visible {
  color: #00529C;
  outline: 2px solid #00529C;
  outline-offset: 2px;
  border-radius: 2px;
}
.consent-details {
  padding: 8px 0 0 48px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #555;
}
.consent-details p {
  margin: 0 0 4px;
}
.consent-details p + .consent-purpose {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}
.consent-details p + .consent-purpose:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.consent-details strong {
  color: #333;
}
.consent-details em {
  color: #888;
  font-size: 12px;
}
.consent-purpose {
  font-size: 11.5px;
  color: #888;
  font-style: italic;
}
.consent-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.consent-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.consent-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 22px;
  cursor: pointer;
  transition: background .2s;
}
.consent-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.consent-switch input:checked + .consent-slider {
  background: #00529C;
}
.consent-switch input:disabled + .consent-slider {
  background: #ccc;
  opacity: .5;
  cursor: not-allowed;
}
.consent-auth-notice {
  background: #eef4fa;
  border: 1px solid #b8d4eb;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: #00529C;
}
.consent-switch input:checked + .consent-slider::before {
  transform: translateX(16px);
}
.consent-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}
.consent-privacy-link {
  color: #00529C;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.consent-privacy-link:hover {
  text-decoration: underline;
}
@media (max-width: 480px) {
  .consent-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: none;
  }
  .consent-banner .consent-buttons {
    flex-direction: column;
  }
  .consent-banner .consent-btn {
    justify-content: center;
    width: 100%;
  }
  .consent-modal {
    width: 95%;
    padding: 20px 16px;
  }
  .consent-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .consent-modal-footer .consent-buttons {
    flex-direction: column;
  }
  .consent-modal-footer .consent-btn {
    justify-content: center;
    width: 100%;
  }
}
