.csp {
    position: fixed;
    inset: 0;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .2s;
}

.csp.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.csp__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.csp__modal {
    position: relative;
    width: min(980px, calc(100% - 24px));
    margin: 18px auto;
    background: #fff;
    padding: 18px 18px 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}

.csp__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #111 !important;
}

.csp__success {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.csp__check {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #637c75;
    font-size: 14px;
}

.csp__added {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 14px;
}

.csp__thumb img {
    width: 84px;
    height: 110px;
    object-fit: cover;
    display: block;
}

.csp__info {
    flex: 1;
    min-width: 0;
}

.csp__name {
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: 6px;
}

.csp__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #444;
    font-size: 14px;
}

.csp__price {
    font-weight: 700;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.csp__price del {
    opacity: .55;
    font-weight: 500;
    margin-left: 8px;
}

.csp__divider {
    height: 1px;
    background: #eee;
    margin: 16px 0;
}

.csp__crossHeader {
    position: relative;
    padding: 10px 0 14px;
}

.csp__title {
    text-align: center;
    font-size: 34px;
    margin: 0;
    font-weight: 700;
}

.csp__arrows {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.csp__arrow {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    color: #111 !important;
}

.csp__arrow:disabled {
    opacity: .4;
    cursor: default;
}

.csp__rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 10px;
    -webkit-overflow-scrolling: touch;
}

.csp__rail::-webkit-scrollbar {
    height: 8px;
}

.csp__rail::-webkit-scrollbar-thumb {
    background: #ddd;
}

.csp__card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
}

.csp__cardImg img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.csp__cardBody {
    padding-top: 10px;
}

.csp__cardName {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.csp__cardCat {
    color: #555;
    font-size: 13px;
    margin-top: 2px;
}

.csp__cardPrice {
    font-weight: 700;
    margin-top: 6px;
}

.csp__cardPrice del {
    opacity: .55;
    font-weight: 500;
    margin-left: 8px;
}

.csp__actions {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.csp__btn {
    flex: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #111;
}

.csp__btn--ghost {
    background: #fff;
    color: #111;
    cursor: pointer;
}

.csp__btn--primary {
    background: #111;
    color: #fff;
    border-color: #111;

    &:hover {
        background: #637c75;
        border-color: #637c75;
        color: white;
    }
}

body.cross-sell-popup-open .lumei-topcart .cart-popup {
    display: none;
}

@media (max-width: 768px) {
    .csp__title {
        text-align: left;
        font-size: 25px;
    }
}
