/* Cartes abonnement dans les listes produit WooCommerce.
   La carte reste dans la grille normale ; seuls les prix passent l'un sous l'autre. */
@media (max-width: 544px) {
  ul.products li.product:is(.product_cat-abonnements, .product_cat-abonnement),
  ul.products li.product:has(.pn-subscription-price),
  ul.products li.product:has(.pn-sub-destination-choice) {
    grid-column: auto !important;
    flex: initial !important;
    flex-basis: auto !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  ul.products li.product:is(.product_cat-abonnements, .product_cat-abonnement) .price:has(.pn-subscription-price),
  ul.products li.product:is(.product_cat-abonnements, .product_cat-abonnement) .price:has(.pn-sub-destination-choice),
  ul.products li.product:has(.pn-subscription-price) .price,
  ul.products li.product:has(.pn-sub-destination-choice) .price,
  ul.products li.product:is(.product_cat-abonnements, .product_cat-abonnement) .pn-subscription-price,
  ul.products li.product:has(.pn-subscription-price) .pn-subscription-price,
  ul.products li.product:has(.pn-sub-destination-choice) .pn-subscription-price {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.45rem !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.55rem 0 0.65rem !important;
    text-align: left !important;
  }

  ul.products li.product:is(.product_cat-abonnements, .product_cat-abonnement) .pn-subscription-price-option,
  ul.products li.product:is(.product_cat-abonnements, .product_cat-abonnement) .pn-sub-destination-choice,
  ul.products li.product:has(.pn-subscription-price) .pn-subscription-price-option,
  ul.products li.product:has(.pn-subscription-price) .pn-sub-destination-choice,
  ul.products li.product:has(.pn-sub-destination-choice) .pn-subscription-price-option,
  ul.products li.product:has(.pn-sub-destination-choice) .pn-sub-destination-choice {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 0.5rem 0.58rem !important;
    text-align: left !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  ul.products li.product:is(.product_cat-abonnements, .product_cat-abonnement) .pn-subscription-price-option > *,
  ul.products li.product:is(.product_cat-abonnements, .product_cat-abonnement) .pn-sub-destination-choice > *,
  ul.products li.product:has(.pn-subscription-price) .pn-subscription-price-option > *,
  ul.products li.product:has(.pn-subscription-price) .pn-sub-destination-choice > *,
  ul.products li.product:has(.pn-sub-destination-choice) .pn-subscription-price-option > *,
  ul.products li.product:has(.pn-sub-destination-choice) .pn-sub-destination-choice > * {
    position: static !important;
    transform: none !important;
  }

  ul.products li.product .pn-subscription-price-option .amount,
  ul.products li.product .pn-subscription-price-option bdi,
  ul.products li.product .pn-sub-destination-choice .amount,
  ul.products li.product .pn-sub-destination-choice bdi {
    position: static !important;
    display: inline !important;
    transform: none !important;
    line-height: inherit !important;
    white-space: nowrap !important;
  }

  ul.products li.product:is(.product_cat-abonnements, .product_cat-abonnement) .pn-subscription-price-label,
  ul.products li.product:is(.product_cat-abonnements, .product_cat-abonnement) .pn-sub-destination-label,
  ul.products li.product:has(.pn-subscription-price) .pn-subscription-price-label,
  ul.products li.product:has(.pn-subscription-price) .pn-sub-destination-label,
  ul.products li.product:has(.pn-sub-destination-choice) .pn-subscription-price-label,
  ul.products li.product:has(.pn-sub-destination-choice) .pn-sub-destination-label {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    font-size: 0.78rem !important;
    line-height: 1.12 !important;
    text-align: left !important;
    margin: 0 0 0.18rem !important;
  }

  ul.products li.product:is(.product_cat-abonnements, .product_cat-abonnement) .pn-subscription-price-amount,
  ul.products li.product:is(.product_cat-abonnements, .product_cat-abonnement) .pn-sub-destination-price,
  ul.products li.product:has(.pn-subscription-price) .pn-subscription-price-amount,
  ul.products li.product:has(.pn-subscription-price) .pn-sub-destination-price,
  ul.products li.product:has(.pn-sub-destination-choice) .pn-subscription-price-amount,
  ul.products li.product:has(.pn-sub-destination-choice) .pn-sub-destination-price {
    display: block !important;
    width: 100% !important;
    white-space: nowrap !important;
    font-size: 1rem !important;
    line-height: 1.08 !important;
    text-align: left !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
  }

  ul.products li.product:has(.pn-subscription-price) .button,
  ul.products li.product:has(.pn-sub-destination-choice) .button {
    position: static !important;
    display: flex !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0.65rem !important;
  }
}
