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

.spb-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr);
  gap: 24px;
  align-items: start;
  width: calc(100% - 20px);
  max-width: 960px;
  margin: 0 auto 50px;
}

.spb-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.spb-card .spb-h {
  padding: 14px 0 7px;
  margin: 0 16px;
  border-bottom: 1px solid #ccc;
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.spb-card .spb-b {
  padding: 16px;
}

.spb-form-body {
  margin-top: 10px;
}

.spb-field {
  margin: 0 0 20px;
}

.spb-field > label,
.spb-label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
}

.spb-app .spb-input,
.spb-app .spb-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  line-height: 20px;
}

.spb-app .spb-input:focus,
.spb-app .spb-select:focus {
  border-color: #b69e84;
  box-shadow: 0 0 5px 2px hsla(31, 26%, 62%, .5);
  outline: 0;
}

.spb-required {
  margin-left: 6px;
  color: #d00;
  font-size: 12px;
  font-weight: 400;
  vertical-align: middle;
}

.spb-check {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.spb-summary {
  position: sticky;
  top: 30px;
  z-index: 10;
  align-self: start;
  height: fit-content;
  overflow: visible;
  background: #f2f2ec;
}

.spb-row,
.spb-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.spb-kv > div:last-child {
  font-weight: 600;
  text-align: right;
}

.spb-sku-name {
  margin-bottom: 8px;
  font-size: 15.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.spb-total {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #e5e7eb;
  font-size: 18px;
  font-weight: 700;
}

.spb-app #card-container {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

.spb-app #card-container.spb-locked {
  pointer-events: none;
  opacity: .65;
}

.spb-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.spb-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 4px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.spb-btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

.spb-btn-outline {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
}

.spb-hidden {
  display: none !important;
}

.spb-steps {
  display: grid;
  gap: 8px;
}

.spb-review-divider {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid #eee;
}

.spb-review-discount,
.spb-discount-section,
.spb-discount-section .spb-row {
  color: #c00;
}

.spb-discount-lbl {
  margin-bottom: 4px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.spb-summary-hr {
  margin: 10px 0;
  border: 0;
  border-top: 1px dashed #ccc;
}

.spb-msg,
.spb-note {
  margin-top: 8px;
  font-size: 13px;
}

.spb-note {
  color: #6b7280;
}

.spb-msg.ok {
  color: #065f46;
}

.spb-msg.ng {
  color: #991b1b;
}

.spb-policy-details summary,
.spb-app #privacy-wrap a {
  display: inline-block;
  color: #06c;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.spb-policy-box {
  padding: 12px 14px;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
}

.spb-policy-title {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.spb-policy-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.spb-field.spb-error .spb-input,
.spb-field.spb-error .spb-select {
  border-color: #ef4444;
  background: #fff7f7;
}

.spb-err-msg {
  margin-top: 6px;
  color: #b91c1c;
  font-size: 12px;
}

.spb-select option:disabled {
  color: #9ca3af;
  background: #f3f4f6;
}

.spb-config-error {
  padding: 12px 16px;
  border: 1px solid #fecaca;
  background: #fff7f7;
  color: #991b1b;
}

@media (max-width: 767px) {
  .spb-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .spb-card .spb-h {
    margin: 0 8px;
  }

  .spb-card .spb-b {
    padding-right: 8px;
    padding-left: 8px;
  }

  .spb-summary {
    position: static;
  }
}
