:root {
  --cookies-color: #fff;
  --cookies-akcent: #f15c13;
  --cookies-font-family: inherit, Arial, Helvetica, sans-serif;
  --cookies-font-size: 18px;
  --cookies-title-font-size: 18px;
}

.cookies {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100000;
  max-width: 672px;
  width: 100%;
  max-height: calc(100vh - 48px);
  color: var(--cookies-color);
  overflow-y: auto;
  font-family: var(--cookies-font-family);
  font-size: var(--cookies-font-size);
  line-height: 1.45;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .cookies {
    left: 20px;
    bottom: 16px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 32px);
  }
}

.cookies__wrapper {
  margin: 0;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: var(--cookies-akcent);
  border-radius: 24px;
  box-sizing: border-box;
  box-shadow: 0 12px 40px rgba(27, 40, 56, 0.28);
}

@media screen and (max-width: 768px) {
  .cookies__wrapper {
    padding: 20px;
  }
}

.cookies__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.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;
  color: var(--cookies-color);
}

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

.cookies__title {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  color: var(--cookies-color);
}

@media screen and (max-width: 768px) {
  .cookies__title {
    font-size: 17px;
  }
}

.cookies__descr {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-weight: 400;
  font-size: 16px;
  color: var(--cookies-color);
}

@media screen and (max-width: 768px) {
  .cookies__descr {
    font-size: 15px;
  }
}

.cookies__descr a {
  text-decoration: underline;
  color: var(--cookies-color);
}

.cookies__descr > * {
  margin: 0;
}

.cookies__settings {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.cookies__settings.active {
  display: flex;
}

.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-size: 14px;
  line-height: 1.45;
}

.cookies-acc__descr > * {
  margin: 0;
}

.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("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.7071 14.7071C16.3166 15.0976 15.6834 15.0976 15.2929 14.7071L12 11.4L8.70711 14.7071C8.31658 15.0976 7.68342 15.0976 7.29289 14.7071C6.90237 14.3166 6.90237 13.6834 7.29289 13.2929L12 8.60009L16.7071 13.2929C17.0976 13.6834 17.0976 14.3166 16.7071 14.7071Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  transform: translateY(-50%) rotate(180deg);
}

.cookies-acc__item.toggle .cookies-acc__title::before {
  transform: translateY(-50%) rotate(0deg);
}

.cookies-acc__label {
  flex-shrink: 0;
  line-height: 0;
}

.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: 36px;
  height: 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: 2px;
  left: 2px;
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cookies-akcent);
  box-shadow: 0 1px 4px 0 rgba(27, 40, 56, 0.12);
  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: 10px;
  padding: 10px 16px;
  font-family: var(--cookies-font-family);
  font-weight: 700;
  font-size: 16px;
  color: var(--cookies-color);
  text-align: center;
  line-height: normal;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.25s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: 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;
}

.v48-cc-footer-link {
  display: inline-block;
  margin-left: 12px;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.v48-cc-footer-link:hover {
  color: #f15c13;
}