.pwp-crossselling-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.52);
}

.pwp-crossselling-modal {
    width: min(860px, 100%);
}

.pwp-crossselling-dialog {
    position: relative;
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 22px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.pwp-crossselling-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.pwp-crossselling-header {
    padding-right: 42px;
    margin-bottom: 16px;
}

.pwp-crossselling-kicker {
    margin: 0 0 4px;
    color: #777;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.pwp-crossselling-header h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
}

.pwp-crossselling-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pwp-crossselling-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 305px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.pwp-crossselling-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 135px;
    margin-bottom: 8px;
    text-decoration: none;
}

.pwp-crossselling-card-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 135px;
    object-fit: contain;
}

.pwp-crossselling-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.pwp-crossselling-card-title {
    min-height: 42px;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
}

.pwp-crossselling-card-title a {
    color: #222;
    text-decoration: none;
}

.pwp-crossselling-card-title a:hover {
    color: #005693;
    text-decoration: underline;
}

.pwp-crossselling-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.pwp-crossselling-card-prices {
    min-width: 0;
    line-height: 1.15;
}

.pwp-crossselling-card-prices .pws-price-primary {
    font-size: 17px;
}

.pwp-crossselling-card-prices .pws-price-secondary {
    margin-top: 2px;
    font-size: 12px;
}

.pwp-crossselling-card-brand {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 48px;
    min-width: 48px;
    max-height: 28px;
    overflow: hidden;
}

.pwp-crossselling-card-brand img {
    display: block;
    max-width: 48px;
    max-height: 28px;
    object-fit: contain;
}

.pwp-crossselling-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 18px;
}

.pwp-crossselling-card-action {
    margin-top: 10px;
}

.pwp-crossselling-card-action .pwp-crossselling-quote-action {
    display: flex;
    justify-content: center;
}

.pwp-crossselling-card-action .pwp-crossselling-quote-action .product-quantity,
.pwp-crossselling-card-action .pwp-crossselling-quote-action .add {
    width: auto;
}

.pwp-crossselling-card-action .btn {
    white-space: nowrap;
}

body.pwp-crossselling-open #chooseQuotationListing {
    z-index: 1125 !important;
}

body.pwp-crossselling-open .modal-backdrop {
    z-index: 1115 !important;
}

.pwp-crossselling-cart-pulse {
    animation: pwp-crossselling-cart-pulse 0.8s ease-in-out 2;
}

@keyframes pwp-crossselling-cart-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: none;
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 8px rgba(0, 86, 147, 0.45));
    }
}

@media (max-width: 991px) {
    .pwp-crossselling-modal {
        width: min(680px, 100%);
    }

    .pwp-crossselling-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pwp-crossselling-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .pwp-crossselling-modal {
        width: 100%;
    }

    .pwp-crossselling-dialog {
        max-height: 88vh;
        padding: 18px;
        border-radius: 8px 8px 0 0;
    }

    .pwp-crossselling-header h2 {
        font-size: 20px;
    }

    .pwp-crossselling-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pwp-crossselling-card {
        min-height: 285px;
        padding: 8px;
    }

    .pwp-crossselling-card-visual {
        height: 115px;
    }

    .pwp-crossselling-card-img {
        max-height: 115px;
    }

    .pwp-crossselling-actions .btn {
        flex: 1 1 100%;
    }
}
