/*
 * SyahOTP / AVEROTP – Mobile medium-size layout correction.
 * Memperbaiki jarak kartu dan teks yang sebelumnya menempel tepi akibat CSS lama.
 * Desain saja; tidak memodifikasi API, pesanan, transaksi, QRIS, atau route.
 */
@layer pop {
@media (max-width: 600px) {
  html[data-design="armufa-modern"] body {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
  html[data-design="armufa-modern"] body :is(.mc-page,.docs-wrap) {
    width: calc(100% - 28px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html[data-design="armufa-modern"] body .mc-page {
    padding: 15px 0 28px !important;
  }
  html[data-design="armufa-modern"] body .sy-menu-bar,
  html[data-design="armufa-modern"] body .sy-menu-bar a {
    min-height: 45px !important;
  }
  html[data-design="armufa-modern"] body .sy-menu-bar a {
    font-size: 14px !important;
    gap: 9px !important;
  }
  html[data-design="armufa-modern"] body .sy-header .mc-header-inner {
    min-height: 62px !important;
  }
  html[data-design="armufa-modern"] body .mc-header.sy-header {
    min-height: 62px !important;
  }

  /* Order: section heading with moderate typography */
  html[data-design="armufa-modern"] body .sy-reference-heading {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 2px 0 13px !important;
    min-width: 0 !important;
  }
  html[data-design="armufa-modern"] body .sy-reference-heading__icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 13px !important;
    font-size: 18px !important;
  }
  html[data-design="armufa-modern"] body .sy-reference-heading > div {
    min-width: 0 !important;
    flex: 1 !important;
  }
  html[data-design="armufa-modern"] body .sy-reference-heading h1 {
    font-size: clamp(18px, 5.1vw, 21px) !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  html[data-design="armufa-modern"] body .sy-reference-heading p {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    margin-top: 3px !important;
    overflow-wrap: anywhere !important;
  }
  /* Legacy styles were forcing panel padding:0; reinstate inner gutter. */
  html[data-design="armufa-modern"] body .sy-reference-panel {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 13px !important;
    margin-bottom: 13px !important;
    border-radius: 17px !important;
    overflow: hidden !important;
  }
  html[data-design="armufa-modern"] body .sy-reference-panel h2 {
    font-size: 13px !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
  }
  html[data-design="armufa-modern"] body .sy-server-choice {
    display: flex !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 61px !important;
    padding: 9px 11px !important;
    gap: 10px !important;
    margin: 0 0 8px !important;
    border-radius: 13px !important;
    min-width: 0 !important;
  }
  html[data-design="armufa-modern"] body .sy-reference-panel .sy-server-choice:last-child {
    margin-bottom: 0 !important;
  }
  html[data-design="armufa-modern"] body .sy-server-choice__icon {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 11px !important;
    font-size: 15px !important;
  }
  html[data-design="armufa-modern"] body .sy-server-choice__label {
    min-width: 0 !important;
    flex: 1 !important;
  }
  html[data-design="armufa-modern"] body .sy-server-choice__label strong {
    font-size: 14px !important;
    line-height: 1.3 !important;
    color: #112748 !important;
  }
  html[data-design="armufa-modern"] body .sy-server-choice__label small {
    font-size: 11px !important;
    color: #6a7d97 !important;
  }
  html[data-design="armufa-modern"] body .sy-reference-list {
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 17px !important;
    margin-bottom: 13px !important;
    overflow: hidden !important;
  }
  html[data-design="armufa-modern"] body .sy-reference-list__title {
    padding: 11px 13px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    align-items: center !important;
  }
  html[data-design="armufa-modern"] body .sy-reference-list__title small {
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  html[data-design="armufa-modern"] body :is(.sy-service-tools,.sy-country-tools) {
    padding: 10px 12px 8px !important;
  }
  html[data-design="armufa-modern"] body .sy-order-services .sy-service-list-row,
  html[data-design="armufa-modern"] body .sy-reference-row {
    min-width: 0 !important;
    box-sizing: border-box !important;
    min-height: 61px !important;
    padding: 9px 12px !important;
    gap: 11px !important;
    border-radius: 0 !important;
  }
  html[data-design="armufa-modern"] body .sy-order-services .sy-reference-row__icon {
    width: 39px !important;
    height: 39px !important;
    flex: 0 0 39px !important;
    border-radius: 11px !important;
    font-size: 18px !important;
  }
  html[data-design="armufa-modern"] body .sy-order-services .sy-reference-row__text {
    min-width: 0 !important;
    flex: 1 !important;
    font-size: 13.5px !important;
    overflow-wrap: anywhere !important;
    line-height: 1.3 !important;
  }
  html[data-design="armufa-modern"] body .sy-reference-row__chevron {
    flex: 0 0 auto !important;
    font-size: 11px !important;
  }
  html[data-design="armufa-modern"] body .sy-service-tools .mc-search,
  html[data-design="armufa-modern"] body .sy-country-tools .mc-search {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  html[data-design="armufa-modern"] body .sy-order-countries .mc-country-header {
    min-height: 62px !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  html[data-design="armufa-modern"] body .sy-order-countries .mc-country-name {
    font-size: 13px !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }
  html[data-design="armufa-modern"] body .sy-order-countries .mc-country-flag {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
  }

  /* Deposit: visible card margins, all receipt text INSIDE card */
  html[data-design="armufa-modern"] body .sy-pay-page {
    width: calc(100% - 28px) !important;
    padding: 15px 0 26px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-header {
    gap: 10px !important;
    margin: 3px 0 14px !important;
    min-width: 0 !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-header-icon {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    border-radius: 12px !important;
    font-size: 19px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-header-title {
    min-width: 0 !important;
    flex: 1 !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-header-title h1 {
    font-size: clamp(19px, 5.2vw, 22px) !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-header-title p {
    font-size: 11.5px !important;
    color: #667b98 !important;
    overflow-wrap: anywhere !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 14px !important;
    margin: 0 0 12px !important;
    border-radius: 17px !important;
    overflow: hidden !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-outcome {
    min-height: 0 !important;
    text-align: center !important;
    padding: 19px 15px 21px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-ring {
    width: 86px !important;
    height: 86px !important;
    margin: 0 auto 11px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-ring-center {
    width: 63px !important;
    height: 63px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-outcome h2 {
    font-size: 17px !important;
    line-height: 1.3 !important;
    margin: 0 0 7px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-outcome p {
    max-width: 340px !important;
    margin: 0 auto !important;
    font-size: 11.5px !important;
    line-height: 1.5 !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-outcome .sy-pay-small-note {
    font-size: 10.5px !important;
    margin-top: 7px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-receipt {
    padding: 9px 15px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-receipt-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 55px !important;
    padding: 8px 0 !important;
    font-size: 12px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-receipt-row > span:first-child {
    min-width: 0 !important;
    flex: 0 1 43% !important;
    max-width: 43% !important;
    color: #647793 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-receipt-row > strong {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    font-size: 12px !important;
    text-align: right !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-receipt-row strong.sy-pay-total {
    font-size: 13px !important;
    color: #155ec6 !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-receipt-value {
    min-width: 0 !important;
    flex: 0 1 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-copy {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-badge {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    display: inline-block !important;
    padding: 5px 9px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-actions {
    gap: 9px !important;
    margin: 11px 0 9px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-button {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 45px !important;
    padding: 11px 13px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-footnote {
    font-size: 10px !important;
    line-height: 1.45 !important;
    padding: 0 8px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-qr {
    width: min(215px, 77%) !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-amount {
    font-size: 20px !important;
  }
}
@media (max-width: 340px) {
  html[data-design="armufa-modern"] body .sy-pay-receipt-row > span:first-child {
    font-size: 11px !important;
    max-width: 39% !important;
    flex-basis: 39% !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-receipt-row strong {
    font-size: 11px !important;
  }
  html[data-design="armufa-modern"] body .sy-pay-receipt {
    padding: 8px 12px !important;
  }
}
}
