.av-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100000;
  display: none;
  font: 400 15px/1.55 "Open Sans", Arial, sans-serif;
}

.av-consent--visible {
  display: block;
}

.av-consent__panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #fffdfc 0%, #fff4ec 100%);
  border: 1px solid #f0d4c7;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(49, 28, 21, 0.18);
}

.av-consent__title {
  margin: 0 0 8px;
  color: #ec4424;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.av-consent__text,
.av-consent__meta {
  margin: 0;
  color: #2f3744;
}

.av-consent__meta {
  margin-top: 8px;
  font-size: 13px;
  color: #667085;
}

.av-consent__text a,
.av-consent__meta a,
.av-consent__modal a {
  color: #b5411d;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(181, 65, 29, 0.35);
}

.av-consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.av-consent__btn {
  min-width: 154px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.av-consent__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ec4424, #f47662);
  box-shadow: 0 12px 24px rgba(236, 68, 36, 0.24);
}

.av-consent__btn--secondary {
  color: #6b4c2f;
  background: #fff;
  border-color: #e8c99b;
}

.av-consent__btn--ghost {
  color: #9a3412;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(240, 212, 199, 0.9);
}

body.av-consent-open {
  padding-bottom: 182px;
}

body.av-consent-open .scroll-top-btn,
body.av-consent-open .scrollTop {
  bottom: 208px !important;
}

.av-consent-manage {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99990;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(181, 65, 29, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.12);
  color: #7a3418;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease;
  -webkit-tap-highlight-color: transparent;
}

.av-consent-manage--visible {
  display: inline-flex;
}

.av-consent-manage--idle {
  opacity: .45;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.07);
}

.av-consent-manage--session-hidden {
  display: none;
}

.av-consent-manage:focus-visible,
.av-consent-manage--active {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(181, 65, 29, 0.42);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.16);
  outline: 3px solid rgba(236, 68, 36, 0.16);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .av-consent-manage--idle:hover {
    opacity: 1;
    transform: translateY(-1px);
    border-color: rgba(181, 65, 29, 0.42);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.16);
  }
}

.av-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.58);
}

.av-consent-modal--visible {
  display: flex;
}

.av-consent__modal {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.24);
  overflow: hidden;
}

.av-consent__modal-head {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f2e7df;
}

.av-consent__modal-title {
  margin: 0;
  color: #1d2939;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.av-consent__modal-subtitle {
  margin: 10px 0 0;
  color: #475467;
}

.av-consent__modal-body {
  padding: 16px 24px 8px;
}

.av-consent-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #f4ede8;
}

.av-consent-option:last-child {
  border-bottom: 0;
}

.av-consent-option__title {
  margin: 0 0 6px;
  color: #1d2939;
  font-size: 16px;
  font-weight: 700;
}

.av-consent-option__text {
  margin: 0;
  color: #475467;
  font-size: 14px;
}

.av-consent-option__hint {
  display: inline-block;
  margin-top: 8px;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.av-consent-switch {
  position: relative;
  width: 54px;
  height: 32px;
  flex-shrink: 0;
}

.av-consent-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.av-consent-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d0d5dd;
  transition: background-color .18s ease;
}

.av-consent-switch__track:after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.14);
  transition: transform .18s ease;
}

.av-consent-switch input:checked + .av-consent-switch__track {
  background: #ec4424;
}

.av-consent-switch input:checked + .av-consent-switch__track:after {
  transform: translateX(22px);
}

.av-consent-switch input:disabled + .av-consent-switch__track {
  background: #ec4424;
  opacity: 0.8;
}

.av-consent__modal-foot {
  padding: 18px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #f2e7df;
}

.av-consent__modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.av-consent__focus {
  box-shadow: 0 0 0 4px rgba(236, 68, 36, 0.14);
  border-radius: 14px;
}

@media (max-width: 900px) {
  .av-consent__panel {
    flex-direction: column;
  }

  .av-consent__actions {
    width: 100%;
  }

  body.av-consent-open {
    padding-bottom: 250px;
  }

  body.av-consent-open .scroll-top-btn,
  body.av-consent-open .scrollTop {
    bottom: 276px !important;
  }
}

@media (max-width: 640px) {
  .av-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .av-consent__panel {
    padding: 16px;
    border-radius: 18px;
  }

  .av-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .av-consent__btn {
    width: 100%;
    min-width: 0;
  }

  .av-consent-manage {
    left: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
    min-height: 42px;
    padding: 9px 12px;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .av-consent-manage--idle {
    opacity: .58;
  }

  .av-consent-modal {
    padding: 14px;
  }

  .av-consent__modal-head,
  .av-consent__modal-body,
  .av-consent__modal-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .av-consent-option {
    gap: 12px;
  }
}
