/* Checkout mobile refinement - scoped to checkout page */
.checkout-products-mobile { display: none; }

@media (max-width: 767.98px) {
  .checkout-page .container-xxl { padding-left: 14px; padding-right: 14px; }
  .checkout-page .row.g-4 { --bs-gutter-y: 1rem; }

  .checkout-page .checkout-card,
  .checkout-page .checkout-sidebox {
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(28, 38, 24, .08);
  }

  .checkout-page .checkout-card { padding: 18px 14px; }
  .checkout-page .section-title { margin-bottom: 14px; }
  .checkout-page .section-title .title {
    font-size: 1.28rem;
    line-height: 1.25;
    margin-bottom: 0;
  }

  .checkout-products-desktop { display: none !important; }
  .checkout-products-mobile { display: grid; gap: 10px; }

  .checkout-mobile-product {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(33, 56, 32, .12);
    border-radius: 15px;
    background: #fff;
  }

  .checkout-mobile-product__image {
    width: 82px;
    height: 92px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f4ef;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .checkout-mobile-product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
  }
  .checkout-mobile-product__image--empty {
    color: #8d9589;
    font-size: 1.4rem;
  }
  .checkout-mobile-product__body { min-width: 0; }
  .checkout-mobile-product__name {
    font-size: .98rem;
    line-height: 1.3;
    margin: 1px 0 8px;
    color: #203020;
    font-weight: 700;
  }
  .checkout-mobile-product__meta,
  .checkout-mobile-product__total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
  }
  .checkout-mobile-product__meta {
    color: #6f766d;
    font-size: .82rem;
    padding-top: 3px;
  }
  .checkout-mobile-product__total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(33, 56, 32, .09);
    font-size: .9rem;
  }
  .checkout-mobile-product__total strong { font-size: 1rem; color: #1f3820; }

  .checkout-page .order-summary {
    border-radius: 15px;
    padding: 14px;
  }
  .checkout-page .order-col {
    gap: 12px;
    padding: 8px 0;
    font-size: .92rem;
  }
  .checkout-page .order-total { font-size: 1.1rem; }

  .checkout-page .titolo-separatore { margin-top: 24px !important; }
  .checkout-page .titolo-separatore h4 {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }

  .checkout-page label:not(.checkout-choice):not(.saved-address) {
    font-size: .83rem;
    margin-bottom: 5px;
    font-weight: 600;
  }
  .checkout-page .form-control,
  .checkout-page .form-select,
  .checkout-page .select2-container .select2-selection--single {
    min-height: 48px;
    border-radius: 12px;
    font-size: 16px;
  }
  .checkout-page .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 12px;
  }
  .checkout-page .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }

  .checkout-page .checkout-choice {
    min-height: 66px;
    padding: 13px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 11px;
  }
  .checkout-page .checkout-choice input { flex: 0 0 auto; }
  .checkout-page .checkout-choice span { min-width: 0; }
  .checkout-page .checkout-choice strong { font-size: .94rem; }
  .checkout-page .checkout-choice small { display: block; margin-top: 2px; line-height: 1.3; }

  .checkout-page .checkout-address {
    padding: 15px 13px;
    border-radius: 15px;
  }
  .checkout-page .checkout-address h5 { font-size: 1rem; }

  .checkout-page .form-check {
    padding: 12px 12px 12px 38px;
    margin-bottom: 10px !important;
    border: 1px solid rgba(33, 56, 32, .1);
    border-radius: 12px;
    background: #fff;
  }
  .checkout-page .form-check-input { margin-left: -25px; width: 1.15em; height: 1.15em; }
  .checkout-page .form-check-label { line-height: 1.45; }

  .checkout-page #commenti { min-height: 100px !important; }
  .checkout-submit-wrap { position: sticky; bottom: 0; z-index: 5; margin: 18px -14px -18px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid rgba(33,56,32,.1); backdrop-filter: blur(8px); }
  .checkout-page #ordine { width: 100%; min-height: 52px; border-radius: 13px; font-weight: 700; letter-spacing: .02em; }

  .checkout-page .checkout-sidebox {
    padding: 16px;
    margin-bottom: 0;
  }
  .checkout-page .checkout-sidebox h2 { font-size: 1.15rem; margin-bottom: 6px; }
  .checkout-page .checkout-sidebox p { font-size: .88rem; line-height: 1.45; margin-bottom: 10px; }
  .checkout-page .checkout-login-box { margin-top: 8px; }
  .checkout-page .checkout-sidebox .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  .checkout-page .alert { border-radius: 13px; line-height: 1.45; }
}

@media (max-width: 420px) {
  .checkout-mobile-product { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .checkout-mobile-product__image { width: 72px; height: 82px; }
  .checkout-mobile-product__name { font-size: .93rem; }
}
