.web-commerce-intro,
.web-commerce-notice,
.web-commerce-section,
.web-commerce-summary,
.web-payment-card,
.web-commerce-success {
  border: 1px solid var(--line, #263650);
  background: rgba(15, 26, 44, .92);
  border-radius: 18px;
}

.web-commerce-intro,
.web-commerce-notice {
  padding: 16px;
  margin-bottom: 16px;
}

.web-commerce-intro strong,
.web-commerce-notice strong {
  display: block;
  font-size: 17px;
  margin-bottom: 5px;
}

.web-commerce-intro p,
.web-commerce-notice p,
.web-commerce-help,
.web-commerce-points,
.web-payment-card p {
  margin: 0;
  color: var(--muted, #aeb9cb);
  line-height: 1.5;
}

.web-commerce-cart-actions {
  display: grid;
  gap: 9px;
}

.web-commerce-saving {
  margin-top: 5px;
  color: #69d9a3;
  font-size: 13px;
  font-weight: 800;
}

.web-commerce-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: min(900px, calc(100dvh - 24px));
  padding: 0;
  border: 1px solid #2b3e5b;
  border-radius: 24px;
  background: #0a1322;
  color: #f7f9fc;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .55);
}

.web-commerce-dialog::backdrop {
  background: rgba(2, 7, 15, .78);
  backdrop-filter: blur(5px);
}

.web-commerce-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.web-commerce-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #23344e;
  background: rgba(10, 19, 34, .97);
}

.web-commerce-head p {
  margin: 0 0 2px;
  color: #7fc5ff;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 900;
}

.web-commerce-head h2 {
  margin: 0;
  font-size: 22px;
}

.web-commerce-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid #30445f;
  border-radius: 50%;
  background: #14223a;
  color: white;
  font-size: 26px;
  line-height: 1;
}

.web-commerce-body {
  overflow: auto;
  padding: 20px;
}

.web-commerce-form {
  display: grid;
  gap: 16px;
}

.web-commerce-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
}

.web-commerce-summary strong {
  font-size: 20px;
}

.web-commerce-section {
  padding: 17px;
}

.web-commerce-section h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.web-commerce-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.web-commerce-field {
  display: grid;
  gap: 7px;
  color: #bfcbda;
  font-size: 13px;
  font-weight: 800;
}

.web-commerce-field.full,
.web-commerce-dynamic.full {
  grid-column: 1 / -1;
}

.web-commerce-field input,
.web-commerce-field select,
.web-commerce-field textarea,
.web-commerce-dynamic select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #334963;
  border-radius: 12px;
  background: #09111f;
  color: #f7f9fc;
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
}

.web-commerce-field textarea {
  min-height: 88px;
  resize: vertical;
}

.web-commerce-dynamic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 2px;
}

.web-commerce-dynamic > .web-commerce-field.full,
.web-commerce-dynamic > .web-commerce-help,
.web-commerce-dynamic > .web-commerce-option-info {
  grid-column: 1 / -1;
}

.web-commerce-option-info {
  padding: 11px 12px;
  border-radius: 12px;
  background: #0d1b2f;
  color: #aebdd0;
  font-size: 13px;
  line-height: 1.45;
}

.web-commerce-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
  font-weight: 800;
}

.web-commerce-check input {
  width: 20px;
  height: 20px;
  accent-color: #2f9cff;
}

.web-commerce-actions {
  display: grid;
  gap: 9px;
}

.web-commerce-actions button {
  min-height: 50px;
}

.web-commerce-points {
  padding: 13px 15px;
  border: 1px solid #2b4f70;
  border-radius: 14px;
  background: #0d2035;
  color: #b9d8f2;
  font-size: 13px;
}

.web-commerce-inline-error {
  margin-bottom: 14px;
}

.web-payment-card {
  padding: 19px;
  margin-bottom: 18px;
}

.web-payment-method {
  font-weight: 900;
  color: #dce9f7 !important;
}

.web-payment-amount {
  margin: 8px 0 12px;
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 950;
  letter-spacing: -.03em;
}

.web-payment-base,
.web-payment-fee {
  margin-bottom: 8px !important;
}

.web-payment-instructions {
  margin-top: 11px !important;
  padding-top: 11px;
  border-top: 1px solid #263a56;
  white-space: pre-line;
}

.web-commerce-success {
  padding: 28px 22px;
  text-align: center;
}

.web-commerce-success-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #153c2b;
  color: #85ebb2;
  font-size: 34px;
  font-weight: 950;
}

.web-commerce-success h3 {
  margin: 0 0 10px;
  font-size: 25px;
}

.web-commerce-success > p {
  color: #aebdd0;
  line-height: 1.5;
}

.web-commerce-success > strong {
  display: block;
  margin: 16px 0;
  word-break: break-word;
}

.web-commerce-success button {
  width: 100%;
  margin-top: 15px;
}

@media (max-width: 760px) {
  .web-commerce-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .web-commerce-body {
    padding: 15px 14px calc(92px + env(safe-area-inset-bottom));
  }

  .web-commerce-head {
    padding: 14px 15px;
  }

  .web-commerce-grid,
  .web-commerce-dynamic {
    grid-template-columns: 1fr;
  }

  .web-commerce-field.full,
  .web-commerce-dynamic.full,
  .web-commerce-dynamic > .web-commerce-field.full,
  .web-commerce-dynamic > .web-commerce-help,
  .web-commerce-dynamic > .web-commerce-option-info {
    grid-column: 1;
  }

  .web-commerce-cart-actions .client-primary,
  .web-commerce-cart-actions .client-secondary,
  .web-commerce-cart-actions .client-danger {
    width: 100%;
  }
}
