body {
    font-size: 16px !important;
}

.item-container {
    border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    border-color: #A8A8A8;
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 50%);
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    padding: 10px;
}

.center-middle {
    position: relative;
    font-size: 3em;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

.saving-price {
    color: #ff8b00;
    font-size: 45px;
}

@media only screen and (max-width: 991px) {
    .respo-mobile {
        display: block;
    }

    .respo-desktop {
        display: none;
    }

    .median-review-head {
        margin-top: 25px;
    }

    .table-container {
        margin-top: 25px;;
    }

    .table-mobile {
        display: block;
    }

    .hide-on-small {
        display: none;
    }

    .median-margin {
        margin-top: 50px;
    }
}

@media only screen and (min-width: 992px) {
    .respo-mobile {
        display: none;
    }

    .respo-desktop {
        display: block;
    }

    .median-review-head {
        margin-top: 5px;
    }

    .table-mobile {
        display: none;
    }

    .median-margin {
        margin-top: 0;
    }

    .button-row {
        padding: 50px;
    }

    .logo {
        width: 150px;
    }

    .checking-desktop-container .logo {
        width: 200px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .checking-desktop-container .logo {
        width: 80px;
    }
}

@media only screen and (max-width: 991px) {
    .button-row {

    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .logo {
        width: 110px !important;
    }

    .button-row {
        padding: 22px;
    }
}

@media only screen and (max-width: 768px) {
    .logo {
        width: 50px;
    }
}

@media only screen and (min-width: 769px) and (max-width: 991px) {
    .logo {
        width: 60px;
    }
}

@media only screen and (min-width: 397px) and (max-width: 417px) {
    .button-bank {
        width: 105px;
    }
}

@media only screen and (min-width: 321px) and (max-width: 396px) {
    .button-bank {
        width: 85px;
        font-size: 0.7em;
    }
}

@media only screen and (min-width: 418px) {
    .button-bank {
        min-width: 112px;
    }
}

.Stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-family: Times;
    line-height: 1;
}

.Stars::before {
    content: '★★★★★';
    letter-spacing: 3px;
    background: linear-gradient(270deg, #fc0 var(--percent), #fff var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media only screen and (max-width: 320px) {
    .mobile-item-container .continuation-button {
        font-size: 13px;
    }

    .mobile-item-container .loan-amount {
        font-size: 10px;
    }

    .mobile-item-container .details-font-size {
        font-size: 10px;
    }

    .mobile-item-container .details-container {
        padding-left: 0;
    }

    .Stars {
        font-size: 10px;
    }
}

@media only screen and (min-width: 321px) {
    .mobile-item-container .details-container {
        padding: 0;
    }

    .mobile-item-container .details-padding {
        padding-right: 20px;
    }

    .mobile-item-container .details-font-size {
        font-size: 15px;
    }

    .Stars {
        font-size: 14px;
    }

    .mobile-item-container .loan-amount {
        font-size: 15px;
    }
}

@media only screen and (max-width: 335px) {
    .image-mobile-onezero {
    }
}

@media only screen and (min-width: 336px) and (max-width: 390px) {
    .image-mobile-onezero {
    }
}

@media only screen and (min-width: 391px) {
    .image-mobile-onezero {
    }
}

/* Youth Mobile Button Height Enhancement - Option 2 */
.mobile-item-container .continuation-button {
    min-height: 48px !important; /* Google's recommended touch target */
    padding: 10px 8px !important; /* Reduced horizontal padding for more text space */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold;
    line-height: 1.1; /* Tighter line height */
    width: 100% !important; /* Fill available container width */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Show ellipsis if text still overflows */
}

/* Responsive font sizes to prevent cutoff */
@media only screen and (max-width: 320px) {
    .mobile-item-container .continuation-button {
        font-size: 12px !important; /* Smaller for very small screens */
    }
    /* Special handling for longer "בחירה חכמה" text */
    .mobile-item-container .continuation-button b {
        font-size: 11px !important;
    }
}

@media only screen and (min-width: 321px) and (max-width: 374px) {
    .mobile-item-container .continuation-button {
        font-size: 13px !important; /* Slightly smaller */
    }
    /* Special handling for longer "בחירה חכמה" text */
    .mobile-item-container .continuation-button b {
        font-size: 12px !important;
    }
}

@media only screen and (min-width: 375px) {
    .mobile-item-container .continuation-button {
        font-size: 14px !important; /* Full size for larger screens */
    }
    /* Special handling for longer "בחירה חכמה" text */
    .mobile-item-container .continuation-button b {
        font-size: 13px !important;
    }
}
