
.sync-addon-modal-wrapper .modal-inner-wrap {
    border-radius: 20px;
    padding: 20px 15px;
}

.sync-addon-modal-wrapper .addon-popup-content {
}

.sync-addon-modal-wrapper .modal-popup._inner-scroll .modal-content {
    overflow: hidden !important;
}

.sync-addon-modal-wrapper .addon-popup-title, .sync-addon-modal-wrapper .addon-popup-subtitle  {
    text-align: center; 
    margin-top: 0;
}

.sync-addon-modal-wrapper .modal-title {
    text-align: center; 
    border: 0;
    padding-bottom: 0;
}

.sync-addon-modal-wrapper .modal-footer {
    padding: 0;
    border: 0 !important;
}

.sync-addon-modal-wrapper .addon-popup-title {
}

.sync-addon-modal-wrapper .addon-popup-subtitle {
}

.sync-addon-modal-wrapper .addon-products-list {
    clear: both;
    display: flex;
    flex-wrap: nowrap; 
    flex-direction: row;
    justify-content: left;
    align-items: stretch;
    align-content: flex-start;
    column-gap: 4rem;
    overflow-x: auto;
    overflow-y: hidden;
}

.sync-addon-modal-wrapper .addon-product-item {
    padding: 10px 0; 
    align-items: center;
    /*max-width: 200px;*/
    float: left; 
    flex-grow: 1;
    flex-shrink: 0;
    /* min-width: 300px; */
    min-width: 30%;
    text-align: center;
}

.sync-addon-modal-wrapper .addon-product-image {
    width: 100%;
}

.sync-addon-modal-wrapper .addon-product-image img {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sync-addon-modal-wrapper .addon-product-details {
    padding: 3rem 0;
}

.sync-addon-modal-wrapper .addon-product-price {
    font-weight: bold; 
    margin-top: 1rem;
    display: inline-block;
}

.modal-popup.sync-addon-modal-wrapper .modal-header .action-close {
    display: inline-block !important;
    content: '';
}

/* Erase any legacy broken font or line-height resets from your base theme */
.modal-popup.sync-addon-modal-wrapper .modal-header .action-close::before {
    font-family: Arial, sans-serif !important; /* Force a universal core system typography layout */
    content: '×' !important; /* Use the universal math multiplication text literal symbol for a clean X */
    font-size: 26px !important; /* Scale it up so it is legible and crisp */
    color: #555 !important;
    line-height: 1 !important;
    display: block !important;
    font-weight: 300 !important;
    text-shadow: none !important;
}

/* Optional: Smooth transition style when a developer hovers over the target area */
.modal-popup.sync-addon-modal-wrapper .modal-header .action-close:hover::before {
    color: #e02b27 !important;
}

/* Target our wrapper block when mounted in the main content pane */
.sync-cart-addons-container {
    display: block !important;
    width: 73% !important; /* Force it to match the exact footprint of the form */
    float: left !important;
    clear: left !important; /* ONLY clear things on the left rail, ignore the right sidebar */
    
    /* The Magic Trick: If it's still stuck below the summary, a negative top margin 
       will pull it straight up into the blank white void on the left side */
    margin-top: 0px; 
}

/* Quick responsive check: on mobile screens, snap it back to full width */
@media (max-width: 767px) {
    .sync-cart-addons-container {
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }
}