.upselling-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* ==========================================================
   MODAL ABIERTO
   ========================================================== */

.upselling-modal.is-active {
    visibility: visible;
    opacity: 1;
}


/* ==========================================================
   OVERLAY
   ========================================================== */

.upselling-modal__overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    cursor: pointer;
}


/* ==========================================================
   CONTENIDO
   ========================================================== */

.upselling-modal__content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 520px;

    background: #ffffff;

    border-radius: 18px;

    padding: 32px;

    box-sizing: border-box;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.20);

    transform: translateY(20px) scale(0.97);

    transition:
        transform 0.3s ease;
}


.upselling-modal.is-active .upselling-modal__content {
    transform: translateY(0) scale(1);
}


/* ==========================================================
   BOTÓN CERRAR
   ========================================================== */

.upselling-modal__close {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #f3f3f3;

    color: #333333;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.upselling-modal__close:hover {
    background: #e8e8e8;
    transform: rotate(90deg);
}


/* ==========================================================
   HEADER
   ========================================================== */

.upselling-modal__header {
    text-align: center;

    padding: 0 30px 20px;
}


.upselling-modal__title {
    margin: 0;

    color: #1a1a1a;

    font-size: 25px;
    font-weight: 700;

    line-height: 1.25;
}


/* ==========================================================
   BODY
   Espacio donde después aparecerá el producto
   ========================================================== */

.upselling-modal__body {
    width: 100%;
}


/* ==========================================================
   PRODUCTO
   ========================================================== */

.upselling-product {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 15px;

    background: #fafafa;

    border-radius: 14px;
}


.upselling-product__image {
    flex: 0 0 130px;
    width: 130px;
}


.upselling-product__image img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 10px;
}


.upselling-product__info {
    flex: 1;
}


.upselling-product__title {
    margin: 0 0 10px;

    color: #1a1a1a;

    font-size: 17px;
    font-weight: 600;

    line-height: 1.3;
}


.upselling-product__price {
    color: #1a1a1a;

    font-size: 22px;
    font-weight: 700;
}


/* ==========================================================
   ACCIONES
   ========================================================== */

.upselling-modal__actions {
    display: flex;

    gap: 12px;

    margin-top: 24px;
}


.upselling-modal__actions button {
    flex: 1;

    min-height: 48px;

    border-radius: 10px;

    padding: 10px 18px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}


/* No gracias */

.upselling-modal__no {
    border: 1px solid #dddddd;

    background: #ffffff;

    color: #555555;
}


.upselling-modal__no:hover {
    background: #f5f5f5;
}


/* Agregar */

.upselling-modal__add {
    border: none;

    background: #1a1a1a;

    color: #ffffff;
}


.upselling-modal__add:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .upselling-modal {
        padding: 15px;
    }


    .upselling-modal__content {
        max-width: 100%;

        padding: 25px 20px;

        border-radius: 16px;
    }


    .upselling-modal__title {
        font-size: 21px;
    }


    .upselling-modal__header {
        padding-bottom: 15px;
    }


    .upselling-product {
        gap: 14px;

        padding: 12px;
    }


    .upselling-product__image {
        flex: 0 0 100px;
        width: 100px;
    }


    .upselling-product__title {
        font-size: 15px;
    }


    .upselling-product__price {
        font-size: 19px;
    }


    .upselling-modal__actions {
        flex-direction: column;
    }


    .upselling-modal__actions button {
        width: 100%;
    }

}