:root {
  --mmp-primary: #2596BE;
  --mmp-secondary: #034EA2;
  --mmp-muted: #CDCDCD;
  --mmp-text: #35546d;
  --mmp-white: #ffffff;
  --mmp-bg-soft: #f3f7fa;
  --mmp-danger: #b42318;
  --mmp-success: #147a41;
  --mmp-warning: #9a6700;
}

.mmp-shell,
.mmp-shell * {
  box-sizing: border-box;
}

.mmp-shell {
  direction: rtl;
  width: min(100%, 1120px);
  margin: 28px auto;
  color: var(--mmp-text);
  font-family: "Myriad-Regular", "Myriad Pro", Tahoma, Arial, sans-serif !important;
  line-height: 1.7;
}

.mmp-shell h1,
.mmp-shell h2,
.mmp-shell h3,
.mmp-shell h4,
.mmp-shell h5,
.mmp-shell h6,
.mmp-shell strong,
.mmp-shell button,
.mmp-shell .mmp-button,
.mmp-shell .mmp-logout {
  font-family: "Myriad_Bold", "Myriad Pro", Tahoma, Arial, sans-serif !important;
}

.mmp-login-card,
.mmp-order-form {
  background: var(--mmp-white);
  border: 1px solid rgba(205, 205, 205, .75) !important;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(3, 78, 162, .08);
}

.mmp-login-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 26px 30px;
  position: relative;
  overflow: hidden;
}

.mmp-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, rgba(37, 150, 190, .12), rgba(3, 78, 162, .10));
  border-radius: 0 0 120px 0;
  pointer-events: none;
}

.mmp-login-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px 0 16px;
}

.mmp-logo-box {
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mmp-logo-box img {
  display: block;
  max-width: 180px;
  width: auto;
  max-height: 110px;
  height: auto;
  object-fit: contain;
}

.mmp-brand-dot {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--mmp-primary), var(--mmp-secondary));
}

.mmp-login-card h2,
.mmp-dashboard-head h2 {
  margin: 0;
  color: #3155a7;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
}

.mmp-login-card h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  text-align: center;
}

.mmp-form,
.mmp-order-form {
  display: grid;
  gap: 18px;
}

.mmp-form {
  position: relative;
  z-index: 1;
}

.mmp-order-form {
  padding: 28px;
}

.mmp-form label,
.mmp-order-form label {
  display: grid;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  color: #536d8b;
}

.mmp-form input,
.mmp-order-form input,
.mmp-order-form textarea,
.mmp-form select,
.mmp-order-form select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(205, 205, 205, .95) !important;
  background: #fff;
  color: #294f80;
  outline: none;
  box-shadow: none !important;
  font-family: "Myriad-Regular", "Myriad Pro", Tahoma, Arial, sans-serif !important;
  font-size: 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.mmp-form input:focus,
.mmp-order-form input:focus,
.mmp-order-form textarea:focus {
  border-color: var(--mmp-primary) !important;
  box-shadow: 0 0 0 4px rgba(37, 150, 190, .12) !important;
}

.mmp-order-form textarea {
  min-height: 120px;
  resize: vertical;
}

.mmp-order-form input[readonly] {
  background: #f8fafc;
  color: #35546d;
}

.mmp-button,
.mmp-shell button[type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mmp-primary), var(--mmp-secondary)) !important;
  color: #fff !important;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(3, 78, 162, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.mmp-button:hover,
.mmp-shell button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(3, 78, 162, .22);
}

.mmp-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.mmp-dashboard-head::before {
  display: none !important;
}

.mmp-dashboard-head-main {
  margin: 0;
}

.mmp-logout {
  appearance: none;
  -webkit-appearance: none;
  min-width: 88px;
  min-height: 42px;
  padding: 8px 16px;
  border: 0 !important;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mmp-primary), var(--mmp-secondary)) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(3, 78, 162, .14);
  transition: transform .2s ease, box-shadow .2s ease;
}

.mmp-logout:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(3, 78, 162, .18);
}

