.cookie-consent-banner,
.cookie-consent-modal {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

.cookie-consent-banner *,
.cookie-consent-modal * {
  box-sizing: border-box;
}

.cookie-consent-banner[hidden],
.cookie-consent-overlay[hidden] {
  display: none !important;
}

.cookie-consent-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 10000;
  display: none;
  width: calc(100% - 32px);
  max-width: 1120px;
  padding: 20px 24px;
  color: #fbfaf9;
  background: #191818;
  border: 1px solid rgba(247, 247, 247, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.cookie-consent-banner.is-visible {
  display: block;
}

.cookie-consent-banner-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.cookie-consent-copy {
  min-width: 0;
  flex: 1;
}

.cookie-consent-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.cookie-consent-text {
  margin: 0;
  color: #e8e6e3;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.cookie-consent-text a {
  color: #85dcff;
  text-decoration: underline;
}

.cookie-consent-text a:hover,
.cookie-consent-text a:focus-visible {
  color: #ffffff;
}

.cookie-consent-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.cookie-consent-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.3s;
}

.cookie-consent-btn:focus-visible {
  outline: 2px solid #85dcff;
  outline-offset: 2px;
}

.cookie-consent-btn-accept {
  color: #ffffff;
  background: #026dff;
  border-color: #026dff;
}

.cookie-consent-btn-accept:hover {
  background: #14a9ff;
  border-color: #14a9ff;
}

.cookie-consent-btn-reject {
  color: #ffffff;
  background: transparent;
  border-color: rgba(247, 247, 247, 0.45);
}

.cookie-consent-btn-reject:hover {
  background: rgba(247, 247, 247, 0.08);
  border-color: #ffffff;
}

.cookie-consent-btn-settings {
  color: #026dff;
  background: #ffffff;
  border-color: #ffffff;
}

.cookie-consent-btn-settings:hover {
  color: #014bb3;
  background: #e8f2ff;
}

.cookie-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(25, 24, 24, 0.72);
}

.cookie-consent-overlay.is-visible {
  display: flex;
}

.cookie-consent-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px 24px 20px;
  color: #191818;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.cookie-consent-modal-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cookie-consent-modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.cookie-consent-close {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin: -6px -6px 0 0;
  padding: 0;
  color: #191818;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cookie-consent-close:hover,
.cookie-consent-close:focus-visible {
  background: #e8f2ff;
}

.cookie-consent-modal-text {
  margin: 0 0 20px;
  color: #434141;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent-modal-text a {
  color: #026dff;
  text-decoration: underline;
}

.cookie-consent-option {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid #eceae8;
}

.cookie-consent-option-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.cookie-consent-option-text {
  margin: 0;
  color: #595959;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-consent-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-consent-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.cookie-consent-switch input:disabled {
  cursor: not-allowed;
}

.cookie-consent-switch-ui {
  display: block;
  width: 100%;
  height: 100%;
  background: #d9d9d9;
  border-radius: 999px;
  pointer-events: none;
  transition: background 0.2s ease;
}

.cookie-consent-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.cookie-consent-switch input:checked + .cookie-consent-switch-ui {
  background: #026dff;
}

.cookie-consent-switch input:checked + .cookie-consent-switch-ui::after {
  transform: translateX(20px);
}

.cookie-consent-switch input:focus-visible + .cookie-consent-switch-ui {
  outline: 2px solid #85dcff;
  outline-offset: 2px;
}

.cookie-consent-switch input:disabled + .cookie-consent-switch-ui {
  background: #026dff;
  opacity: 0.7;
}

.cookie-consent-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid #eceae8;
}

.cookie-consent-modal .cookie-consent-btn-reject {
  color: #191818;
  border-color: #191818;
}

.cookie-consent-modal .cookie-consent-btn-reject:hover {
  color: #ffffff;
  background: #191818;
}

.cookie-consent-modal .cookie-consent-btn-settings {
  color: #026dff;
  background: #e8f2ff;
  border-color: #e8f2ff;
}

.cookie-consent-modal .cookie-consent-btn-settings:hover {
  color: #ffffff;
  background: #14a9ff;
  border-color: #14a9ff;
}

.cookie-settings-trigger {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

@media (max-width: 767px) {
  .cookie-consent-banner {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 16px;
  }

  .cookie-consent-banner-inner,
  .cookie-consent-actions,
  .cookie-consent-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-btn {
    width: 100%;
  }
}
