.mg-shipping-settings {
  background: linear-gradient(135deg, #f4f8ff, #fff);
  border: 2px solid #cbd8ee;
  border-radius: 18px;
  display: grid;
  gap: 14px;
  margin: 10px 0;
  padding: 20px;
}
.mg-shipping-settings legend { background: #13203a; border-radius: 999px; color: #fff; font-size: 16px; font-weight: 850; padding: 8px 14px; }
.mg-shipping-settings > p { color: #4b5870; font-size: 15px; line-height: 1.55; margin: 0; }
.mg-shipping-settings label { color: #17233a; font-size: 15px; font-weight: 800; }
.mg-shipping-settings select,
.mg-shipping-settings input { background: #fff; border: 2px solid #b8c6df; border-radius: 12px; color: #111827; font-size: 16px; margin-top: 7px; min-height: 48px; padding: 10px 12px; width: 100%; }
.mg-shipping-settings select:focus,
.mg-shipping-settings input:focus { border-color: #526dff; box-shadow: 0 0 0 4px rgba(82,109,255,.14); outline: 0; }
.mg-shipping-cost-field small { color: #63708a; display: block; font-size: 13px; font-weight: 600; margin-top: 6px; }
.mg-shipping-free-note { background: #eaffd0; border: 1px solid #96d83d; border-radius: 12px; color: #244600; font-size: 15px; font-weight: 800; padding: 12px 14px; }
.mg-shipping-settings [hidden] { display: none !important; }

.mg-seller-terms { align-items: flex-start; background: #fff8d8; border: 2px solid #efc946; border-radius: 16px; color: #2c2a1d; display: flex !important; font-size: 15px !important; gap: 12px; line-height: 1.5; padding: 17px; }
.mg-seller-terms input { accent-color: #2f6bff; flex: 0 0 auto; height: 22px; margin: 1px 0 0; width: 22px; }
.mg-seller-terms a { color: #174cbd; font-weight: 850; text-decoration: underline; }
.mg-admin-shipping-readonly { background: #f3f5f8; border: 1px solid #d7dce6; border-radius: 14px; color: #283247; display: flex; flex-direction: column; gap: 5px; margin: 10px 0; padding: 16px; }
.mg-admin-shipping-readonly b { font-size: 16px; }

.mg-card-shipping { align-items: center; border-radius: 10px; display: inline-flex; font-size: 14px; font-weight: 800; line-height: 1.25; margin: 8px 0 3px; padding: 8px 10px; width: fit-content; }
.mg-card-shipping.mg-shipping-paid { background: #eaf0ff; color: #153f9f; }
.mg-card-shipping.mg-shipping-free { background: #e8ffd0; color: #275400; }
.mg-card-shipping.mg-shipping-none { background: #f1f3f6; color: #4a5363; }

.mg-listing-shipping { align-items: center; background: #f4f7ff; border: 2px solid #ccd8f1; border-radius: 17px; display: flex; gap: 13px; margin: 16px 0; padding: 14px 16px; }
.mg-listing-shipping > span { align-items: center; background: #fff; border-radius: 13px; display: flex; flex: 0 0 48px; font-size: 25px; height: 48px; justify-content: center; }
.mg-listing-shipping div { display: flex; flex-direction: column; gap: 2px; }
.mg-listing-shipping small { color: #667089; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.mg-listing-shipping b { color: #15213a; font-size: 17px; }
.mg-listing-shipping em { color: #3158c9; font-size: 14px; font-style: normal; font-weight: 850; }
.mg-listing-shipping.mg-shipping-free { background: #ecffd8; border-color: #9fdb4e; }
.mg-platform-disclaimer { align-items: flex-start; background: #fff7d6; border: 1px solid #ebc854; border-radius: 14px; color: #34301c; display: flex; gap: 11px; margin: 18px 0; padding: 14px; }
.mg-platform-disclaimer > span { font-size: 22px; }
.mg-platform-disclaimer p { font-size: 14px; line-height: 1.55; margin: 0; }

.mg-checkout-breakdown { background: #f5f7fb; border: 1px solid #d9dfea; border-radius: 14px; display: grid; gap: 0; margin: 14px 0; overflow: hidden; }
.mg-checkout-breakdown > span,
.mg-checkout-breakdown > strong { align-items: center; display: flex; justify-content: space-between; padding: 10px 13px; }
.mg-checkout-breakdown > * + * { border-top: 1px solid #dde3ee; }
.mg-checkout-breakdown small { color: #606b80; font-size: 13px; font-weight: 750; }
.mg-checkout-breakdown b { color: #111b2e; font-size: 16px; }
.mg-checkout-breakdown > strong { background: #10192b; }
.mg-checkout-breakdown > strong small,
.mg-checkout-breakdown > strong b { color: #fff; }
.mg-checkout-breakdown > strong b { font-size: 21px; }
.mg-offer-shipping { background: #edf2ff; border-radius: 8px; color: #2c4b9d !important; display: block; font-size: 13px !important; margin-top: 7px; padding: 8px 10px; }
.mg-offer-shipping.free { background: #eaffd2; color: #285200 !important; }

.mg-order-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mg-order-summary .mg-order-total { background: #eefbdc; }
.mg-order-summary .mg-order-total b { color: #244c00; font-size: 18px; }
.mg-report-table { min-width: 1120px; }

@media (max-width: 800px) {
  .mg-order-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-order-summary > div:nth-child(odd) { border-left: 0; }
  .mg-order-summary > div:nth-child(even) { border-left: 1px solid var(--mg-line); }
}
@media (max-width: 620px) {
  .mg-shipping-settings { padding: 16px; }
  .mg-seller-terms { font-size: 14px !important; }
  .mg-card-shipping { font-size: 13px; }
  .mg-listing-shipping { align-items: flex-start; }
  .mg-order-summary { grid-template-columns: 1fr; }
  .mg-order-summary > div:nth-child(n) { border-left: 0; }
}