.mmp-form-grid,
.mmp-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mmp-stage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mmp-stage-grid.mmp-no-discount {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mmp-stage-grid.mmp-has-discount {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mmp-price-box {
  display: flex;
  direction: rtl;
  flex-direction: row;
  align-items: flex-end;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(37, 150, 190, .18);
  background: linear-gradient(135deg, rgba(37, 150, 190, .06), rgba(3, 78, 162, .04));
}

.mmp-price-field {
  flex: 1 1 220px;
  margin: 0;
}

.mmp-unit-price-wrap {
  flex: 0 1 220px;
  display: grid;
  gap: 8px;
}

.mmp-unit-price-title {
  font-size: 19px;
  font-weight: 700;
  color: #536d8b;
  text-align: center;
}

.mmp-math {
  flex: 0 0 auto;
  align-self: flex-end;
  color: #2f56a8;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 10px;
}

.mmp-unit-price {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(205, 205, 205, .95);
  background: #fff;
  color: #2f56a8;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 700;
  font-family: "Myriad_Bold", "Myriad Pro", Tahoma, Arial, sans-serif !important;
}

.mmp-alert {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: opacity .25s ease, transform .25s ease;
}

.mmp-alert.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
}

.mmp-alert-text {
  flex: 1 1 auto;
}

.mmp-alert-close {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: currentColor !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .75;
}

.mmp-alert-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, .06) !important;
}

.mmp-alert a {
  color: inherit;
  text-decoration: underline;
}

.mmp-alert-success {
  background: #ecfdf3;
  color: var(--mmp-success);
  border-color: #abefc6;
}

.mmp-alert-error {
  background: #fef3f2;
  color: var(--mmp-danger);
  border-color: #fecdca;
}

.mmp-alert-warning {
  background: #fffaeb;
  color: var(--mmp-warning);
  border-color: #fedf89;
}

@media (max-width: 980px) {
  .mmp-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mmp-price-box {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 16px;
  }

  .mmp-price-field,
  .mmp-unit-price-wrap {
    flex: 0 0 auto;
    width: 100%;
  }

  .mmp-math {
    align-self: center;
    font-size: 34px;
    padding-bottom: 0;
  }

  .mmp-stage-grid.mmp-no-discount,
  .mmp-stage-grid.mmp-has-discount {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mmp-shell {
    margin: 18px auto;
  }

  .mmp-login-card,
  .mmp-order-form {
    border-radius: 22px;
  }

  .mmp-login-card {
    max-width: 460px;
    padding: 24px 18px 26px;
  }

  .mmp-order-form {
    padding: 20px;
  }

  .mmp-dashboard-head {
    align-items: flex-start;
  }

  .mmp-dashboard-head h2 {
    font-size: 34px;
  }

  .mmp-form-grid,
  .mmp-stage-grid {
    grid-template-columns: 1fr;
  }

  .mmp-form label,
  .mmp-order-form label {
    font-size: 18px;
  }

  .mmp-button,
  .mmp-shell button[type="submit"] {
    font-size: 20px;
  }

  .mmp-logout {
    min-width: 76px;
    min-height: 38px;
    padding: 7px 14px;
    font-size: 15px;
  }

  .mmp-logo-box img {
    max-width: 170px;
    max-height: 96px;
  }
}

/* Invoice / payment page */

.mmp-payment-standalone {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  background: #f6f8fb;
  overflow-x: hidden;
}

.mmp-payment-standalone .mmp-shell {
  margin-top: 0;
  padding: 28px 16px;
}

.mmp-invoice {
  max-width: 980px;
}

.mmp-invoice-card {
  background: #fff;
  border: 1px solid rgba(205, 205, 205, .75) !important;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(3, 78, 162, .08);
  padding: 28px;
}

.mmp-invoice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.mmp-invoice-head h2 {
  margin: 0 0 6px;
  color: #3155a7;
  font-size: clamp(30px, 3vw, 48px);
}

.mmp-invoice-head p {
  margin: 0;
  color: #536d8b;
  font-size: 18px;
}

.mmp-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f3f7fa;
  color: #3155a7;
  font-family: "Myriad_Bold", "Myriad Pro", Tahoma, Arial, sans-serif !important;
  font-size: 15px;
  white-space: nowrap;
}

.mmp-status-paid {
  background: #ecfdf3;
  color: #147a41;
}

.mmp-status-failed {
  background: #fef3f2;
  color: #b42318;
}

.mmp-status-waiting_review,
.mmp-status-redirected {
  background: #fffaeb;
  color: #9a6700;
}

.mmp-invoice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.mmp-invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(205, 205, 205, .7);
  border-radius: 16px;
  background: #fff;
}

.mmp-invoice-row span {
  color: #536d8b;
  font-weight: 700;
}

.mmp-invoice-row strong {
  color: #294f80;
  text-align: left;
}

