body.citrom-upsell-open {
    overflow: hidden;
}

#citrom-upsell-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#citrom-upsell-popup {
    position: relative;
    background: #ffffff;
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

#citrom-upsell-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #444;
}

.citrom-upsell-header {
    text-align: center;
    margin-bottom: 20px;
}

.citrom-upsell-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #269fb7;
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.citrom-upsell-header h2 {
    margin: 0;
    font-size: 26px;
    color: #222;
}

.citrom-upsell-product {
    display: flex;
    gap: 18px;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
}

.citrom-upsell-image img {
    width: 95px;
    height: 95px;
    object-fit: contain;
}

.citrom-upsell-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #222;
}

.citrom-upsell-price {
    font-size: 18px;
    font-weight: 700;
    color: #269fb7;
}

.citrom-upsell-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
}

.citrom-upsell-continue,
.citrom-upsell-cart {
    flex: 1;
    text-align: center;
    padding: 13px 18px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.citrom-upsell-continue {
    background: #f4f4f4;
    color: #222;
    border: 1px solid #ddd;
}

.citrom-upsell-cart {
    background: #269fb7;
    color: #ffffff;
    border: 1px solid #269fb7;
}

.citrom-upsell-cart:hover {
    background: #1f879c;
    color: #ffffff;
}

.citrom-upsell-related h3 {
    margin: 0 0 14px;
    font-size: 21px;
    color: #222;
}

.citrom-upsell-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.citrom-upsell-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #555;
    font-weight: 600;
}

.citrom-upsell-item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.citrom-upsell-item-image {
    display: block;
    text-align: center;
}

.citrom-upsell-item-image img {
    width: 100%;
    height: 135px;
    object-fit: contain;
    margin-bottom: 6px;
}

.citrom-upsell-item-title {
    min-height: 42px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

.citrom-upsell-item-title a {
    color: #222;
    text-decoration: none;
}

.citrom-upsell-item-title a:hover {
    color: #269fb7;
}

.citrom-upsell-item-price {
    color: #269fb7;
    font-weight: 700;
    font-size: 15px;
    min-height: 24px;
}

.citrom-upsell-add {
    width: 100%;
    border: none;
    background: #269fb7;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    margin-top: auto;
}

.citrom-upsell-add:hover {
    background: #1f879c;
}

.citrom-upsell-add:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    #citrom-upsell-popup {
        padding: 22px 16px;
    }

    .citrom-upsell-product {
        flex-direction: column;
        text-align: center;
    }

    .citrom-upsell-buttons {
        flex-direction: column;
    }

    .citrom-upsell-related-grid {
        grid-template-columns: 1fr;
    }

    .citrom-upsell-header h2 {
        font-size: 22px;
    }

    .citrom-upsell-item-title {
        min-height: auto;
    }

    .citrom-upsell-item-image img {
        height: 120px;
    }
}