/* Cookie consent — стиль CrowdStore */

.cs-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  pointer-events: none;
}

.cs-cookie-banner[hidden],
.cs-cookie-modal[hidden] {
  display: none !important;
}

.cs-cookie-banner__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e8ebf2;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(30, 28, 54, 0.14);
}

.cs-cookie-banner__text {
  margin: 0;
  flex: 1 1 420px;
  font-size: 14px;
  line-height: 1.55;
  color: #4a4a5a;
}

.cs-cookie-banner__text a,
.cs-cookie-modal a {
  color: #394ae8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cs-cookie-banner__text a:hover,
.cs-cookie-modal a:hover {
  color: #3c2cb7;
}

.cs-cookie-banner__actions,
.cs-cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.cs-cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.cs-cookie-btn--primary {
  background: linear-gradient(112.59deg, #2a39bb 7.62%, #4326b4 82.98%);
  color: #fff;
}

.cs-cookie-btn--primary:hover {
  opacity: 0.92;
}

.cs-cookie-btn--muted {
  background: #f0f1f6;
  color: #1e1c36;
}

.cs-cookie-btn--muted:hover {
  background: #e4e6ef;
}

.cs-cookie-btn--outline {
  background: #fff;
  border-color: #d8dbe7;
  color: #1e1c36;
}

.cs-cookie-btn--outline:hover {
  border-color: #3c2cb7;
  color: #3c2cb7;
}

.cs-cookie-btn--soft {
  background: #ecebf8;
  color: #3c2cb7;
}

.cs-cookie-btn--soft:hover {
  background: #e0dff4;
}

.cs-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cs-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 28, 54, 0.45);
}

.cs-cookie-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: 0 20px 60px rgba(30, 28, 54, 0.22);
}

.cs-cookie-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7b7b7b;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.cs-cookie-modal__close:hover {
  background: #f0f1f6;
  color: #1e1c36;
}

.cs-cookie-modal__title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #152033;
}

.cs-cookie-modal__lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #6b6b7a;
  text-align: center;
}

.cs-cookie-cat {
  border: 1px solid #e8ebf2;
  border-radius: 14px;
  padding: 14px 14px;
  margin-bottom: 10px;
  background: #fcfcfd;
}

.cs-cookie-cat__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  margin: 0;
}

.cs-cookie-cat__check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #3c2cb7;
}

.cs-cookie-cat__check input:disabled {
  accent-color: #9aa0b5;
  cursor: not-allowed;
}

.cs-cookie-cat__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #152033;
  margin-bottom: 4px;
}

.cs-cookie-cat__desc {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #7b7b7b;
}

.cs-cookie-modal__actions {
  margin-top: 18px;
  justify-content: center;
}

@media (max-width: 860px) {
  .cs-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cs-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px;
    border-radius: 16px;
    gap: 14px;
  }

  .cs-cookie-banner__text {
    flex: 0 0 auto;
    min-width: 0;
  }

  .cs-cookie-banner__actions {
    width: 100%;
  }

  .cs-cookie-banner__actions .cs-cookie-btn {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

  .cs-cookie-banner__actions .cs-cookie-btn--outline {
    flex: 1 1 100%;
  }

  .cs-cookie-modal__actions {
    flex-direction: column;
  }

  .cs-cookie-modal__actions .cs-cookie-btn {
    width: 100%;
  }
}
