.ksg-payment-box {
  border-left: 5px solid var(--ksg-accent);
}

/* Zwarty układ formularza. */
.ksg-wrap {
  max-width: 820px;
  margin-top: 20px;
}

.ksg-card {
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(18, 24, 32, .05);
}

.ksg-intro h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.ksg-grid {
  gap: 12px 16px;
}

.ksg-grid input,
.ksg-competition select {
  padding: 9px 11px;
}

.ksg-competition {
  padding: 11px 0;
  border-radius: 8px;
  transition: background-color .18s ease, box-shadow .18s ease, padding .18s ease;
}

.ksg-competition.is-selected {
  padding: 11px 12px;
  background: #f0f9f4;
  box-shadow: inset 0 0 0 1px #98d8b5;
}

.ksg-payment-status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ksg-payment-status.is-paid {
  color: #067647;
  background: #ecfdf3;
}

.ksg-payment-status.is-pending {
  color: #93370d;
  background: #fff4e8;
}

.ksg-equipment-box {
  border-left: 5px solid #f79009;
}

.ksg-equipment-list {
  display: grid;
  gap: 8px;
}

.ksg-equipment-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ksg-line);
  border-radius: 8px;
  background: #fffaf3;
}

.ksg-equipment-option input {
  width: 18px;
  height: 18px;
}

.ksg-equipment-option small {
  display: block;
  margin-top: 2px;
  color: var(--ksg-muted);
}

.ksg-equipment-option b {
  color: #93370d;
  white-space: nowrap;
}

.ksg-equipment-option:has(input:disabled) {
  opacity: .55;
}

.ksg-payment-box dl {
  margin: 0;
}

.ksg-payment-box dl div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ksg-line);
}

.ksg-payment-box dt {
  color: var(--ksg-muted);
}

.ksg-payment-box dd {
  margin: 0;
}

.ksg-account {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
}

@media (max-width: 680px) {
  .single-tribe_events .tribe-events-single-event-description,
  .single-tribe_events .tribe-events-content {
    overflow: visible !important;
  }

  .ksg-wrap {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 16px 0 20px calc(50% - 50vw + 12px) !important;
    box-sizing: border-box;
    text-align: left !important;
  }

  .ksg-wrap,
  .ksg-wrap * {
    box-sizing: border-box;
  }

  .ksg-card {
    width: 100% !important;
    max-width: none !important;
    padding: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .ksg-form {
    width: 100% !important;
    max-width: none !important;
  }

  .ksg-intro h2 {
    font-size: 24px !important;
    line-height: 1.18;
  }

  .ksg-intro p,
  .ksg-card p {
    line-height: 1.55;
  }

  .ksg-grid,
  .ksg-competitions,
  .ksg-competition,
  .ksg-grid label,
  .ksg-grid input,
  .ksg-competition select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .ksg-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ksg-equipment-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ksg-equipment-option b {
    grid-column: 2;
  }

  .ksg-submit {
    width: 100%;
  }

  .ksg-payment-box dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
