.webikon-cookies-bar {
  background-color: #f9f9f9;
  padding: 15px;
  position: fixed;
  bottom: 0;
  display: none;
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  z-index: 100000;

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

  &.is-active {
    display: block;
  }
}

.webikon-cookies-bar__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 1;
  display: none;
}

.webikon-cookies-bar__container {
  max-width: 1200px;
  margin: 0 auto;
}

.webikon-cookies-bar__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  max-height: 250px;
  overflow: auto;
}

.webikon-cookies-bar__title {
  margin-bottom: 10px;
  font-size: 18px;
}

.webikon-cookies-bar__intro {
  margin-bottom: 10px;
  font-size: 14px;
}

.webikon-cookies-bar__btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  flex-direction: column;
  gap: 10px;

  @media screen and (min-width: 768px) {
    flex-direction: row;
  }
}

.webikon-cookies-bar__btn {
  padding: 10px 10px;
  border: none;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
}

.webikon-cookies-bar__btn--accept {
  background-color: #000;
  color: #fff;

  @media screen and (min-width: 768px) {
    order: 3;
  }
}

.webikon-cookies-bar__btn--reject {
  background-color: #fff;
  color: #000;

  @media screen and (min-width: 768px) {
    order: 1;
  }
}

.webikon-cookies-bar__btn--info {
  background-color: transparent;
  color: #000;

  @media screen and (min-width: 768px) {
    order: 2;
  }
}

@media screen and (min-width: 1200px) {
  .webikon-cookies-bar__btn {
    padding: 10px 20px;
  }
}

@media screen and (min-width: 768px) {
  .webikon-cookies-bar__btn {
    padding: 10px 15px;
  }
}

/** Cookies switcher */
.webikon-cookies-switcher {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  max-width: 500px;
  width: 100%;
}

.webikon-cookies-switcher .webikon-cookies-switcher__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 20px;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.webikon-cookies-switcher .webikon-cookies-switcher__desc {
  width: 100%;
  font-size: 14px;
  margin-top: 10px;
}

.webikon-cookies-switcher .webikon-cookies-switcher__label {
  margin-right: 10px;
  margin-bottom: 0;
  cursor: pointer;
  margin-right: 20px;
  font-weight: bold;
  color: #000;
}

.webikon-cookies-switcher .webikon-cookies-switcher__input {
  cursor: pointer;
  position: relative;
  width: 46px;
  height: 21px;
  -webkit-appearance: none;
  background: #c6c6c6;
  outline: none;
  border-radius: 20px;
  -webkit-box-shadow: inset 0 0 5px rgba(255, 0, 0, 0.2);
  box-shadow: inset 0 0 5px rgba(255, 0, 0, 0.2);
  -webkit-transition: 0.7s;
  -o-transition: 0.7s;
  transition: 0.7s;
}

.webikon-cookies-switcher .webikon-cookies-switcher__input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.webikon-cookies-switcher .webikon-cookies-switcher__input:checked {
  background: #0e9c1d;
}

.webikon-cookies-switcher .webikon-cookies-switcher__input:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 20px;
  top: 0;
  left: 0;
  background: #ffffff;
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}

.webikon-cookies-switcher .webikon-cookies-switcher__input:checked:before {
  left: 28px;
}

.webikon-cookies-switcher .webikon-cookies-switcher__btn-wrapper {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  width: 100%;
}

.webikon-cookies-switcher__btn {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  background-color: #000;
  color: #fff;
}

.webikon-cookies-switcher .webikon-cookies-switcher__success-notice {
  display: none;
  width: 100%;
  margin-top: 5px;
  text-align: right;
}

/* Cookies table */
.webikon-cookies-table-container {
  width: 100%;
  overflow: auto;
}

.webikon-cookies-table {
  width: 100%;
}

/* Cookies modal */
.webikon-cookies-modal {
  display: none;
  position: fixed;
  inset: 0;
  /* z-index must be higher than everything else on the page */
  z-index: 100001;
  background-color: rgba(0, 0, 0, .75);
  padding: 15px;
  overflow: auto;

  @media screen and (min-width: 768px) {
    padding: 40px;
  }
}

body.webikon-cookies-modal-is-open {
  /* body overflow is hidden to hide main scrollbar when modal window is open */
  overflow: hidden;
}

.webikon-cookies-modal.is-open {
  display: flex;
  justify-content: center;

  @media screen and (min-width: 768px) {
    align-items: center;
  }
}

.webikon-cookies-modal .webikon-cookies-modal__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: auto;
  padding: 20px;
  background: #fff;
  max-width: 500px;
}

.webikon-cookies-modal .webikon-cookies-modal__header {
  margin-bottom: 20px;
}

.webikon-cookies-modal .webikon-cookies-modal__close {
  position: absolute;
  right: 0;
  top: -5px;
  padding: 5px;
  background-color: transparent;
  border: none;
}

.webikon-cookies-modal .webikon-cookies-modal__close:hover,
.webikon-cookies-modal .webikon-cookies-modal__close:focus {
  background-color: transparent;
}

.webikon-cookies-modal .webikon-cookies-modal__close-icon {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.webikon-cookies-modal .webikon-cookies-modal__title {
  position: relative;
  font-size: 18px;
}

.webikon-cookies-modal .webikon-cookies-modal__desc {
  font-size: 16px;
  margin-top: 15px;
}

.webikon-cookies-modal .webikon-cookies-modal__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.webikon-cookies-modal .webikon-cookies-switcher {
  flex-grow: 1;
}

.webikon-cookies-modal .webikon-cookies-switcher__btn-wrapper {
  padding-top: 10px;
  margin-top: auto;
}

.webikon-cookies-modal .webikon-cookies-switcher__item {
  margin-bottom: 10px;
}

.webikon-cookies-modal .webikon-cookies-switcher__item:not(:first-child) {
  border-top: 1px solid #d5d8dc;
  padding-top: 10px;
}
