/* Card checkout guide — dashboard + marketing/help */
.payment-guide {
  margin-top: 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 16, 53, 0.55) 100%);
  overflow: hidden;
}

[data-theme="light"] .payment-guide {
  background: linear-gradient(165deg, #ffffff 0%, #f8f5ff 100%);
  border-color: rgba(124, 58, 237, 0.12);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.08);
}

.payment-guide > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display, var(--font-body, Inter, sans-serif));
  font-size: 15px;
  font-weight: 600;
  color: #f8f4ff;
  user-select: none;
}

.payment-guide > summary::-webkit-details-marker {
  display: none;
}

.payment-guide__summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.payment-guide__summary-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
  font-size: 15px;
}

.payment-guide__summary-chevron {
  flex-shrink: 0;
  color: #c084fc;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.payment-guide[open] .payment-guide__summary-chevron {
  transform: rotate(180deg);
}

.payment-guide__body {
  padding: 0 24px 24px;
}

.payment-guide__intro {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(233, 213, 255, 0.88);
  margin: 0 0 22px;
  max-width: 56ch;
}

[data-theme="light"] .payment-guide__intro {
  color: #5b21b6;
}

.payment-guide__flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.payment-guide__flow-item {
  position: relative;
  padding: 16px 14px 16px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .payment-guide__flow-item {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(124, 58, 237, 0.1);
}

.payment-guide__flow-item:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(192, 132, 252, 0.55);
  font-size: 14px;
  z-index: 1;
}

.payment-guide__flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-bottom: 10px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  background: rgba(191, 0, 255, 0.2);
  color: #f3e8ff;
}

[data-theme="light"] .payment-guide__flow-num {
  background: rgba(124, 58, 237, 0.12);
  color: #5b21b6;
}

.payment-guide__flow-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #faf5ff;
}

[data-theme="light"] .payment-guide__flow-item h4 {
  color: #1e1035;
}

.payment-guide__flow-item p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(221, 214, 254, 0.82);
}

[data-theme="light"] .payment-guide__flow-item p {
  color: #6b21a8;
}

.payment-guide__illus {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .payment-guide__illus {
  border-color: rgba(124, 58, 237, 0.12);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1);
}

.payment-guide__flow-item:not(:has(.payment-guide__illus)) {
  grid-column: span 1;
}

.payment-guide__illus img {
  display: block;
  width: 100%;
  height: auto;
}

.payment-guide__foot {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(196, 181, 253, 0.65);
  text-align: center;
}

[data-theme="light"] .payment-guide__foot {
  color: #7c3aed;
}

.payment-guide--page {
  margin-top: 36px;
}

.payment-guide--page > summary {
  font-size: 16px;
}

@media (max-width: 820px) {
  .payment-guide__flow {
    grid-template-columns: 1fr;
  }

  .payment-guide__flow-item:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 22px;
    top: auto;
    bottom: -10px;
    transform: none;
  }
}

@media (max-width: 640px) {
  .payment-guide > summary,
  .payment-guide__body {
    padding-left: 18px;
    padding-right: 18px;
  }
}
