:root {
  --ac-consent-bg: #f4f2ed;
  --ac-consent-text: #171717;
  --ac-consent-border: #c9c4ba;
}

html {
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body {
  min-height: 100%;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

body.ac-consent-open {
  overflow-y: visible !important;
}

.ac-consent {
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: 18px;
  width: min(520px, calc(100vw - 36px));
  color: var(--ac-consent-text);
  background: var(--ac-consent-bg);
  border: 1px solid var(--ac-consent-border);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .18);
  padding: 23px 25px 20px;
  font-family: Arial, Helvetica, sans-serif;
}

.ac-consent[hidden],
.ac-consent-settings[hidden] {
  display: none !important;
}

.ac-consent__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ac-consent__text {
  color: #4f4f4f;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.ac-consent__text a {
  color: #171717;
  border-bottom: 1px solid #777;
}

.ac-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.ac-consent__actions button {
  min-height: 40px;
  cursor: pointer;
  border: 1px solid #171717;
  padding: 10px 17px;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ac-consent__reject {
  color: #171717;
  background: transparent;
}

.ac-consent__accept {
  color: #fff;
  background: #171717;
}

.ac-consent-settings {
  position: fixed;
  z-index: 2147482999;
  left: 14px;
  bottom: 14px;
  color: #222;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #bbb;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: 9px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .11);
}

@media (max-width: 620px) {
  .ac-consent {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 20px 19px 17px;
  }

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

  .ac-consent__actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}
