/* Попап «Доступные опции» (6.3б, PDL-60): оснащение выбранной комплектации по категориям.
   Перенос CSS блока U4 (landing/docs/tilda-blocks/Ver_4_dev/u4-accordion.html:3–195); значения — под border-box. */
#uc-feat-popup, #uc-feat-popup *, #uc-feat-popup *::before, #uc-feat-popup *::after {
    box-sizing: border-box;
}

/* ================================================================
   ПОП-АП: оверлей + лист
================================================================ */
#uc-feat-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,20,20,0.45);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}
#uc-feat-popup.--visible { display: flex; }

#uc-feat-popup .popup-sheet {
    background: #fff;
    border-radius: 14px;
    width: 640px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.28);
    box-sizing: border-box;
}

/* Grabber-полоска — только мобайл */
#uc-feat-popup .popup-grabber { display: none; justify-content: center; padding: 10px 0 4px; }
#uc-feat-popup .popup-grabber div { width: 36px; height: 4px; border-radius: 2px; background: #e0e0e0; }

#uc-feat-popup .popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}
#uc-feat-popup .popup-title { font-size: 18px; font-weight: 600; color: #111; }
#uc-feat-popup .popup-sub   { font-size: 12px; color: #888; margin-top: 4px; }
#uc-feat-popup .popup-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}
#uc-feat-popup .popup-body { overflow-y: auto; padding: 4px 24px 20px; }

/* ================================================================
   КАТЕГОРИИ (аккордеон)
================================================================ */
#uc-feat-popup .cat { border-bottom: 0.5px solid #f0f0f0; }
#uc-feat-popup .cat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    cursor: pointer;
    user-select: none;
}
#uc-feat-popup .cat-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: #f2f2f2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#uc-feat-popup .cat-icon img { width: 22px; height: 22px; object-fit: contain; }
#uc-feat-popup .cat-name    { font-size: 16px; font-weight: 500; color: #111; flex: 1; }
#uc-feat-popup .cat-count   { font-size: 12px; color: #888; white-space: nowrap; }
#uc-feat-popup .cat-chevron { font-size: 16px; color: #888; transition: transform 0.2s ease; flex-shrink: 0; }
#uc-feat-popup .cat.--open .cat-chevron { transform: rotate(180deg); }

/* R7: мгновенное раскрытие max-height: 0 → none, без transition */
#uc-feat-popup .cat-body { overflow: hidden; max-height: 0; }
#uc-feat-popup .cat.--open .cat-body { max-height: none; }

#uc-feat-popup .cat-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 0 14px 50px;
}
#uc-feat-popup .item-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 8px 7px 0;
    border-bottom: 0.5px solid #f5f5f5;
    font-size: 14px;
}
#uc-feat-popup .item-row.--has { color: #111; }
#uc-feat-popup .item-row.--no  { color: #aaa; }
#uc-feat-popup .item-icon { font-size: 14px; margin-top: 1px; flex-shrink: 0; font-weight: 700; }
#uc-feat-popup .item-row.--has .item-icon { color: #3B6D11; }
#uc-feat-popup .item-row.--no  .item-icon { color: #ccc; }

/* ---- Error / empty state ---- */
#uc-feat-popup .uc-feat-error {
    font-size: 15px;
    color: #aaa;
    padding: 24px 0;
    text-align: center;
}

/* ================================================================
   МОБАЙЛ ≤640px — bottom sheet
================================================================ */
@media (max-width: 640px) {
    #uc-feat-popup { align-items: flex-end; }
    #uc-feat-popup .popup-sheet {
        position: absolute;
        left: 0; right: 0; bottom: 0;
        width: auto;
        max-width: none;
        max-height: 82%;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -12px 40px rgba(0,0,0,0.22);
    }
    #uc-feat-popup .popup-grabber { display: flex; }
    #uc-feat-popup .popup-head    { padding: 8px 18px 14px; border-bottom: none; }
    #uc-feat-popup .popup-title   { font-size: 16px; }
    #uc-feat-popup .popup-sub     { font-size: 11px; }
    #uc-feat-popup .popup-close   { width: 28px; height: 28px; font-size: 15px; }
    #uc-feat-popup .popup-body    { padding: 4px 18px 24px; }

    #uc-feat-popup .cat-head  { gap: 10px; padding: 12px 0; }
    #uc-feat-popup .cat-icon  { width: 34px; height: 34px; border-radius: 9px; }
    #uc-feat-popup .cat-name  { font-size: 14px; }
    #uc-feat-popup .cat-count { font-size: 11px; }
    #uc-feat-popup .cat-items { grid-template-columns: 1fr; padding: 0 0 12px 44px; }
}

/* ================================================================
   Shimmer-скелетон внутри тела поп-апа
================================================================ */
@keyframes uf-shimmer {
    0%   { transform: translateX(-200%); }
    100% { transform: translateX(200%); }
}
.uf-skel {
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.uf-skel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    animation: uf-shimmer 1.5s infinite;
}
.uf-skel-cat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 0.5px solid #f0f0f0;
}
.uf-skel-icon    { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }
.uf-skel-name    { height: 18px; flex: 1; border-radius: 4px; }
.uf-skel-counter { width: 36px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.uf-skel-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 8px 0 16px 50px;
}
.uf-skel-opt { height: 14px; border-radius: 4px; margin-bottom: 10px; }
