/*
 * AssetModel detail page: compatible-battery card extras (badge, spec list, compare checkbox) and
 * the "So sánh sản phẩm" bar/modal driven by acquy-compare.js. Only rendered when the page has >= 2
 * compatible products (Views/Storefront/ApplicationPage.cshtml).
 */

.acq-compat-card {
    display: flex;
    flex-direction: column;
}

/*
 * Deliberately in normal flow (not absolutely positioned over the card image) — many compatible
 * products in this dataset have no Thumbnail, and an overlay checkbox would sit on top of the badge/
 * title text in that case with nothing to visually separate them from.
 */
.acq-compat-card__select {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin: 10px 10px 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--acq-soft);
    font-size: 12px;
    font-weight: 600;
    color: var(--acq-ink);
    cursor: pointer;
}

.acq-badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--acq-line-soft);
    color: var(--acq-green-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.acq-compat-specs {
    display: grid;
    gap: 3px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--acq-muted);
}

.acq-compat-specs li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.acq-compat-specs li span {
    color: var(--acq-ink);
    font-weight: 600;
}

.acq-compare-hint {
    margin: -8px 0 16px;
    color: var(--acq-muted);
    font-size: 14px;
}

.acq-compare-bar {
    position: sticky;
    bottom: 16px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 12px 18px;
    border: 1px solid var(--acq-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--acq-shadow-card, 0 18px 40px rgba(15, 23, 42, .12));
}

.acq-empty-state {
    padding: 32px 24px;
    border: 1px dashed var(--acq-line);
    border-radius: 12px;
    text-align: center;
    color: var(--acq-muted);
}

.acq-empty-state p {
    margin-bottom: 16px;
    font-size: 15px;
}

.acq-compare-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acq-compare-modal[hidden],
.acq-compare-bar[hidden] {
    display: none;
}

.acq-compare-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .5);
}

.acq-compare-modal__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 92vw);
    max-height: 86vh;
    overflow: auto;
    padding: 28px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(15, 23, 42, .3);
}

.acq-compare-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--acq-soft);
    color: var(--acq-ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.acq-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.acq-compare-table th,
.acq-compare-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--acq-line);
    text-align: left;
}

.acq-compare-table thead th {
    color: var(--acq-ink);
    font-weight: 700;
}

.acq-compare-table tbody th {
    color: var(--acq-muted);
    font-weight: 600;
    white-space: nowrap;
}

.acq-model-code {
    margin: -6px 0 8px;
    color: var(--acq-muted);
    font-size: 14px;
}

.acq-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.acq-faq-list {
    display: grid;
    gap: 10px;
}

.acq-faq-item {
    padding: 14px 18px;
    border: 1px solid var(--acq-line);
    border-radius: 10px;
    background: #fff;
}

.acq-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--acq-ink);
}

.acq-faq-item p {
    margin: 10px 0 0;
    color: var(--acq-muted);
}

@media (max-width: 640px) {
    .acq-compare-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .acq-compare-modal__panel {
        padding: 20px;
    }
}
