/* Isolated checkout surface; native gateway fields and update fragments remain intact. */
.dmx-checkout-title {
  margin: 30px 0;
}
.dmx-checkout-title > span {
  color: var(--cyan);
  font-size: 12px;
}
.dmx-checkout-title h1 {
  font-size: 32px;
  margin: 8px 0;
}
.dmx-checkout-title p {
  color: var(--muted);
}
.dmx-site form.dmx-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 28px;
  align-items: start;
}
.dmx-checkout-customer,
.dmx-checkout-summary {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: var(--glass);
}
.dmx-site .dmx-checkout #customer_details,
.dmx-site .dmx-checkout #order_review {
  padding: 0;
  border: 0;
  background: none;
  width: 100%;
  float: none;
  grid-row: auto;
}
.dmx-site .dmx-checkout h2,
.dmx-site .dmx-checkout h3 {
  font-size: 19px;
  margin: 0 0 22px;
}
.dmx-checkout .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.dmx-site .dmx-checkout .form-row {
  float: none;
  width: auto;
  margin: 0;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dmx-site .dmx-checkout .form-row-wide {
  grid-column: 1/-1;
}
.dmx-checkout .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}
.dmx-checkout label {
  font-size: 13px;
  font-weight: 500;
}
.dmx-checkout #billing_phone_field .optional,
.dmx-checkout #order_comments_field .optional {
  display: none;
}
.dmx-checkout input.input-text,
.dmx-checkout textarea,
.dmx-checkout select,
.dmx-order-field input,
.dmx-order-field textarea,
.dmx-order-field select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 11px 14px;
  font: inherit;
}
.dmx-checkout textarea {
  min-height: 105px;
  resize: vertical;
}
.dmx-checkout input[type="email"],
.dmx-checkout input[type="tel"] {
  direction: ltr;
  text-align: left;
}
.dmx-checkout .select2-container {
  width: 100% !important;
}
.dmx-checkout .select2-selection--single {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.dmx-checkout .select2-selection__rendered {
  line-height: 46px !important;
  color: var(--ink) !important;
}
.dmx-checkout .select2-selection__arrow {
  height: 46px !important;
}
.dmx-checkout .woocommerce-additional-fields {
  margin-top: 28px;
}
.dmx-checkout-product-fields {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
}
.dmx-checkout-product-fields legend {
  font-weight: 700;
  padding: 0 8px;
  font-size: 14px;
}
.dmx-checkout-product-fields p,
.dmx-order-field small {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.dmx-order-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.dmx-order-field .required {
  color: var(--cyan);
}
.dmx-checkout-lines {
  display: grid;
  gap: 18px;
}
.dmx-checkout-line {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 18px;
  min-width: 0;
}
.dmx-site .dmx-checkout-line h3 {
  font-size: 13px;
  line-height: 1.9;
  margin: 0 0 6px;
}
.dmx-checkout-line small,
.dmx-checkout-line dl {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.dmx-checkout-line dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 6px;
}
.dmx-checkout-line dd {
  margin: 0;
}
.dmx-checkout-line dd p {
  margin: 0;
}
.dmx-checkout-line > strong {
  grid-column: 2;
  text-align: left;
  font-size: 14px;
}
.dmx-checkout-visual {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
}
.dmx-checkout-visual img {
  width: 60px;
  height: 60px;
  max-height: 60px;
  object-fit: contain;
  background: white;
  contain: none;
}
.dmx-checkout-visual .dmx-product-art {
  min-height: 0;
}
.dmx-checkout-visual .dmx-product-art b {
  font-size: 20px;
  width: 32px;
  height: 32px;
}
.dmx-checkout-visual .dmx-product-art span {
  display: none;
}
.dmx-checkout-totals {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 20px 0;
}
.dmx-checkout-totals th {
  text-align: right;
  font-weight: 500;
}
.dmx-checkout-totals td {
  text-align: left;
}
.dmx-checkout-totals th,
.dmx-checkout-totals td {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.dmx-checkout-totals .order-total {
  font-size: 16px;
}
.dmx-site .dmx-checkout #payment {
  background: var(--panel2);
  padding: 20px;
  border-radius: 16px;
}
.dmx-checkout .wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.dmx-checkout .wc_payment_method {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 12px;
}
.dmx-checkout .wc_payment_method > input {
  width: auto;
  min-height: 0;
  margin-inline-end: 8px;
  accent-color: var(--blue);
}
.dmx-checkout .wc_payment_method > label {
  display: inline;
}
.dmx-checkout .wc_payment_method > label img {
  max-width: 80px;
  max-height: 30px;
  vertical-align: middle;
  margin-inline-start: 8px;
}
.dmx-site .dmx-checkout .payment_box {
  padding: 10px 0 0;
  margin-top: 8px;
  background: none;
  color: var(--muted);
  font-size: 12px;
}
.dmx-checkout .payment_box p {
  margin: 0;
}
.dmx-checkout .woocommerce-terms-and-conditions-wrapper {
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
  margin-top: 18px;
}
.dmx-checkout .woocommerce-form__label-for-checkbox {
  display: flex;
  gap: 8px;
  align-items: start;
}
.dmx-checkout .woocommerce-form__label-for-checkbox > span {
  flex: 0 1 auto;
}
.dmx-checkout .woocommerce-form__label-for-checkbox .required {
  flex: 0 0 auto;
}
.dmx-checkout .woocommerce-form__input-checkbox {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 5px;
}
.dmx-site .dmx-checkout #place_order {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 14px;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  background: var(--blue);
  color: white;
  width: 100%;
  margin-top: 20px;
}
.dmx-checkout-edit {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
}
.dmx-checkout .woocommerce-error {
  grid-column: 1/-1;
}
@media (max-width: 900px) {
  .dmx-site form.dmx-checkout {
    grid-template-columns: 1fr;
  }
  .dmx-checkout-customer,
  .dmx-checkout-summary {
    padding: 22px;
  }
}
@media (max-width: 480px) {
  .dmx-checkout .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
  .dmx-site .dmx-checkout .form-row {
    grid-column: 1;
  }
  .dmx-checkout-customer,
  .dmx-checkout-summary {
    padding: 18px;
  }
  .dmx-checkout-title h1 {
    font-size: 27px;
  }
  .dmx-checkout-product-fields {
    padding: 16px;
  }
  .dmx-site .dmx-checkout #payment {
    padding: 14px;
  }
}
.dmx-checkout-coupon {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 12px 20px;
  margin-top: 20px;
}
.dmx-checkout-coupon p {
  font-size: 13px;
  margin: 0;
}
.dmx-checkout-coupon form {
  margin-top: 16px;
}
.dmx-checkout-coupon label {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  vertical-align: bottom;
  margin-inline-end: 12px;
}
.dmx-checkout-coupon input {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-height: 46px;
}
.dmx-checkout-customer > .dmx-help,
.woocommerce-billing-fields > .dmx-help {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
