﻿
@media (max-width:950px) {
    .section-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 1100px;
        margin: auto;
        padding-top: 20px;
        column-gap: 20px;
    }


    .community-container {
        /*flex: 0 10374px;*/
        text-align: center;
    }

    .community-title {
        /*  font-size: 16px;
        font-weight: bold;
        margin-top: 10px;*/

        font-family: 'Poppins', sans-serif;
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
    }



    .community-subtitle {
        font-size: 17px;
        margin-bottom: 0;
        font-weight: bold;
    }

    .price-badge {
        background: #1a90ff;
        color: #fff;
        padding: 10px 20px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        width: 64px;
        height: 63px;
        font-weight: bold;
        text-align: center;
        box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
        flex-shrink: 0;
        transform: rotate(28deg);
    }
}

@media (min-width:410px) {
    .section-wrapper {
        display: flex;
        /*flex-wrap: wrap;*/
        justify-content: center;
        align-items: center;
        max-width: 1100px;
        margin: auto;
        padding-top: 20px;
        column-gap: 20px;
    }

    .community-container {
        /*flex: 0 1 400px;*/
        text-align: center;
    }

        .community-container img {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            object-fit: cover;
        }

    .community-title {
        /* font-size: 20px;
        font-weight: bold;
        margin-top: 10px;*/
        font-family: 'Poppins', sans-serif;
        font-style: normal;
        /* font-weight: 500;*/
        font-weight: bold !important;
        font-size: 20px;
    }

    .community-subtitle {
        font-size: 22px;
        margin-bottom: 0;
        font-weight: bold;
    }



    .price-badge {
        background: #1a90ff;
        color: #fff;
        padding: 10px 20px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        width: 75px;
        height: 75px;
        font-weight: bold;
        text-align: center;
        box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
        flex-shrink: 0;
        transform: rotate(28deg);
    }
}

.community-subtitle span {
    color: #007aff;
    font-weight: bold;
}

/*.price-badge {
    background: #1a90ff;
    color: #fff;
    padding: 10px 20px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 110px;
    height: 110px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
    flex-shrink: 0;
    transform: rotate(28deg);
}*/

.price-badge span {
    font-size: 12px;
    margin-bottom: -5px;
}

.price-badge strong {
    font-size: 20px;
}



.ResultTileCell {
    width: calc(25% - 10px);
    box-sizing: border-box;
}

.ResultTile {
    padding: 10px;
    height: 100%;
}

.LogoWrap {
    text-align: center;
    margin-bottom: 10px;
}

.LogoWrapInner img {
    max-width: 80px;
    max-height: 50px;
    object-fit: contain;
}


.community-subtitle .price {
    font-size: 22px;
}

.community-subtitle .dollar {
    font-size: 16px;
    vertical-align: super;
}







/* --- Center whole box on desktop --- */
body {
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* --- Main Box --- */
.deal-box {
    background: #e8f0ff;
    padding: 20px;
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    margin: auto;
}

/* --- Title --- */
.deal-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

    .deal-title span {
        color: #000;
        font-weight: 800;
    }

/* --- Flex Row --- */
.deal-row {
    display: flex;
    justify-content: space-between;
    text-align: center;
}



.deal-item label {
    display: block;
    font-size: 14px;
    color: #3d7cff;
    margin-bottom: 5px;
    font-weight: 600;
}

/* --- Quantity Buttons --- */
.qty-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    background: none;
    border: 1px solid #3d7cff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 15px;
    color: #3d7cff;
    cursor: pointer;
}

/* --- Values --- */
.qty-number {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.value {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}



/* --- Mobile view already centered, but ensure no stretching --- */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .deal-row {
        column-gap: 10px;
    }
}


.dollar {
    font-size: 16px;
    vertical-align: super;
    /*font-size: 20px;
    font-weight: 700;
    color: #000;*/
}


.savings-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.savings-top {
    display: flex;
    column-gap: 2px;
    align-items: flex-start;
}

    .savings-top .upto {
        font-size: 12px;
        font-weight: 600;
    }

    .savings-top .dollar {
        font-size: 14px;
        font-weight: 700;
    }

.savings-bottom .savings {
    font-size: 20px;
    font-weight: 800;
    margin-top: -3px;
}


.line-break {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 10px;
    font-weight: 700;
    color: #3d7cff
}

.deal-item {
    position: relative;
    flex: 1;
}


    .deal-item:not(:first-child)::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        bottom: 10px;
        width: 1px;
        background-color: #3d7cff;
    }

.dollarAmountSign {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}
.saving-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 2.4em; /* fixed 2-line height */
    line-height: 1.1;
    color: #3d7cff;
    font-weight: 700;
}

.amount {
    font-size: 12px;
    white-space: nowrap;
}

.saving {
    font-size: 11px;
    white-space: nowrap;
    max-width: 100%;
}