.cookie-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  width: min(520px, calc(100vw - 32px));
  background: #ffffff;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
  color: #142033;
  direction: rtl;
  font-family: "Inter", Arial, sans-serif;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__body {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.cookie-consent__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 900;
}

.cookie-consent__text {
  margin: 0;
  color: #52647a;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-consent__text a,
.cookie-consent__link {
  color: #1f5fd4;
  font-weight: 800;
  text-decoration: none;
}

.cookie-consent__text a:hover,
.cookie-consent__link:hover {
  text-decoration: underline;
}

.cookie-consent__actions,
.cookie-consent__settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-consent__button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.cookie-consent__button--primary {
  color: #fff;
  background: #1f5fd4;
}

.cookie-consent__button--primary:hover {
  background: #1749a3;
}

.cookie-consent__button--soft {
  color: #1e293b;
  background: #edf2f8;
  border-color: #d7e1ee;
}

.cookie-consent__button--plain {
  color: #1f5fd4;
  background: transparent;
  border-color: transparent;
  padding-inline: 0.35rem;
}

.cookie-consent__settings {
  border-top: 1px solid #d7e1ee;
  padding-top: 0.85rem;
  display: grid;
  gap: 0.65rem;
}

.cookie-consent__settings[hidden] {
  display: none !important;
}

.cookie-consent__option {
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.cookie-consent__option strong,
.cookie-consent__option span {
  display: block;
}

.cookie-consent__option strong {
  font-size: 0.88rem;
}

.cookie-consent__option span {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.cookie-consent__option input {
  width: 22px;
  height: 22px;
  accent-color: #1f5fd4;
}

.cookie-consent__option input:disabled {
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .cookie-consent {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
  }

  .cookie-consent__actions,
  .cookie-consent__settings-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-consent__button {
    width: 100%;
  }
}
