/* v1.9.22: mobile premium range table cleanup */
@media (max-width: 767px) {
  .afp-widget .afp-range-shell {
    padding: 20px 16px 18px !important;
    border-radius: 34px !important;
    border: 1px solid rgba(229, 217, 209, 0.96) !important;
    background: linear-gradient(180deg, rgba(255,254,252,0.998) 0%, rgba(255,250,246,0.992) 100%) !important;
    box-shadow: 0 12px 30px rgba(41,28,21,0.022) !important;
  }

  .afp-widget .afp-range-toggle {
    display: block !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .afp-widget .afp-range-toggle__title {
    display: none !important;
  }

  .afp-widget .afp-tier-table,
  .afp-widget .afp-tier-table thead,
  .afp-widget .afp-tier-table tbody,
  .afp-widget .afp-tier-table tr,
  .afp-widget .afp-tier-table th,
  .afp-widget .afp-tier-table td,
  .afp-widget .afp-range-panel,
  .afp-widget .afp-price-table {
    background-image: none !important;
  }

  .afp-widget .afp-range-toggle__action,
  .afp-widget .afp-tier-table thead tr:first-child th {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(223, 210, 201, 0.98) !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.9), 0 8px 20px rgba(41,28,21,0.024) !important;
    color: color-mix(in srgb, var(--afp-accent) 88%, #8f6c61 12%) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    white-space: nowrap !important;
  }

  .afp-widget .afp-tier-table thead {
    display: block !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
  }

  .afp-widget .afp-tier-table thead tr:first-child {
    display: block !important;
    margin: 0 !important;
  }

  .afp-widget .afp-tier-table thead tr:first-child th {
    margin-top: 12px !important;
  }

  .afp-widget .afp-tier-table thead tr:nth-child(2),
  .afp-widget .afp-tier-table colgroup {
    display: none !important;
  }

  .afp-widget .afp-range-panel,
  .afp-widget .afp-price-table,
  .afp-widget .afp-tier-table,
  .afp-widget .afp-tier-table tbody {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .afp-widget .afp-tier-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .afp-widget .afp-tier-table tbody tr,
  .afp-widget .afp-tier-table tbody tr.is-current {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: stretch !important;
    min-height: 104px !important;
    margin: 0 !important;
    border-radius: 30px !important;
    border: 1px solid rgba(229, 217, 209, 0.98) !important;
    background: linear-gradient(180deg, rgba(255,253,250,0.998) 0%, rgba(255,249,244,0.992) 100%) !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(41,28,21,0.018) !important;
  }

  .afp-widget .afp-tier-table tbody tr.is-current {
    border-color: rgba(184,113,88,0.38) !important;
    background: linear-gradient(180deg, rgba(255,248,241,0.998) 0%, rgba(255,244,236,0.994) 100%) !important;
    box-shadow: 0 10px 26px rgba(181,108,82,0.045) !important;
  }

  .afp-widget .afp-tier-table tbody tr::before,
  .afp-widget .afp-tier-table tbody tr::after,
  .afp-widget .afp-tier-table tbody td::after,
  .afp-widget .afp-tier-table tbody td > *::before,
  .afp-widget .afp-tier-table tbody td > *::after {
    content: none !important;
    display: none !important;
  }

  .afp-widget .afp-tier-table tbody td,
  .afp-widget .afp-tier-table tbody tr.is-current td,
  .afp-widget .afp-tier-table tbody td + td {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 104px !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .afp-widget .afp-tier-table tbody td:first-child {
    align-items: flex-start !important;
    text-align: left !important;
    padding-right: 22px !important;
    border-right: 1px solid rgba(229, 217, 209, 0.98) !important;
  }

  .afp-widget .afp-tier-table tbody tr.is-current td:first-child {
    border-right-color: rgba(184,113,88,0.26) !important;
  }

  .afp-widget .afp-tier-table tbody td:last-child {
    align-items: flex-end !important;
    text-align: right !important;
    padding-left: 22px !important;
  }

  .afp-widget .afp-tier-table tbody td::before {
    content: attr(data-label) !important;
    display: block !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: color-mix(in srgb, var(--afp-muted) 88%, white 12%) !important;
    white-space: nowrap !important;
    background: transparent !important;
  }

  .afp-widget .afp-tier-table tbody td:first-child,
  .afp-widget .afp-tier-table tbody td:first-child *,
  .afp-widget .afp-tier-table tbody td:last-child,
  .afp-widget .afp-tier-table tbody td:last-child *,
  .afp-widget .afp-tier-table tbody td:last-child .woocommerce-Price-amount,
  .afp-widget .afp-tier-table tbody td:last-child .woocommerce-Price-amount.amount,
  .afp-widget .afp-tier-table tbody td:last-child .woocommerce-Price-currencySymbol,
  .afp-widget .afp-tier-table tbody td:last-child bdi {
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  .afp-widget .afp-tier-table tbody td:first-child,
  .afp-widget .afp-tier-table tbody td:first-child * {
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
    color: var(--afp-text) !important;
    white-space: nowrap !important;
    border-left: 0 !important;
  }

  .afp-widget .afp-tier-table tbody td:last-child,
  .afp-widget .afp-tier-table tbody td:last-child .woocommerce-Price-amount,
  .afp-widget .afp-tier-table tbody td:last-child .woocommerce-Price-amount.amount,
  .afp-widget .afp-tier-table tbody td:last-child .woocommerce-Price-currencySymbol,
  .afp-widget .afp-tier-table tbody td:last-child bdi {
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    color: var(--afp-text) !important;
    white-space: nowrap !important;
    border-left: 0 !important;
  }

  .afp-widget .afp-tier-table tbody td:last-child .woocommerce-Price-amount,
  .afp-widget .afp-tier-table tbody td:last-child .woocommerce-Price-amount.amount,
  .afp-widget .afp-tier-table tbody td:last-child bdi {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    gap: 0 !important;
  }

  .afp-widget .afp-tier-table tbody td:last-child .afp-range-price-unit {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    margin-left: 6px !important;
    font-size: 0.8em !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: var(--afp-muted) !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 420px) {
  .afp-widget .afp-range-shell {
    padding: 18px 14px 16px !important;
    border-radius: 30px !important;
  }

  .afp-widget .afp-range-toggle__action,
  .afp-widget .afp-tier-table thead tr:first-child th {
    min-height: 54px !important;
    font-size: 13px !important;
    padding: 0 18px !important;
  }

  .afp-widget .afp-tier-table tbody tr,
  .afp-widget .afp-tier-table tbody tr.is-current,
  .afp-widget .afp-tier-table tbody td,
  .afp-widget .afp-tier-table tbody td + td {
    min-height: 96px !important;
  }

  .afp-widget .afp-tier-table tbody td,
  .afp-widget .afp-tier-table tbody td + td {
    padding: 16px 18px !important;
  }

  .afp-widget .afp-tier-table tbody td:first-child {
    padding-right: 18px !important;
  }

  .afp-widget .afp-tier-table tbody td:last-child {
    padding-left: 18px !important;
  }

  .afp-widget .afp-tier-table tbody td:first-child,
  .afp-widget .afp-tier-table tbody td:first-child *,
  .afp-widget .afp-tier-table tbody td:last-child,
  .afp-widget .afp-tier-table tbody td:last-child .woocommerce-Price-amount,
  .afp-widget .afp-tier-table tbody td:last-child .woocommerce-Price-amount.amount,
  .afp-widget .afp-tier-table tbody td:last-child .woocommerce-Price-currencySymbol,
  .afp-widget .afp-tier-table tbody td:last-child bdi {
    font-size: 15px !important;
  }
}