.mmp-invoice-total {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(37, 150, 190, .06), rgba(3, 78, 162, .04));
  border: 1px solid rgba(37, 150, 190, .18);
  margin-bottom: 16px;
}

.mmp-invoice-total .mmp-invoice-row {
  background: transparent;
}

.mmp-invoice-row.mmp-payable {
  background: #fff;
  border-color: rgba(37, 150, 190, .25);
}

.mmp-invoice-row.mmp-payable strong {
  color: #2f56a8;
  font-size: 22px;
}

.mmp-invoice-address {
  margin: 16px 0 22px;
  padding: 16px;
  border: 1px solid rgba(205, 205, 205, .7);
  border-radius: 16px;
}

.mmp-invoice-address span {
  display: block;
  margin-bottom: 8px;
  color: #536d8b;
  font-weight: 700;
}

.mmp-invoice-address p {
  margin: 0;
  color: #294f80;
}

.mmp-gateway-form h3 {
  margin: 0 0 12px;
  color: #3155a7;
  font-size: 24px;
}

.mmp-gateway-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.mmp-gateway-card {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px !important;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(205, 205, 205, .85);
  background: #fff;
  cursor: pointer;
}

.mmp-gateway-card input {
  width: 18px !important;
  min-height: 18px !important;
  margin: 0;
  padding: 0;
}

.mmp-gateway-card strong,
.mmp-gateway-card small {
  display: block;
}

.mmp-gateway-card strong {
  color: #294f80;
  font-size: 19px;
}

