.pb-upsale-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.pb-upsale-modal-content {
    background: #fff;
    width: 80%;
    max-width: 800px;
    max-height: 70%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pb-upsale-modal-content-inner {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.pb-upsale-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.pb-upsale-modal-close i {
    z-index: 1;
    border-radius: 8px;
    padding: 0.25rem!important;
    background: white;
}

.pb-upsale-modal-open {
    padding: 10px 20px;
    font-size: 16px;
}

.pb-upsale-modal-input-container {} 

.pb-upsale-modal-input {
    padding: 10px;
    width: 60%;
    font-size: 16px;
}

.pb-upsale-modal-button {
    font-size: 0.9rem;
    width: 100%;
    padding: 0 20px;
    border-radius: 8px;
    color: white;
    background: var(--fs-color-primary);
}

.pb-upsale-modal-user-info {
    display: flex;
    justify-content: space-between;
}

.pb-upsale-modal-user-picture img {
    width: 100%;
    height: 150px;
    border-radius: 50%;
}

.pb-upsale-modal-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.pb-upsale-modal-media-item:nth-child(-n+4){
    margin-top: 1.25rem;
}

.pb-upsale-modal-media-item {
    position: relative;
}

.pb-upsale-modal-media-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.pb-upsale-modal-load-more {
    padding: 0 20px;
    font-size: 16px;
    margin-top: 20px;
    border-radius: 8px;
    background-color: var(--fs-color-primary);
    color: #fff;
    width: 100%;
}

.pb-upsale-modal-media-info {
    position: absolute;
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background-color: rgba(222,72,90,.5);
    transition: .3s;
}

.pb-upsale-modal-media-item.selected .pb-upsale-modal-media-info {
    background-color: rgba(222,72,90,.8);
    opacity: 1!important;
    cursor: pointer;
}

.pb-upsale-modal-media-info:hover {
    opacity: 1;
    cursor: pointer;
}

.pb-upsale-modal-user-info button {
    background: #fff;
    border: solid 1px #ddd;
    height: 45px;
}

.pb-upsale-modal-reset-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pb-upsale-modal-input-label {
    padding-bottom: 0.5rem;
}

#pb-upsale-modal-add-to-cart-button {
    padding: 0.25rem 0;
    margin: 0;
    width: 100%;
    background: linear-gradient(-90deg, rgba(89, 166, 255, 1) 0%, rgba(0, 112, 240, 1) 100%);
    color: white;
    font-weight: 700 !important;
}

.pb-upsale-modal-content.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:rgb(0 0 0 / 55%);
    z-index: 2;
}

.pb-upsale-modal-content.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px; 
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

@media screen and (max-width: 480px) {
    .pb-upsale-modal-user-info {
        row-gap: 0.5rem;
        flex-direction: column-reverse;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .pb-upsale-modal-user-picture img {
        width: auto
    }

    .pb-upsale-modal-content {
        width: 95%;
    }
}