/* ============================================================
     АНАЛИЗЫ — блок вывода (cart-card-small)
     ============================================================ */

  .analysis-page__cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .analysis-page__card.cart-card-small {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 17px;
    padding: 20px 24px;
    box-shadow: 0 .25rem 1.25rem 0 rgba(0,0,0,.05);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    position: relative;
  }
  .analysis-page__card.cart-card-small:hover {
    border-color: rgba(14,107,173,0.35);
    box-shadow: 0 .25rem 1.875rem rgba(0,0,0,.1);
    transform: translateY(-2px);
  }

  /* ============================================================
     TOP ROW: все 3 элемента (Анализ / Код услуги / Артикул)
     ОДИНАКОВЫЙ стиль и размер — единый token-чип
     ============================================================ */
  .cart-card-small__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  /* Единый базовый стиль для всех чипов top-row */
  .cart-card-small__name {
    margin: 0;
    display: inline-flex;
    align-items: center;
  }
  .cart-card-small__name > span > a,
  .cart-card-small__subtitle,
  .cart-card-small__article {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* Идентичный размер, шрифт, отступы */
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 20px;
    white-space: nowrap;
    text-decoration: none;
    transition: all .2s;
    font-family: 'Lato', system-ui, sans-serif;
    box-sizing: border-box;
  }

  /* Чип «Анализ» — акцентный (синий) */
  .cart-card-small__name > span > a {
    background: #e8f1f8;
    color: #094a78;
  }
  .cart-card-small__name > span > a:hover {
    background: #0e6bad;
    color: #fff;
  }

  /* Чип «Код услуги A26...» — вторичный (серый) */
  .cart-card-small__subtitle {
    margin: 0;
    background: #f5f5f5;
    color: #4a4a4a;
    border: 1px solid #eee;
  }

  /* Чип «Артикул 13.x.Ax.900» — вторичный, в правом углу */
  .cart-card-small__article {
    margin: 0;
    margin-left: auto;
    background: #f5f5f5;
    color: #4a4a4a;
    border: 1px solid #eee;
  }

  .cart-card-small__top-sep {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #d9d9d9;
    flex-shrink: 0;
  }

  /* ====== MAIN GRID ====== */
  .cart-card-small__main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 28px;
    align-items: center;
  }

  .cart-card-small__text-block { min-width: 0; }

  .cart-card-small__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    color: #141414;
    line-height: 1.35;
  }
  .cart-card-small__title a {
    color: #141414;
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size .25s ease, color .2s;
  }
  .cart-card-small__title:hover a {
    color: #0e6bad;
    background-size: 100% 1px;
  }

  /* Скрываем subtitle из text-block (перенесён в top) */
  .cart-card-small__text-block > .cart-card-small__subtitle { display: none; }

  /* ====== INFO: срок + стоимость ====== */
  .cart-card-small__info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
  }
  .cart-card-small__bottom-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  /* .cart-card-small__bottom-info-block > p:first-child { display: none; } */

  .cart-card-small__title-date {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 600;
    color: #141414 !important;
    padding: 6px 14px;
    background: #f4f8fb;
    border: 1px solid #e8f1f8;
    border-radius: 22px;
    white-space: nowrap;
    font-family: 'Lato', system-ui, sans-serif;
  }
  .cart-card-small__title-date .date-icon {
    width: 14px;
    height: 14px;
    color: #0e6bad;
    flex-shrink: 0;
  }
  .cart-card-small__title-date b {
    font-weight: 700;
    color: #094a78 !important;
  }

  .cart-card-small__bottom-info-block .woocommerce-Price-amount {
    display: inline-flex;
    align-items: baseline;
    font-size: 24px;
    font-weight: 700;
    color: #141414;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
  }
  .cart-card-small__bottom-info-block .woocommerce-Price-currencySymbol {
    color: #0e6bad;
    font-size: 18px;
    margin-left: 3px;
    font-weight: 600;
  }

  /* ====== ACTIONS ====== */
  .cart-card-small__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .cart-card-small__actions .button--details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    color: #0e6bad;
    border: 1px solid #0e6bad;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Lato', system-ui, sans-serif;
  }
  .cart-card-small__actions .button--details:hover {
    background: #0e6bad;
    color: #fff;
    transform: translateY(-1px);
  }
  .cart-card-small__actions .button--details:hover .arrow { transform: translateX(3px); }
  .button--details .arrow {
    transition: transform .2s;
    width: 11px;
    height: 11px;
  }

  .cart-card-small__actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
  }
  .cart-card-small__actions .button--red { background: #dd2a1b; color: #fff; }
  .cart-card-small__actions .button--red:hover {
    background: #c02115;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(221,42,27,0.3);
  }
  .cart-card-small__actions .button--icon-cart {
    width: 44px;
    height: 44px;
    border-radius: 6px !important;
    position: relative;
  }
  .cart-card-small__actions .button--icon-cart .cart-icon {
    width: 16px;
    height: 16px;
    color: #fff;
    transition: opacity .2s;
  }
  .cart-card-small__actions .button--icon-cart .check-icon {
    width: 16px;
    height: 16px;
    color: #fff;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .2s;
  }
  .cart-card-small__actions .button--icon-cart.is-added { background: #16a34a !important; }
  .cart-card-small__actions .button--icon-cart.is-added .cart-icon { opacity: 0; }
  .cart-card-small__actions .button--icon-cart.is-added .check-icon { opacity: 1; }

  .cart-card-small__actions .button--icon-trash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #888;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
  }
  .cart-card-small__actions .button--icon-trash:hover {
    background: #dd2a1b;
    color: #fff;
    border-color: #dd2a1b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(221,42,27,0.3);
  }
  .cart-card-small__actions .button--icon-trash .trash-icon {
    width: 16px;
    height: 16px;
  }

  /* =====================================================
     RESPONSIVE
     ===================================================== */
  @media (max-width: 980px) {
    .cart-card-small__main {
      grid-template-columns: 1fr;
      gap: 14px;
    }
    .cart-card-small__info {
      gap: 14px;
      padding-top: 14px;
      border-top: 1px solid #eee;
    }
    .cart-card-small__actions { width: 100%; }
    .cart-card-small__actions .button--details { flex: 1; justify-content: center; }
  }

  /* ===== MOBILE (≤ 640px) ===== */
  @media (max-width: 640px) {
    .analysis-page__cards-wrapper { gap: 8px; }
    .analysis-page__card.cart-card-small {
      padding: 10px 12px;
      border-radius: 12px;
    }
    .analysis-page__card.cart-card-small:hover { transform: none; }

    /* TOP ROW — все 3 чипа ОДИНАКОВОГО минимального размера (10px) */
    .cart-card-small__top {
      margin-bottom: 7px;
      gap: 5px;
    }
    .cart-card-small__name > span > a,
    .cart-card-small__subtitle,
    .cart-card-small__article {
      /* Единый минимальный размер — как у бейджа "Анализ" */
      padding: 2px 8px;
      font-size: 10px;
      letter-spacing: 0.05em;
      border-radius: 10px;
      line-height: 1.4;
    }
    .cart-card-small__top-sep { width: 2px; height: 2px; }

    .cart-card-small__title {
      font-size: 14px;
      line-height: 1.3;
      margin-bottom: 3px;
    }

    .cart-card-small__info {
      padding-top: 10px;
      gap: 8px;
      width: 100%;
    }
    .cart-card-small__title-date {
      font-size: 12.5px;
      padding: 4px 9px;
      gap: 4px;
    }
    .cart-card-small__title-date .date-icon { width: 11px; height: 11px; }
    .cart-card-small__bottom-info-block .woocommerce-Price-amount { font-size: 18px; }
    .cart-card-small__bottom-info-block .woocommerce-Price-currencySymbol {
      font-size: 14px;
      margin-left: 2px;
    }

    .cart-card-small__actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      margin-top: 4px;
    }
    .cart-card-small__actions .button--details {
      padding: 9px 8px;
      font-size: 12.5px;
      justify-content: center;
      gap: 4px;
    }
    .button--icon-cart {
      width: 100%;
      height: 38px;
    }
    .cart-card-small__actions .button--icon-cart .cart-icon,
    .cart-card-small__actions .button--icon-cart .check-icon { width: 14px; height: 14px; }
  }

  /* ===== Extra small (≤ 380px) ===== */
  @media (max-width: 380px) {
    .cart-card-small__top { flex-wrap: wrap; }
    .cart-card-small__article { margin-left: 0; }
    .cart-card-small__top-sep { display: none; }
    .cart-card-small__title { font-size: 13.5px; }
    .cart-card-small__info {
      justify-content: space-between;
      padding-top: 8px;
    }
    .cart-card-small__actions .button--details { padding: 8px 6px; font-size: 12px; }
    .button--details .arrow { width: 10px; height: 10px; }
    .button--icon-cart { height: 36px; }
    .cart-card-small__bottom-info-block .woocommerce-Price-amount { font-size: 16px; }
    .cart-card-small__bottom-info-block .woocommerce-Price-currencySymbol { font-size: 13px; }
  }