/* Cookies — Figma, снизу по центру */

.cookie-panel {
  box-sizing: border-box;
  display: none;
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 12100;
  width: 773px;
  max-width: calc(100vw - 32px);
  padding: 20px;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 16px;
  box-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.cookie-panel *,
.cookie-panel *::before,
.cookie-panel *::after {
  box-sizing: border-box;
}

.cookie-panel__content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.cookie-panel__icon {
  flex: none;
  width: 32px;
  height: 32px;
}

.cookie-panel__icon svg {
  display: block;
  width: 32px;
  height: 32px;
}

.cookie-panel__body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-panel__text {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: #111827;
}

.cookie-panel__text a {
  color: #006ab5;
  text-decoration: none;
}

.cookie-panel__text a:hover {
  color: #005a9a;
  text-decoration: underline;
}

.cookie-panel__buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: none;
}

.cookie-panel__btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 38px;
  padding: 8px 20px;
  border: 0;
  border-radius: 8px;
  background: #006ab5;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cookie-panel__btn:hover {
  background: #005a9a;
}

.cookie-panel__btn--gray {
  background: #f5f6f8;
  color: #131927;
}

.cookie-panel__btn--gray:hover {
  background: #e6e8ec;
}

/* Старый попап больше не показываем */
.cookie-popup {
  display: none !important;
}

/* Mobile — Figma Type=1, State=3, Mobile=Yes */
@media (max-width: 776px) {
  .cookie-panel {
    left: 50%;
    bottom: calc(64px + 16px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 16px);
    max-width: 359px;
    height: auto;
    padding: 16px 20px 16px 16px;
    border-radius: 12px;
    box-shadow: 0 -10px 10px -5px rgba(0, 0, 0, 0.04);
  }

  .cookie-panel__content {
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-panel__icon {
    display: flex;
    align-items: center;
    width: 24px;
    height: 36px;
    padding: 6px 0;
  }

  .cookie-panel__icon svg {
    width: 24px;
    height: 24px;
  }

  .cookie-panel__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-panel__text {
    font-size: 14px;
    line-height: 20px;
  }

  .cookie-panel__buttons {
    width: auto;
  }

  .cookie-panel__btn {
    flex: none;
    height: 36px;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
  }

  .cookie-panel__btn--gray {
    font-weight: 500;
  }
}
