/* v1.9.02: premium mobile redesign for the volume price section */
@media (max-width: 767px) {
  .afp-widget .afp-master-row--ranges td {
    padding-top: 2px !important;
  }

  .afp-widget .afp-range-shell {
    border-radius: 26px !important;
    border: 1px solid rgba(226, 214, 205, 0.96) !important;
    background: linear-gradient(180deg, rgba(255, 253, 250, 0.98) 0%, rgba(255, 249, 245, 0.98) 100%) !important;
    box-shadow: 0 12px 28px rgba(42, 28, 20, 0.06) !important;
    overflow: hidden !important;
  }

  .afp-widget .afp-range-toggle {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 16px 12px !important;
  }

  .afp-widget .afp-range-toggle__title {
    min-width: 0 !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 850 !important;
    letter-spacing: -0.01em !important;
  }

  .afp-widget .afp-range-toggle__action {
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    background: rgba(181, 108, 82, 0.08) !important;
    border: 1px solid rgba(181, 108, 82, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  }

  .afp-widget .afp-range-panel {
    padding: 0 12px 12px !important;
  }

  .afp-widget .afp-price-table {
    display: block !important;
  }

  .afp-widget .afp-tier-table {
    display: block !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    border: 1px solid rgba(225, 213, 204, 0.96) !important;
    background: linear-gradient(180deg, rgba(255, 253, 250, 0.99) 0%, rgba(255, 255, 255, 0.99) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  }

  .afp-widget .afp-tier-table colgroup {
    display: none !important;
  }

  .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 {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .afp-widget .afp-tier-table thead tr:first-child th {
    padding: 16px 16px 14px !important;
    background: linear-gradient(180deg, rgba(181, 108, 82, 0.08), rgba(181, 108, 82, 0.03)) !important;
    border-bottom: 1px solid rgba(225, 213, 204, 0.92) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: var(--afp-accent) !important;
  }

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

  .afp-widget .afp-tier-table tbody {
    display: grid !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .afp-widget .afp-tier-table tbody tr {
    display: grid !important;
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(226, 214, 205, 0.92) !important;
    background: #fffdfb !important;
    box-shadow: 0 6px 16px rgba(36, 24, 18, 0.035) !important;
  }

  .afp-widget .afp-tier-table tbody tr.is-current {
    border-color: rgba(181, 108, 82, 0.28) !important;
    background: linear-gradient(180deg, rgba(181, 108, 82, 0.10) 0%, rgba(181, 108, 82, 0.04) 100%) !important;
    box-shadow: inset 3px 0 0 var(--afp-accent), 0 10px 24px rgba(181, 108, 82, 0.10) !important;
  }

  .afp-widget .afp-tier-table tbody td {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    white-space: normal !important;
    text-align: left !important;
    color: var(--afp-text) !important;
    line-height: 1.34 !important;
  }

  .afp-widget .afp-tier-table tbody td::before {
    content: attr(data-label) !important;
    display: block !important;
    margin-bottom: 6px !important;
    color: var(--afp-muted) !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
  }

  .afp-widget .afp-tier-table tbody td:first-child {
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  .afp-widget .afp-tier-table tbody td:last-child {
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    color: var(--afp-text) !important;
  }

  .afp-widget .afp-tier-table tbody td:last-child .woocommerce-Price-amount,
  .afp-widget .afp-tier-table tbody td:last-child bdi {
    font: inherit !important;
    color: inherit !important;
  }
}
