/* Novira — Payment checkout step */

.ds-pay-page {
  background: var(--ds-bg-soft);
  padding: 24px 0 0;
  min-height: calc(100vh - 64px);
}

.ds-pay-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
}

.ds-pay-empty a {
  color: var(--ds-brand);
  font-weight: 600;
}

.ds-pay-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 1024px) {
  .ds-pay-layout {
    grid-template-columns: 1fr 340px;
  }
}

.ds-pay-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ds-pay-box {
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
}

.ds-pay-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ds-border);
}

.ds-pay-box-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin: 0;
}

.ds-pay-box-action {
  font-size: 13px;
  font-weight: 600;
  color: #2196f3;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.ds-pay-box-action:hover {
  text-decoration: underline;
}

.ds-pay-methods {
  padding: 8px 0;
}

.ds-pay-method {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-bottom: 1px solid var(--ds-border);
  background: var(--ds-bg);
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  transition: background 0.2s;
}

.ds-pay-method:last-child {
  border-bottom: none;
}

.ds-pay-method:hover {
  background: var(--ds-bg-soft);
}

.ds-pay-method.is-active {
  background: rgba(33, 150, 243, 0.06);
}

.ds-pay-method-radio {
  flex-shrink: 0;
  margin-top: 4px;
  accent-color: #2196f3;
  width: 18px;
  height: 18px;
}

.ds-pay-method-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.ds-pay-method-body {
  flex: 1;
  min-width: 0;
}

.ds-pay-method-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  display: block;
  margin-bottom: 4px;
}

.ds-pay-method-desc {
  font-size: 12px;
  color: var(--ds-text-muted);
  line-height: 1.5;
}

.ds-pay-credit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ds-pay-credit-chip {
  padding: 8px 12px;
  border: 1px solid var(--ds-border);
  border-radius: 6px;
  font-size: 11px;
  color: var(--ds-text-muted);
  background: var(--ds-bg-soft);
}

.ds-pay-credit-chip strong {
  display: block;
  font-size: 12px;
  color: var(--ds-text-secondary);
  margin-bottom: 2px;
}

.ds-pay-methods-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--ds-border);
}

.ds-pay-methods-footer a {
  font-size: 13px;
  font-weight: 600;
  color: #2196f3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ds-pay-field-body {
  padding: 16px 20px;
}

.ds-pay-field-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ds-bg);
}

.ds-pay-field-row input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
}

.ds-pay-field-row input:focus {
  outline: none;
}

.ds-pay-field-submit {
  padding: 12px 20px;
  background: var(--ds-bg-soft);
  border: none;
  border-right: 1px solid var(--ds-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text-muted);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.ds-pay-field-submit:hover {
  color: var(--ds-text-secondary);
  background: var(--ds-border);
}

.ds-pay-field-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #2196f3;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.ds-pay-field-link:hover {
  text-decoration: underline;
}

.ds-pay-field-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ds-text-muted);
  line-height: 1.6;
}

.ds-pay-order-body {
  padding: 16px 20px;
}

.ds-pay-order-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ds-pay-order-icon {
  color: var(--ds-brand);
  flex-shrink: 0;
}

.ds-pay-order-info {
  flex: 1;
}

.ds-pay-order-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin-bottom: 6px;
}

.ds-pay-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ds-text-muted);
}

.ds-pay-order-details {
  padding: 0 20px 16px;
  border-top: 1px solid var(--ds-border);
}

.ds-pay-order-detail-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--ds-border);
  font-size: 12px;
  color: var(--ds-text-secondary);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ds-pay-order-detail-item:last-child {
  border-bottom: none;
}

.ds-pay-info-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
  background: var(--ds-bg-soft);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  font-size: 12px;
  color: var(--ds-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.ds-pay-info-note-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ds-border);
  color: var(--ds-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.ds-pay-sidebar {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .ds-pay-sidebar {
    position: sticky;
    top: 88px;
  }
}

.ds-pay-sidebar-card {
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 20px;
}

.ds-pay-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--ds-text-muted);
  margin-bottom: 14px;
}

.ds-pay-sidebar-row strong {
  font-size: 14px;
  color: var(--ds-text-secondary);
  white-space: nowrap;
}

.ds-pay-sidebar-row--ship .ds-pay-price-group {
  text-align: left;
}

.ds-pay-price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.ds-pay-price-old {
  font-size: 11px;
  color: var(--ds-text-muted);
  text-decoration: line-through;
}

.ds-pay-sidebar-row--total {
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--ds-border);
  margin-bottom: 16px;
}

.ds-pay-sidebar-row--total strong {
  font-size: 17px;
  font-weight: 800;
}

.ds-pay-btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--ds-brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.ds-pay-btn-submit:hover {
  background: var(--ds-brand-dark);
}