.mmp-gateway-card small {
  color: #536d8b;
  font-size: 15px;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .mmp-invoice-card {
    border-radius: 22px;
    padding: 20px;
  }

  .mmp-invoice-head {
    flex-direction: column;
  }

  .mmp-invoice-grid {
    grid-template-columns: 1fr;
  }

  .mmp-invoice-row {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Responsive refinement - v1.2.11 */
.mmp-shell,
.mmp-shell * {
  min-width: 0;
}

.mmp-shell {
  width: min(calc(100% - 28px), 1120px) !important;
  font-size: 16px;
  line-height: 1.62;
}

.mmp-login-card {
  max-width: 430px !important;
  padding: 26px 24px 28px !important;
}

.mmp-login-top {
  margin: 4px 0 14px !important;
}

.mmp-login-card h2 {
  font-size: clamp(24px, 2.1vw, 34px) !important;
  line-height: 1.25 !important;
  margin: 4px 0 28px !important;
}

.mmp-dashboard-head h2 {
  font-size: clamp(24px, 2.4vw, 38px) !important;
  line-height: 1.25 !important;
}

.mmp-form,
.mmp-order-form {
  gap: 16px !important;
}

.mmp-order-form {
  padding: 24px !important;
}

.mmp-form label,
.mmp-order-form label,
.mmp-unit-price-title {
  font-size: 16px !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere;
}

.mmp-form input,
.mmp-order-form input,
.mmp-order-form textarea,
.mmp-form select,
.mmp-order-form select,
.mmp-unit-price {
  min-height: 48px !important;
  padding: 11px 14px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.mmp-order-form textarea {
  min-height: 104px !important;
}

.mmp-button,
.mmp-shell button[type="submit"] {
  min-height: 48px !important;
  font-size: 18px !important;
  border-radius: 14px !important;
}

.mmp-logout {
  min-width: 76px !important;
  min-height: 36px !important;
  padding: 6px 13px !important;
  font-size: 14px !important;
  border-radius: 12px !important;
}

.mmp-form-grid,
.mmp-stage-grid,
.mmp-stage-grid.mmp-no-discount,
.mmp-stage-grid.mmp-has-discount {
  gap: 14px !important;
}

.mmp-stage-grid.mmp-has-discount {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.mmp-stage-grid.mmp-no-discount {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.mmp-price-box {
  gap: 10px !important;
  padding: 16px !important;
  border-radius: 20px !important;
}

.mmp-price-field {
  flex-basis: 190px !important;
}

.mmp-unit-price-wrap {
  flex-basis: 190px !important;
}

.mmp-unit-price {
  white-space: normal !important;
  text-align: center;
  justify-content: center;
}

.mmp-math {
  font-size: 28px !important;
  padding-bottom: 10px !important;
}

.mmp-alert {
  font-size: 15px !important;
  line-height: 1.6 !important;
  padding: 12px 14px !important;
}

.mmp-invoice-head h2 {
  font-size: clamp(24px, 2.4vw, 36px) !important;
}

.mmp-invoice-head p,
.mmp-invoice-row,
.mmp-invoice-address,
.mmp-gateway-card strong {
  font-size: 16px !important;
}

@media (max-width: 980px) {
  .mmp-shell {
    width: min(calc(100% - 22px), 1120px) !important;
  }

  .mmp-price-box {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .mmp-price-field,
  .mmp-unit-price-wrap {
    width: 100% !important;
    flex: none !important;
  }

  .mmp-math {
    align-self: center !important;
    justify-self: center !important;
    font-size: 24px !important;
    padding: 0 !important;
    margin: -2px 0 !important;
  }

  .mmp-unit-price-title {
    text-align: right !important;
  }
}

@media (max-width: 760px) {
  .mmp-shell {
    width: min(calc(100% - 16px), 1120px) !important;
    margin: 14px auto !important;
    font-size: 15px !important;
  }

  .mmp-login-card {
    max-width: 100% !important;
    padding: 22px 16px 24px !important;
    border-radius: 20px !important;
  }

  .mmp-login-card::before {
    width: 120px !important;
    height: 120px !important;
  }

  .mmp-logo-box img {
    max-width: 140px !important;
    max-height: 82px !important;
  }

  .mmp-brand-dot {
    width: 64px !important;
    height: 64px !important;
    border-radius: 20px !important;
  }

  .mmp-login-card h2 {
    font-size: 24px !important;
    margin: 2px 0 24px !important;
  }

  .mmp-dashboard-head {
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .mmp-dashboard-head h2 {
    font-size: 24px !important;
  }

  .mmp-order-form {
    padding: 16px 14px !important;
    border-radius: 20px !important;
    gap: 13px !important;
  }

  .mmp-form,
  .mmp-order-form {
    gap: 13px !important;
  }

  .mmp-form-grid,
  .mmp-stage-grid,
  .mmp-stage-grid.mmp-no-discount,
  .mmp-stage-grid.mmp-has-discount {
    grid-template-columns: 1fr !important;
    gap: 11px !important;
  }

  .mmp-stage-grid > label {
    grid-column: 1 / -1 !important;
  }

  .mmp-form label,
  .mmp-order-form label,
  .mmp-unit-price-title {
    font-size: 14.5px !important;
    gap: 6px !important;
  }

  .mmp-form input,
  .mmp-order-form input,
  .mmp-order-form textarea,
  .mmp-form select,
  .mmp-order-form select,
  .mmp-unit-price {
    min-height: 44px !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }

  .mmp-price-box {
    padding: 13px !important;
    gap: 7px !important;
    border-radius: 18px !important;
  }

  .mmp-button,
  .mmp-shell button[type="submit"] {
    min-height: 45px !important;
    font-size: 16px !important;
  }

  .mmp-logout {
    min-width: 66px !important;
    min-height: 32px !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
  }

  .mmp-alert {
    font-size: 14px !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  .mmp-alert-close {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    font-size: 20px !important;
  }

  .mmp-invoice-card {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .mmp-invoice-row {
    padding: 11px 12px !important;
    gap: 6px !important;
  }

  .mmp-invoice-row strong,
  .mmp-invoice-row span,
  .mmp-gateway-card strong,
  .mmp-gateway-card small {
    font-size: 14.5px !important;
  }

  .mmp-invoice-row.mmp-payable strong {
    font-size: 18px !important;
  }
}

@media (max-width: 420px) {
  .mmp-shell {
    width: min(calc(100% - 12px), 1120px) !important;
  }

  .mmp-login-card,
  .mmp-order-form,
  .mmp-invoice-card {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .mmp-login-card h2,
  .mmp-dashboard-head h2 {
    font-size: 22px !important;
  }

  .mmp-form label,
  .mmp-order-form label,
  .mmp-unit-price-title {
    font-size: 14px !important;
  }

  .mmp-form input,
  .mmp-order-form input,
  .mmp-order-form textarea,
  .mmp-unit-price {
    font-size: 14.5px !important;
  }
}

/* v1.2.16: extra mobile space for sticky/bottom navigation bars */
@media (max-width: 760px) {
  .mmp-shell.mmp-dashboard,
  .mmp-payment-standalone .mmp-shell {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
    margin-bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mmp-shell.mmp-dashboard .mmp-order-form,
  .mmp-payment-standalone .mmp-invoice-card {
    margin-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mmp-payment-standalone {
    min-height: 100svh !important;
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* v1.2.23: responsive package selector for order plans */
.mmp-package-section {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(37, 150, 190, .18);
  background: linear-gradient(135deg, rgba(37, 150, 190, .06), rgba(3, 78, 162, .04));
}

.mmp-package-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: stretch;
}

.mmp-package-head h3 {
  margin: 2px 0 4px;
  color: #3155a7;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.35;
}

.mmp-package-head p {
  margin: 0;
  color: #536d8b;
  font-size: 15px;
  line-height: 1.8;
}

.mmp-section-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 150, 190, .10);
  color: #2f56a8;
  font-size: 13px;
  font-weight: 700;
}

.mmp-package-total-card {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(37, 150, 190, .20);
  box-shadow: 0 12px 26px rgba(3, 78, 162, .08);
}

.mmp-package-total-card span,
.mmp-package-total-card small {
  color: #536d8b;
  font-size: 14px;
  font-weight: 700;
}

.mmp-package-total-card strong {
  color: #2f56a8;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.35;
  font-family: "Myriad_Bold", "Myriad Pro", Tahoma, Arial, sans-serif !important;
}

.mmp-package-total-card b {
  color: #147a41;
  font-family: "Myriad_Bold", "Myriad Pro", Tahoma, Arial, sans-serif !important;
}

.mmp-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mmp-package-card {
  position: relative;
  display: block !important;
  min-width: 0;
  cursor: pointer;
  margin: 0 !important;
  color: inherit !important;
}

.mmp-package-card input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.mmp-package-card-inner {
  min-height: 178px;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(205, 205, 205, .95);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 22px rgba(3, 78, 162, .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.mmp-package-card:hover .mmp-package-card-inner,
.mmp-package-card input[type="radio"]:focus-visible + .mmp-package-card-inner {
  transform: translateY(-2px);
  border-color: rgba(37, 150, 190, .50);
  box-shadow: 0 14px 28px rgba(3, 78, 162, .12);
}

.mmp-package-card input[type="radio"]:checked + .mmp-package-card-inner,
.mmp-package-card.is-selected .mmp-package-card-inner {
  border-color: rgba(37, 150, 190, .95);
  background: linear-gradient(180deg, rgba(37, 150, 190, .10), #fff 72%);
  box-shadow: 0 16px 32px rgba(3, 78, 162, .15);
}

.mmp-package-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mmp-package-name {
  color: #35546d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.mmp-package-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(3, 78, 162, .10);
  color: #2f56a8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.mmp-package-price {
  color: #2f56a8;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.35;
  font-family: "Myriad_Bold", "Myriad Pro", Tahoma, Arial, sans-serif !important;
}

.mmp-package-meta {
  color: #536d8b;
  font-size: 14px;
  line-height: 1.7;
}

.mmp-package-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(37, 150, 190, .10);
  color: #2f56a8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.mmp-package-card input[type="radio"]:checked + .mmp-package-card-inner .mmp-package-select,
.mmp-package-card.is-selected .mmp-package-select {
  background: linear-gradient(135deg, var(--mmp-primary), var(--mmp-secondary));
  color: #fff;
}

@media (max-width: 1024px) {
  .mmp-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mmp-package-section {
    padding: 14px !important;
    border-radius: 20px !important;
    gap: 14px !important;
  }

  .mmp-package-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mmp-package-total-card {
    min-height: 82px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .mmp-package-card-inner {
    min-height: 154px;
    padding: 14px;
    border-radius: 16px;
  }

  .mmp-package-head h3 {
    font-size: 21px !important;
  }

  .mmp-package-head p,
  .mmp-package-meta,
  .mmp-package-select {
    font-size: 13.5px !important;
  }
}

@media (max-width: 560px) {
  .mmp-package-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mmp-package-card-inner {
    min-height: auto;
  }

  .mmp-package-top {
    align-items: center;
  }
}

/* v1.2.24: multi-section order quantities and final total */
.mmp-package-card {
  cursor: default;
}

.mmp-package-card-inner {
  grid-template-rows: auto auto 1fr auto auto !important;
}

.mmp-package-qty-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: end;
  position: relative;
  z-index: 3;
}

.mmp-package-qty-label {
  margin: 0 !important;
  display: grid !important;
  gap: 6px !important;
  color: #536d8b !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}

.mmp-package-quantity {
  min-height: 42px !important;
  text-align: center;
  font-family: "Myriad_Bold", "Myriad Pro", Tahoma, Arial, sans-serif !important;
  color: #2f56a8 !important;
}

.mmp-package-step {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(37, 150, 190, .24) !important;
  background: #fff !important;
  color: #2f56a8 !important;
  box-shadow: 0 8px 18px rgba(3, 78, 162, .08) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.mmp-package-step:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 150, 190, .55) !important;
}

.mmp-package-line-total {
  display: inline-flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(37, 150, 190, .08);
  color: #536d8b;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
}

.mmp-package-line-total b {
  color: #2f56a8;
  font-family: "Myriad_Bold", "Myriad Pro", Tahoma, Arial, sans-serif !important;
}

.mmp-package-card.is-selected .mmp-package-card-inner {
  border-color: rgba(37, 150, 190, .95);
  background: linear-gradient(180deg, rgba(37, 150, 190, .10), #fff 72%);
  box-shadow: 0 16px 32px rgba(3, 78, 162, .15);
}

.mmp-package-empty-note {
  display: none;
  margin: -4px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fffaeb;
  color: #9a6700;
  border: 1px solid #fedf89;
  font-size: 14px;
  font-weight: 700;
}

.mmp-package-empty-note.is-visible {
  display: block;
}

.mmp-submit-order:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.mmp-invoice-items {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(37, 150, 190, .18);
  background: linear-gradient(135deg, rgba(37, 150, 190, .06), rgba(3, 78, 162, .04));
}

.mmp-invoice-items h3 {
  margin: 0;
  color: #3155a7;
  font-size: 20px;
}

.mmp-invoice-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(205, 205, 205, .7);
}

.mmp-invoice-item-row span {
  color: #294f80;
  font-weight: 800;
}

.mmp-invoice-item-row strong {
  color: #2f56a8;
}

.mmp-invoice-item-row small {
  grid-column: 1 / -1;
  color: #536d8b;
  font-weight: 700;
}

@media (max-width: 760px) {
  .mmp-package-qty-row {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .mmp-package-step {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 12px !important;
    font-size: 20px !important;
  }

  .mmp-package-line-total {
    flex-direction: column;
    gap: 2px;
  }

  .mmp-invoice-item-row {
    grid-template-columns: 1fr;
  }
}


/* v1.2.25: cleaner mobile package layout, less nested box feeling */
@media (max-width: 760px) {
  .mmp-package-section {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 12px !important;
  }

  .mmp-package-head {
    gap: 10px !important;
  }

  .mmp-section-kicker {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #2f56a8 !important;
  }

  .mmp-package-head h3 {
    margin: 4px 0 0 !important;
    font-size: 19px !important;
    line-height: 1.45 !important;
  }

  .mmp-package-head p {
    display: none !important;
  }

  .mmp-package-total-card {
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 16px !important;
    background: #f8fbff !important;
    box-shadow: none !important;
  }

  .mmp-package-grid {
    gap: 8px !important;
  }

  .mmp-package-card-inner {
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: none !important;
    gap: 7px !important;
  }

  .mmp-package-card:hover .mmp-package-card-inner {
    transform: none !important;
    box-shadow: none !important;
  }

  .mmp-package-card.is-selected .mmp-package-card-inner {
    background: #f8fbff !important;
    box-shadow: none !important;
  }

  .mmp-package-top {
    gap: 6px !important;
  }

  .mmp-package-name {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .mmp-package-badge {
    padding: 2px 7px !important;
    font-size: 11px !important;
  }

  .mmp-package-price {
    font-size: 18px !important;
  }

  .mmp-package-meta {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
  }

  .mmp-package-qty-row {
    grid-template-columns: 36px minmax(0, 1fr) 36px !important;
    gap: 6px !important;
    align-items: end !important;
  }

  .mmp-package-qty-label {
    gap: 4px !important;
    font-size: 12.5px !important;
  }

  .mmp-package-quantity {
    min-height: 38px !important;
  }

  .mmp-package-step {
    width: 36px !important;
    min-width: 36px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  .mmp-package-line-total {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 12.5px !important;
  }
}

@media (max-width: 420px) {
  .mmp-package-card-inner {
    padding: 10px !important;
  }

  .mmp-package-total-card {
    padding: 10px !important;
  }

  .mmp-package-total-card strong {
    font-size: 19px !important;
  }
}
