.ig-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #e6e6e6;
  box-shadow: 0 -10px 32px rgba(17, 17, 17, 0.08);
  color: #1a1a1a;
  font-family: "SF UI Display", "PT Sans", Arial, sans-serif;
}

.ig-cookie-banner[hidden],
html.ig-cookie-decided .ig-cookie-banner {
  display: none !important;
}

.ig-cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.ig-cookie-banner__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.ig-cookie-banner__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.ig-cookie-banner__text {
  margin: 0;
  max-width: 72ch;
  color: #4a4a4a;
  font-size: 13px;
  line-height: 1.45;
}

.ig-cookie-banner__text a {
  color: #ff361b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ig-cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.ig-cookie-banner__btn {
  box-sizing: border-box;
  min-width: 132px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.ig-cookie-banner__btn:active {
  transform: scale(0.97);
}

.ig-cookie-banner__btn--decline {
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #cfcfcf;
}

.ig-cookie-banner__btn--accept {
  color: #fff;
  background: #ff361b;
  border: 1px solid #ff361b;
}

@media (hover: hover) and (pointer: fine) {
  .ig-cookie-banner__btn--decline:hover {
    border-color: #9f9f9f;
    background: #f7f7f7;
  }

  .ig-cookie-banner__btn--accept:hover {
    background: #e62e14;
    border-color: #e62e14;
  }
}

body.ig-cookie-banner-open {
  padding-bottom: 128px;
}

body.ig-cookie-banner-open #yandex-auth-placeholder {
  display: none;
}

@media (max-width: 768px) {
  .ig-cookie-banner {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .ig-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ig-cookie-banner__actions {
    width: 100%;
  }

  .ig-cookie-banner__btn {
    flex: 1 1 0;
    min-width: 0;
  }

  body.ig-cookie-banner-open {
    padding-bottom: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ig-cookie-banner__btn {
    transition: none;
  }

  .ig-cookie-banner__btn:active {
    transform: none;
  }
}
