.an-cookieconsent {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9999;
  width: 380px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 1.5rem;
  font-family: var(--font-century-gothic);
}

.an-cookieconsent[hidden] {
  display: none;
}

.an-cookieconsent_title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}

.an-cookieconsent_intro {
  font-size: .9rem;
  color: #444;
  margin-top: .5rem;
  line-height: 1.4;
}

.an-cookieconsent_intro a {
  font-weight: 600;
  text-decoration: underline;
}

.an-cookieconsent_section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.an-cookieconsent_section_title {
  font-size: .95rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}

.an-cookieconsent_section_text p {
  font-size: .85rem;
  color: #666;
  margin-top: .25rem;
  line-height: 1.4;
}

.an-cookieconsent_switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  cursor: pointer;
}

.an-cookieconsent_switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.an-cookieconsent_slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 999px;
  transition: background-color .2s ease;
}

.an-cookieconsent_switch-locked .an-cookieconsent_slider:before {
  display: none !important;
}

.an-cookieconsent_slider:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.an-cookieconsent_switch input:checked + .an-cookieconsent_slider {
  background: #fe0000;
}

.an-cookieconsent_switch input:checked + .an-cookieconsent_slider:before {
  transform: translateX(20px);
}

.an-cookieconsent_switch-locked {
  cursor: not-allowed;
}

.an-cookieconsent_switch-locked input {
  cursor: not-allowed;
}

.an-cookieconsent_switch-locked .an-cookieconsent_slider {
  background: #fff !important;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #dfdfdf;
}

.an-cookieconsent_switch-locked .an-cookieconsent_slider:before {
  transform: translateX(20px);
}

.an-cookieconsent_switch-locked .an-cookieconsent_slider i.material-icons {
  position: absolute;
  left: 4px;
  top: 3px;
  font-size: 14px;
  color: #fe0000;
  background: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.an-cookieconsent_actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.25rem;
}

.an-cookieconsent_btn {
  width: 100%;
  padding: .75rem 1rem;
  border: none;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.an-cookieconsent_btn-accept {
  background: #fe0000;
  color: #fff;
}

.an-cookieconsent_btn-accept:hover {
  background: #000;
  border: unset;
}

.an-cookieconsent_btn-save {
  background: #e5e5e5;
  color: #000;
}

.an-cookieconsent_btn-save:hover {
  background: #d5d5d5;
  border: unset;
}

@media (max-width: 480px) {
  .an-cookieconsent {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: auto;
  }
}
