/*
 * Qnap_Cto frontend styles — bundle-like display
 */

/* Main row SKU shown directly under the main product name */
.qnap-cto-cart-row .qnap-cto-main-sku {
    margin-top: 2px;
    font-size: 1.2rem;
    color: #999;
    letter-spacing: 0;
}

/* Children list inside the main item's name cell — clean, no boxes */
.qnap-cto-children {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.qnap-cto-child {
    margin: 0 0 10px;
    padding: 0;
}

.qnap-cto-child:last-child {
    margin-bottom: 0;
}

.qnap-cto-child__line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 1.35rem;
    color: #333;
}

.qnap-cto-child__name {
    font-weight: 500;
}

.qnap-cto-child__qty {
    flex: 0 0 auto;
    color: #555;
}

.qnap-cto-child__sku {
    margin-top: 2px;
    font-size: 1.2rem;
    color: #999;
}

/* "Group total" line below standard subtotal */
.qnap-cto-group-total {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #d0e2ef;
    font-size: 1.2rem;
    color: #2178b3;
}

.qnap-cto-group-total__label {
    color: #555;
}

.qnap-cto-group-total__value {
    font-weight: 700;
}

/* Mini-cart and checkout summary group blocks */
.qnap-cto-mini-group,
.qnap-cto-summary-group {
    background: #f6f9fc;
    border-left: 3px solid #2178b3;
    padding: 8px 12px;
    margin-bottom: 12px;
    list-style: none;
}

.qnap-cto-mini-group__label,
.qnap-cto-summary-group__label {
    display: block;
    font-weight: 700;
    color: #2178b3;
    margin-bottom: 6px;
}

.qnap-cto-mini-group__items,
.qnap-cto-summary-group__items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.qnap-cto-mini-group__items .product-item,
.qnap-cto-summary-group__items .product-item {
    padding: 4px 0;
    border-top: 1px dashed #d8e3ec;
}

.qnap-cto-mini-group__items .product-item:first-child,
.qnap-cto-summary-group__items .product-item:first-child {
    border-top: 0;
}

/* Layout-by-children helpers used by mini-cart mixin */
.qnap-cto-mini-group__children {
    margin-top: 6px;
    padding-left: 16px;
    border-left: 2px solid #d8e3ec;
    list-style: none;
    font-size: 0.92em;
    color: #555;
}

/* Sidebar (checkout) per-main-item decoration */
.qnap-cto-summary-group__label {
    margin: 12px 0 4px;
    padding: 6px 10px;
    background: #eef5fb;
    border-left: 3px solid #2178b3;
    font-weight: 700;
    color: #2178b3;
}

.qnap-cto-summary-children {
    margin: 4px 0 0;
    padding: 4px 0 4px 28px;
    list-style: none;
    font-size: 0.92em;
    color: #555;
    background: #fafbfc;
    border-left: 3px solid #d0e2ef;
}

.qnap-cto-summary-child {
    padding: 4px 12px 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px dashed #e3eaf1;
}

.qnap-cto-summary-child:first-child {
    border-top: 0;
}

.qnap-cto-summary-child__name {
    flex: 1 1 auto;
    word-break: break-word;
}

.qnap-cto-summary-child__meta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
}

.qnap-cto-summary-child__meta .qty {
    color: #888;
}

.qnap-cto-summary-child__meta .price {
    font-weight: 600;
    color: #333;
}

.qnap-cto-summary-group__total {
    margin: 4px 0 14px;
    padding: 8px 12px;
    border-top: 1px dashed #d0e2ef;
    border-left: 3px solid #2178b3;
    background: #f6f9fc;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.15rem;
}

.qnap-cto-summary-group__total .qnap-cto-group-total__label {
    color: #555;
}

.qnap-cto-summary-group__total .qnap-cto-group-total__value {
    font-weight: 700;
    color: #2178b3;
}

/* Mini-cart per-main-item decoration */
.qnap-cto-mini-group__label {
    margin: 12px 0 4px;
    padding: 6px 10px;
    background: #eef5fb;
    border-left: 3px solid #2178b3;
    font-weight: 700;
    color: #2178b3;
}

.qnap-cto-mini-children {
    margin: 4px 0 0;
    padding: 4px 0 4px 28px;
    list-style: none;
    font-size: 0.92em;
    color: #555;
    background: #fafbfc;
    border-left: 3px solid #d0e2ef;
}

.qnap-cto-mini-child {
    padding: 4px 12px 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px dashed #e3eaf1;
}

.qnap-cto-mini-child:first-child {
    border-top: 0;
}

.qnap-cto-mini-child__name {
    flex: 1 1 auto;
    word-break: break-word;
}

.qnap-cto-mini-child__meta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
}

.qnap-cto-mini-child__meta .qty {
    color: #888;
}

.qnap-cto-mini-child__meta .price {
    font-weight: 600;
    color: #333;
}

.qnap-cto-mini-group__total {
    margin: 4px 0 14px;
    padding: 8px 12px;
    border-top: 1px dashed #d0e2ef;
    border-left: 3px solid #2178b3;
    background: #f6f9fc;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.15rem;
}

.qnap-cto-mini-group__total .qnap-cto-group-total__label {
    color: #555;
}

.qnap-cto-mini-group__total .qnap-cto-group-total__value {
    font-weight: 700;
    color: #2178b3;
}
