.aa-qo-root {
  position: fixed;
  inset: 0;
  z-index: 99980;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.72);
}

.aa-qo-root[hidden] {
  display: none !important;
}

.aa-qo-panel {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #141414;
  color: #f4f4f4;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 24px 26px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  font-family: Tahoma, sans-serif;
}

.aa-qo-back {
  background: transparent;
  border: 0;
  color: #cfcfcf;
  cursor: pointer;
  padding: 0 0 14px;
  font: inherit;
}

.aa-qo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.aa-qo-kicker {
  margin: 0 0 8px;
  color: #aa3838;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aa-qo-basket h2,
#aa-qo-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.aa-qo-price {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
}

.aa-qo-kind {
  margin: 0 0 16px;
  color: #bdbdbd;
  font-size: 13px;
}

.aa-qo-what {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 12px 14px;
}

.aa-qo-what-label {
  margin: 0 0 6px;
  color: #aa3838;
  font-size: 12px;
  text-transform: uppercase;
}

.aa-qo-what p {
  margin: 0;
  color: #e8e8e8;
  line-height: 1.45;
}

.aa-qo-quote {
  margin-top: 14px;
  background: rgba(170, 56, 56, 0.12);
  border: 1px solid rgba(170, 56, 56, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
}

.aa-qo-quote p {
  margin: 0 0 8px;
  color: #f0e6e6;
  line-height: 1.45;
  font-size: 14px;
}

.aa-qo-quote p:last-child {
  margin-bottom: 0;
}

.aa-qo-quote a {
  color: #ff8a8a;
}

.aa-qo-grid[hidden],
.aa-qo-pay[hidden] {
  display: none !important;
}

.aa-qo-pay h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.aa-qo-pay-sum {
  margin: 0 0 10px;
  font-size: 18px;
}

.aa-qo-pay-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
}

.aa-qo-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aa-qo-pay-row:last-child {
  border-bottom: 0;
}

.aa-qo-pay-row a,
.aa-qo-steps a,
.aa-qo-cta a.aa-qo-link {
  color: #ff8a8a;
}

.aa-qo-steps {
  margin: 16px 0;
}

.aa-qo-steps p {
  margin: 0 0 8px;
}

.aa-qo-steps ol {
  margin: 0;
  padding-left: 20px;
  color: #e8e8e8;
  line-height: 1.5;
}

.aa-qo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.aa-qo-cta .aa-qo-submit {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.aa-qo-form {
  display: grid;
  gap: 12px;
}

.aa-qo-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #d7d7d7;
}

.aa-qo-form input[type="text"],
.aa-qo-form input[type="tel"],
.aa-qo-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.aa-qo-check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 8px;
}

.aa-qo-check a,
.aa-qo-legal a {
  color: #ff8a8a;
}

.aa-qo-legal {
  margin: 0;
  font-size: 12px;
  color: #9a9a9a;
}

.aa-qo-submit {
  border: 0;
  background: #aa3838;
  color: #fff;
  border-radius: 3px;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
}

.aa-qo-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.aa-qo-status {
  margin: 0;
  font-size: 14px;
}

.aa-qo-status.is-ok {
  color: #9be59b;
}

.aa-qo-status.is-err {
  color: #ff9b9b;
}

.aa-qo-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  opacity: 0;
}

@media (max-width: 760px) {
  .aa-qo-grid {
    grid-template-columns: 1fr;
  }
  .aa-qo-panel {
    padding: 16px;
  }
}

.aa-ps {
  --bg: #141414;
  --card: #1a1a1a;
  --text: #f0f0f0;
  --muted: #b9b9b9;
  --accent: #aa3838;
  --line: rgba(255, 255, 255, 0.08);
  margin-top: 16px;
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
}

.aa-ps__kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aa-ps__lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.aa-ps__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aa-ps__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.aa-ps__card h3 {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.aa-ps__card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.aa-ps__card--wide {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .aa-ps__grid {
    grid-template-columns: 1fr;
  }
}
