/* QA D-010: cookie consent banner (Google Analytics / Google Ads).
   Uses logical properties throughout so it mirrors correctly in RTL (Arabic) without a
   separate .rtl stylesheet. */

.qm-consent-banner {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 2000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
  padding-inline: 1.25rem;
  background: #1b1f27;
  color: #f5f6f8;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  line-height: 1.4;
}

.qm-consent-banner[hidden] {
  display: none;
}

.qm-consent-text {
  margin: 0;
  flex: 1 1 260px;
}

.qm-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.qm-consent-btn {
  border: 1px solid transparent;
  border-radius: 4px;
  padding-block: 0.45rem;
  padding-inline: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.qm-consent-accept {
  background: #2fae60;
  color: #ffffff;
}

.qm-consent-accept:hover,
.qm-consent-accept:focus-visible {
  background: #279153;
}

.qm-consent-reject {
  background: transparent;
  color: #f5f6f8;
  border-color: rgba(245, 246, 248, 0.5);
}

.qm-consent-reject:hover,
.qm-consent-reject:focus-visible {
  background: rgba(245, 246, 248, 0.12);
}

.qm-consent-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 576px) {
  .qm-consent-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .qm-consent-actions {
    justify-content: center;
  }
}
