:root {
  --cookies-color: #fff;
  --cookies-color2: rgba(255, 255, 255, 0.9);
  --cookies-akcent: #fa6b00;
  --cookies-font-family: "Ubuntu", sans-serif;
  --cookies-font-size: 18px;
  --cookies-title-font-size: 18px;
}

.cookies {
  position: fixed;
  left: 16px;
  bottom: 16px;
  max-width: 448px;
  width: 100%;
  max-height: calc(100vh);
  color: var(--cookies-color);
  overflow-y: auto;
  display: none;
  z-index: 999;
}
.cookies.toggle {
  left: 0;
  bottom: 0;
  right: 0;
  max-width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--cookies-akcent);
}

.cookies.toggle .cookies__wrapper {
  width: 1042px;
  padding: 16px 0;
}
@media screen and (max-width: 1200px) {
  .cookies.toggle .cookies__wrapper {
    max-width: 1042px;
    padding: 16px 24px;
    height: 100%;
  }
}
@media screen and (max-width: 768px) {
  .cookies {
    left: 16px;
    bottom: 16px;
    right: 16px;
    width: auto;
    max-height: 100vh;
  }
}

.cookies__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.07;
  color: var(--cookies-color);
}

.cookies__wrapper {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: var(--cookies-akcent);
  border-radius: 3px;
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  .cookies__wrapper {
    padding: 16px 24px;
  }
}

.cookies__info {
  display: flex;
  flex-direction: column;
}
.cookies__info.toggle {
  display: none;
}

.cookies__top {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media screen and (max-width: 460px) {
  .cookies__top {
    justify-content: space-between;
  }
}

.cookies__back {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.cookies__arrow {
  width: 24px;
  height: 24px;
}

.cookies__descr {
  display: flex;
  flex-direction: column;
  gap: 0px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.14;
  color: var(--cookies-color2);
}
.cookies__descr span {
  font-weight: 500;
}
.cookies__descr a {
  text-decoration: underline;
  color: var(--cookies-color);
}
.cookies__descr > * {
  margin: 0;
  color: inherit;
}

.cookies__settings {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.cookies__settings.active {
  display: flex;
  max-width: 668px;
}

.cookies-acc {
  display: none;
  flex-direction: column;
  gap: 16px;
}
.cookies-acc.active {
  display: flex;
}

.cookies-acc__item {
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 0.25s;
}
.cookies-acc__item.toggle {
  gap: 8px;
}

.cookies-acc__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cookies-acc__descr {
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.14;
  max-width: 880px;
  color: var(--cookies-color2);
}
.cookies-acc__descr > * {
  margin: 0;
  color: inherit;
}
.cookies-acc__item.toggle .cookies-acc__descr {
  opacity: 1;
  max-height: 2000px;
}

.cookies-acc__title {
  position: relative;
  margin: 0;
  padding-left: 28px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--cookies-color);
}
.cookies-acc__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  background-image: url(/local/templates/aspro_mshop/images/cookies/arrowCookies.svg);
  background-size: cover;
  transform: translateY(-50%) rotate(180deg);
}
.cookies-acc__item.toggle .cookies-acc__title::before {
  transform: translateY(-50%) rotate(0deg);
}

.cookies-acc__checkbox {
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  z-index: -1;
  opacity: 0;
  flex-shrink: 0;
}
.cookies-acc__checkbox:checked ~ .cookies-acc__switch::before {
  transform: translateX(16px);
}
.cookies-acc__checkbox:not(:checked) + .cookies-acc__switch {
  opacity: 0.44;
}
.cookies-acc__checkbox:disabled ~ .cookies-acc__switch {
  opacity: 0.44;
  cursor: initial;
}

.cookies-acc__switch {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: max(1.875vw, 36px);
  height: max(1.041667vw, 20px);
  border-radius: 25%/50%;
  vertical-align: top;
  background: var(--cookies-color);
  transition: 0.2s;
  cursor: pointer;
}
.cookies-acc__switch::before {
  content: "";
  position: absolute;
  top: max(0.104167vw, 2px);
  left: max(0.104167vw, 2px);
  display: inline-block;
  width: max(0.833333vw, 16px);
  height: max(0.833333vw, 16px);
  border-radius: 50%;
  background: var(--cookies-akcent);
  box-shadow: 0 1px 4px 0 rgba(60, 83, 135, 0.0901960784);
  box-shadow: 0 1px 10px 1px rgba(60, 83, 135, 0.0509803922);
  transition: 0.15s;
}

.cookies__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
@media screen and (max-width: 768px) {
  .cookies__btns {
    flex-direction: column;
    gap: 12px;
  }
}

.cookies__btn {
  border: 1px solid var(--cookies-color);
  border-radius: 3px;
  padding: 16px;
  font-family: var(--cookies-font-family);
  font-weight: 400;
  color: var(--cookies-color);
  text-align: center;
  line-height: 1.14;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.25s;
  box-sizing: border-box;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
}
.cookies__btn.cookies__btn--fill {
  background-color: var(--cookies-color);
  color: var(--cookies-akcent);
}
.cookies__btn:hover {
  transform: translateY(-2px);
}
.cookies__btn.toggle {
  display: none;
}