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 Header Compression - Get first card above fold */
@media only screen and (max-width: 767px) {
    /* Smaller H1 on mobile */
    main.container > h1 {
        font-size: 1.5rem !important;
        margin-bottom: 8px !important;
        line-height: 1.3;
    }

    /* Compact author byline */
    main.container > p:first-of-type {
        font-size: 0.8rem !important;
        margin-bottom: 8px !important;
    }

    /* Collapse support message on mobile - show condensed version */
    main.container > p[style*="text-align: justify"] {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
        line-height: 1.4;
    }

    /* Reduce container top padding */
    main.container {
        padding-top: 10px !important;
    }

    /* Reduce gap before first bank card - get it above fold (Jan 2026 perf fix) */
    #results-container {
        margin-top: 20px !important;
    }
}

/* Youth Mobile Button CRO Enhancement */
.mobile-item-container .continuation-button {
    min-height: 52px !important; /* Taller for better tap target */
    padding: 12px 16px !important; /* More generous padding */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold;
    line-height: 1.2;
    width: 100% !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 8px !important; /* Rounder corners - less "stubby" */
    box-shadow: 0 4px 12px rgba(1, 87, 255, 0.35) !important; /* Prominent shadow */
    background: linear-gradient(180deg, #1a6fff 0%, #0157FF 50%, #0047d6 100%) !important; /* Gradient for depth */
    border: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Text pop */
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

/* Orange "בחירה חכמה" button for Discount bank */
.mobile-item-container .continuation-button[style*="ff8100"] {
    background: linear-gradient(180deg, #ff9a2e 0%, #ff8100 50%, #e67300 100%) !important;
    box-shadow: 0 4px 12px rgba(255, 129, 0, 0.4) !important;
}

/* Touch feedback - button press effect */
.mobile-item-container .continuation-button:active {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 6px rgba(1, 87, 255, 0.3) !important;
}

.mobile-item-container .continuation-button[style*="ff8100"]:active {
    box-shadow: 0 2px 6px rgba(255, 129, 0, 0.3) !important;
}

/* Youth Mobile Card Enhancements */
.mobile-item-container {
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.mobile-item-container:active {
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.3) !important;
}

/* Bank logos - clean display without shadow artifacts */
.mobile-item-container .checking-logo {
    max-width: 100%;
    height: auto;
}

/* Highlight customer rating - key trust signal */
.mobile-item-container .loan-amount {
    font-weight: 600;
    color: #333;
}

/* Star ratings - more visible */
.mobile-item-container .Stars {
    font-size: 16px !important;
}

.mobile-item-container .Stars::before {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 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;
    }
}
