@media (pointer: coarse) {
  html[lang^="ro"] :is(.sd-home-best, .sd-product__section) .sd-pcard__name {
    min-block-size: 30px;
  }

  html[lang^="ro"] :is(.sd-shop-pkg__name > a, .sd-cart-line__name > a, .sd-cart-info > a,
    .sd-cart-steps__i.is-done > a, .woocommerce-form-coupon-toggle a.showcoupon, .woocommerce-form-login-toggle a.showlogin) {
    display: inline-flex;
    align-items: center;
    min-block-size: 30px;
    max-inline-size: 100%;
  }

  html[lang^="ro"] .woocommerce form .show-password-input {
    display: grid;
    place-items: center;
    min-inline-size: 30px;
    min-block-size: 30px;
    inset-inline-end: 6px;
    padding: 0;
  }

  html[lang^="ro"] .woocommerce form .password-input > input {
    padding-inline-end: 42px;
  }

  html[lang^="ro"] :is(label.woocommerce-form__label-for-checkbox,
    .sd-cart-step--pay .form-check > label:not([for="terms"])) {
    display: inline-block;
    min-block-size: 30px;
    min-inline-size: 30px;
  }

  html[lang^="ro"] .sd-cart-step--pay label[for="terms"] {
    display: inline;
  }
}

/* Keep the dots' painted size. At 360 px the larger targets still clear the next and pause buttons. */
@media (pointer: coarse) and (min-width: 360px) {
  html[lang^="ro"] .sd-home-carousel .splide__pagination {
    width: max-content;
    flex-wrap: nowrap;
  }

  html[lang^="ro"] .sd-home-carousel .splide__pagination__page {
    width: 30px;
    height: 30px;
  }

  html[lang^="ro"] .sd-home-carousel .splide__pagination__page::before { inset: 9px; }
  html[lang^="ro"] .sd-home-carousel .splide__pagination__page.is-active::before { inset: 8px; }
}

@media (pointer: coarse) and (min-width: 360px) and (max-width: 640px) {
  html[lang^="ro"] .sd-home-carousel .splide__pagination { bottom: 5px; }
}

/* Keep the fixed back-to-top control clear of the guide text. */
@media (max-width: 767px) {
  html[lang^="ro"] .page-id-14620 .sd-patients {
    padding-inline-end: 36px;
  }
}

/* The guide columns fit at 944px: two 32px gutters, 560px + 280px columns, 40px gap.
   Until then, clear the fixed 40px button at 5vw inset without changing the column widths. */
@media (min-width: 768px) and (max-width: 959.98px) {
  html[lang^="ro"] .page-id-14620 .sd-patients-content {
    padding-inline-end: calc(5vw + 12px);
  }
}
