.apto-mwb-cgc-amounts-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    list-style-type: none;
    font: inherit;
    padding: 0;
    justify-content: flex-start;
    max-width: 100%;
}

.apto-mwb-cgc-amounts-list li {
    flex: 0 0 calc(33.33% - 10px * 2 / 3);
    max-width: 100px;
    padding: 12px !important;
    list-style: none;
    padding: 10px;
    border-radius: 6px;
    background: #f2f2f2;
    text-align: center;
    margin-top: auto;
    margin-bottom: 4px;
    border: 2px solid transparent;
    color: #000;
    cursor: pointer;
}

.apto-amount-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.mwb-cgc-expiry {
    font-size: 15px!important;
}

.mwb-cgc-name {
    text-align: center!important;
}

.mwb_wgm_price.apto-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.apto-fake-amount {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    color: #888 !important;
    cursor: text;
    font-size: 14px !important;
}

.apto-mwb-cgc-amounts-list li.active {
    border-color: #000;
}

/* No animations/transitions for these controls */
.apto-amount-input-wrap,
.apto-fake-amount,
.mwb_wgm_price,
.apto-mwb-cgc-amounts-list li {
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
    /* avoid hinting animations */
}

/* keep your previous visibility rules */
.mwb_wgm_price.apto-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.mwb-cgc-product-image-wrapper {
    padding: 15px !important;
}

.mwb-cgc-wrapper-row.clearfix > div > div {
    border: none !important;
    box-shadow: none !important;
}

.mwb-cgc-wrapper-row.clearfix > div > div h4 {
    border-bottom: 2px solid #ddd !important;
}

.mwb-cgc-wrapper-row.clearfix > div > div h4::before {
    display: none !important;
}

.mwb-cgc-pro-price > span {
    font-size: 32px!important;
    color: #fff!important;
}

@media (min-width: 601px) {
    .mwb-cgc-product-image.mwb-cgc-column ul {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: .4rem !important;
    }

    .mwb-cgc-product-image.mwb-cgc-column ul li {
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 600px) {
    .mwb-cgc-column.mwb-cgc-preview {
        order: 1 !important;
        max-height: 50vh;
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: auto;
        scrollbar-color: #999 #eee;
        margin: 0 !important;
    }


    .mwb-cgc-product-image.mwb-cgc-column {
        order: 2 !important;
        margin: 0 !important;
    }

    .mwb-cgc-column.mwb-cgc-gift-details {
        order: 3 !important;
        margin: 0 !important;
    }

    .mwb-cgc-product-image.mwb-cgc-column ul {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        scroll-behavior: smooth;
        white-space: nowrap;
    }

    .mwb-cgc-product-image.mwb-cgc-column ul li {
        flex: 0 0 auto;
        max-width: 100px;
        padding: 0 !important;
        list-style: none;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #f9f9f9;
        text-align: center;
        margin-top: auto;
    }
}