.wcmyt-pay-rules,
.wcmyt-pay-rules * {
  box-sizing: border-box;
}

.wcmyt-pay-rules {
  --wcmyt-accent: #d61f26; /* акцент (красный) */
  --wcmyt-border: rgba(0, 0, 0, 0.1); /* тонкая рамка */
  --wcmyt-muted: rgba(0, 0, 0, 0.62);
  --wcmyt-text: rgba(0, 0, 0, 0.84);
  --wcmyt-surface: rgba(255, 255, 255, 0.92);
  --wcmyt-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
  --wcmyt-radius: 18px;
  --wcmyt-radius-sm: 14px;

  padding: clamp(16px, 3vw, 36px) 0 clamp(56px, 7vw, 110px);
}

.wcmyt-pay-rules__container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.wcmyt-pay-rules__card {
  background: var(--wcmyt-surface);
  border: 1px solid var(--wcmyt-border);
  border-radius: var(--wcmyt-radius);
  box-shadow: var(--wcmyt-shadow);
  padding: clamp(18px, 2.6vw, 28px);
}

/* Типографика — наследуем шрифты сайта */
.wcmyt-pay-rules h2,
.wcmyt-pay-rules h3,
.wcmyt-pay-rules p,
.wcmyt-pay-rules li,
.wcmyt-pay-rules dt,
.wcmyt-pay-rules dd {
  font: inherit;
}

.wcmyt-pay-rules h2 {
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(20px, 2.1vw, 28px);
  padding-left: 14px;
  border-left: 4px solid var(--wcmyt-accent);
}

.wcmyt-pay-rules h3 {
  margin: 26px 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: clamp(16px, 1.7vw, 20px);
  position: relative;
  padding-bottom: 10px;
}

.wcmyt-pay-rules h3::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.16),
    rgba(0, 0, 0, 0.06),
    transparent
  );
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.wcmyt-pay-rules p {
  margin: 0 0 14px;
  line-height: 1.75;
  color: var(--wcmyt-text);
}

.wcmyt-pay-rules strong {
  font-weight: 800;
}

/* Шаги (ol) — как аккуратные карточки */
.wcmyt-pay-rules__steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: wcmytStep;
}

.wcmyt-pay-rules__steps > li {
  counter-increment: wcmytStep;
  border: 1px solid var(--wcmyt-border);
  border-radius: var(--wcmyt-radius-sm);
  background: rgba(0, 0, 0, 0.02);
  padding: 12px 12px 12px 46px;
  position: relative;
  line-height: 1.65;
  color: var(--wcmyt-text);
}

.wcmyt-pay-rules__steps > li::before {
  content: counter(wcmytStep);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  background: var(--wcmyt-accent);
}

/* Реквизиты (DL) */
.wcmyt-pay-rules__dl {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.wcmyt-pay-rules__dlRow {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--wcmyt-border);
  border-radius: var(--wcmyt-radius-sm);
  background: rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 12px;
}

.wcmyt-pay-rules__dlRow dt {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.82);
}

.wcmyt-pay-rules__dlRow dd {
  margin: 0;
  line-height: 1.55;
  color: var(--wcmyt-text);
}

.wcmyt-pay-rules__dlRow--mono dd {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.wcmyt-pay-rules__dlTitle {
  margin: 6px 0 2px;
  padding: 10px 14px;
  border-radius: var(--wcmyt-radius-sm);
  background: rgba(214, 31, 38, 0.08);
  border: 1px solid rgba(214, 31, 38, 0.22);
  font-weight: 800;
  color: rgba(0, 0, 0, 0.82);
}

@media (max-width: 720px) {
  .wcmyt-pay-rules__dlRow {
    grid-template-columns: 1fr;
  }
}
