.bmstu-cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: var(--bmstu-cc-z-index, 999999);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--bmstu-cc-max-width, none);
  padding: 10px;
  gap: 6px;
  box-sizing: border-box;
  background: var(--bmstu-cc-bg, #006cdc);

  visibility: hidden;
  opacity: 0;
  transition: 0.3s linear;
}

.bmstu-cookie-consent * {
  box-sizing: border-box;
}

.bmstu-cookie-consent_visible {
  visibility: visible;
  opacity: 1;
}

@media (min-width: 1024px) {
  .bmstu-cookie-consent {
    padding-left: var(--bmstu-cc-safe-left, 10px);
    padding-right: var(--bmstu-cc-safe-right, 10px);
  }
}

@media (max-width: 1439px) {
  .bmstu-cookie-consent {
    flex-direction: column;
  }

  .bmstu-cookie-consent__actions {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .bmstu-cookie-consent {
    padding: 10px 6px;
    gap: 5px;
  }
}

.bmstu-cookie-consent__top {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.bmstu-cookie-consent__icon {
  display: flex;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
}

.bmstu-cookie-consent__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bmstu-cookie-consent__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.34;
  color: var(--bmstu-cc-text-color, #ffffff);
  text-align: justify;
}

@media (max-width: 767px) {
  .bmstu-cookie-consent__top {
    display: block;
  }

  .bmstu-cookie-consent__icon {
    float: left;
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }

  .bmstu-cookie-consent__text {
    font-size: 16px;
  }
}

.bmstu-cookie-consent__link {
  color: var(--bmstu-cc-link-color, #ffffff);
  text-decoration: underline;
}

.bmstu-cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
}

.bmstu-cookie-consent__button {
  display: flex;
  width: 160px;
  height: 35px;
  padding: 5px 20px;
  border: none;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: var(--bmstu-cc-button-bg, #ffffff);
  color: var(--bmstu-cc-button-color, #006cdc);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.34;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 767px) {
  .bmstu-cookie-consent__button {
    font-size: 14px;
  }
}

.bmstu-cookie-consent__button:hover {
  opacity: 0.9;
}

.bmstu-cookie-consent__button:active {
  opacity: 0.8;
}

@media (max-width: 500px) {
  .bmstu-cookie-consent__actions {
    width: 100%;
  }

  .bmstu-cookie-consent__button {
    width: auto;
    flex: 1 1 0;
  }
}
