/* 1.9.77 — clean mobile premium tables without layered grid/card overrides */
@media (max-width: 767px) {
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-range-shell {
    padding: 16px !important;
    border: 1px solid rgba(229, 217, 209, 0.98) !important;
    border-radius: 30px !important;
    background: linear-gradient(180deg, rgba(255,254,252,0.995) 0%, rgba(255,250,246,0.99) 100%) !important;
    box-shadow: 0 12px 28px rgba(41, 28, 21, 0.022) !important;
    overflow: hidden !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-range-toggle {
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-range-toggle__title {
    display: none !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-range-toggle__action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 54px !important;
    padding: 0 26px !important;
    margin: 0 !important;
    border: 1px solid rgba(223, 210, 201, 0.98) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(255,253,250,1) 0%, rgba(251,245,239,0.99) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 6px 16px rgba(41, 28, 21, 0.018) !important;
    color: color-mix(in srgb, var(--afp-accent, #b56c52) 88%, #8f6c61 12%) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-range-panel,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-range-panel:not([hidden]) {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-range-panel[hidden] {
    display: none !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-price-table {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid rgba(229, 217, 209, 0.98) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background: rgba(255, 252, 249, 0.98) !important;
    box-shadow: none !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-price-table + .afp-price-table {
    margin-top: 14px !important;
  }

  /* Range table: hard reset to true table layout */
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > thead,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > thead > tr,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    background: transparent !important;
    transform: none !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > colgroup {
    display: table-column-group !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > colgroup > col {
    display: table-column !important;
    width: 50% !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > thead {
    display: table-header-group !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody {
    display: table-row-group !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > thead > tr,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr {
    display: table-row !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > thead > tr::before,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > thead > tr::after,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr::before,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr::after,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > thead > tr > th::before,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > thead > tr > th::after,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td::before,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td::after,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td > *::before,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td > *::after {
    content: none !important;
    display: none !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > thead > tr:first-child > th,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > thead > tr:first-child > th[colspan="2"] {
    display: table-cell !important;
    width: 100% !important;
    padding: 18px 18px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(229, 217, 209, 0.98) !important;
    background: linear-gradient(180deg, rgba(255,253,250,1) 0%, rgba(251,245,239,0.99) 100%) !important;
    color: color-mix(in srgb, var(--afp-accent, #b56c52) 88%, #8f6c61 12%) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    text-align: left !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > thead > tr:nth-child(2) > th {
    display: table-cell !important;
    width: 50% !important;
    padding: 13px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(229, 217, 209, 0.98) !important;
    background: rgba(255, 249, 244, 0.82) !important;
    color: color-mix(in srgb, var(--afp-muted, #8f7a70) 88%, white 12%) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-align: left !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > thead > tr:nth-child(2) > th + th {
    text-align: right !important;
    border-left: 1px solid rgba(229, 217, 209, 0.98) !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td {
    display: table-cell !important;
    width: 50% !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 18px 16px !important;
    border: 0 !important;
    border-top: 1px solid rgba(229, 217, 209, 0.98) !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    border-radius: 0 !important;
    position: static !important;
    float: none !important;
    transform: none !important;
    overflow: visible !important;
    text-indent: 0 !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr:first-child > td {
    border-top: 0 !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td + td {
    border-left: 1px solid rgba(229, 217, 209, 0.98) !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr.is-current > td {
    background: linear-gradient(180deg, rgba(255,248,242,0.92) 0%, rgba(255,245,238,0.90) 100%) !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr.is-current > td:first-child {
    box-shadow: inset 4px 0 0 var(--afp-accent, #b56c52) !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td:first-child,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td:first-child * {
    text-align: left !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    color: var(--afp-text, #2a201b) !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td:last-child,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td:last-child *,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td:last-child bdi,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td:last-child .woocommerce-Price-amount,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td:last-child .woocommerce-Price-amount.amount,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td:last-child .woocommerce-Price-currencySymbol {
    text-align: right !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    color: var(--afp-text, #2a201b) !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--ranges .afp-tier-table > tbody > tr > td:last-child .afp-range-price-unit {
    display: inline !important;
    margin-left: 4px !important;
    font-size: 0.82em !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: var(--afp-muted, #8f7a70) !important;
    white-space: nowrap !important;
  }

  /* Summary table: restore premium two-column table */
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-live-panel,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-summary {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid rgba(225, 214, 207, 0.98) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #fff 0%, rgba(255,251,248,.98) 100%) !important;
    box-shadow: none !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody {
    display: table-row-group !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr {
    display: table-row !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr::before,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr::after,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr > td::before,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr > td::after,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr > th::before,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr > th::after {
    content: none !important;
    display: none !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr > th,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr > td {
    display: table-cell !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    vertical-align: middle !important;
    border: 0 !important;
    border-top: 1px solid rgba(232, 223, 217, .95) !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    position: static !important;
    float: none !important;
    transform: none !important;
    text-indent: 0 !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr:first-child > th,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr:first-child > td {
    border-top: 0 !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr > th:first-child,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr > td:first-child {
    width: 42% !important;
    border-right: 1px solid rgba(225, 214, 207, .98) !important;
    color: #8f7a70 !important;
    font-size: 11px !important;
    line-height: 1.24 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr > th:last-child,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr > td:last-child {
    width: 58% !important;
    color: var(--afp-text, #2a201b) !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr > td:last-child *,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr > th:last-child * {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    line-height: inherit !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr[data-afp-row="base"] > td:first-child,
  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table > tbody > tr[data-afp-fee-row] > td:first-child {
    text-transform: none !important;
    letter-spacing: .03em !important;
    font-size: 11px !important;
    line-height: 1.28 !important;
  }

  .afp-widget.afp-product-builder.afp-builder-shell.afp-shell--mobile .afp-master-row--summary .afp-result-table em {
    color: var(--afp-muted, #8f7a70) !important;
    font-style: normal !important;
    font-weight: 800 !important;
  }
}
