/* WalletSavvy UI Upgrade v4 - 2026-04-06
   Complete redesign: wider container, modern typography, card badges,
   homepage centering, detail page, news page fixes.
   Loaded AFTER style.css. Backup: style.css.bak_20260406_1239 */


/* ══════════════════════════════════════════════════════════════
   NUCLEAR FONT RESET - override ALL legacy 11-12px declarations
   ══════════════════════════════════════════════════════════════ */

body {
    font-size: 15px !important;
    line-height: 1.6 !important;
    min-width: 320px !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Force minimum 13px on ALL text elements site-wide */
p, span, a, li, td, th, div, article, label, input, select, textarea,
.grei, .small, .medium_l, .text_align {
    font-size: inherit;
}
article.small, article.grei.small {
    font-size: 14px !important;
    line-height: 1.6 !important;
}
article.grei, article.grei.medium_l {
    font-size: 15px !important;
    line-height: 1.6 !important;
}


/* ══════════════════════════════════════════════════════════════
   WIDER CONTAINER
   ══════════════════════════════════════════════════════════════ */

.center {
    width: 1200px !important;
    max-width: 96% !important;
}


/* ══════════════════════════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════════════════════════ */

#head_bar {
    height: auto !important;
    min-height: 64px;
}
#head_bar .center {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
#head_bar nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
#head_bar nav a {
    font-size: 15px !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    color: #333 !important;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.4 !important;
    height: auto !important;
    margin-left: 4px !important;
    float: none !important;
}
#head_bar nav a:hover {
    background: #87b302 !important;
    color: #fff !important;
}
#head_bar nav a.act {
    background: #87b302 !important;
    color: #fff !important;
}


/* ══════════════════════════════════════════════════════════════
   HOMEPAGE - "Please Select" section
   ══════════════════════════════════════════════════════════════ */

.baner_stebs_titel {
    font-size: 26px !important;
    line-height: 1.4 !important;
    padding-top: 30px !important;
}
.baner_stebs_titel b {
    font-size: inherit !important;
}

/* People columns - center ONLY the initial "Please select" section
   The wizard (.stebs_bottom) must keep its original float layout */
.baner_stebs_thums:first-child {
    text-align: center;
}
.baner_stebs_thums:first-child .people_thums {
    display: inline-block !important;
    float: none !important;
    vertical-align: top;
    text-align: center;
    margin: 30px 15px 0 15px !important;
}
.baner_stebs_thums .people_thums article {
    font-size: 14px !important;
    line-height: 1.6 !important;
}
.baner_stebs_thums .people_thums article p {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Wizard container - keep overflow hidden so Step 3 stays hidden until
   JS reveals it. Height 537px was original, 560px fits bigger fonts for Step 2. */
#baner_stebs,
#work_baner {
    height: 537px !important;
    overflow: hidden !important;
}
/* When Step 3 (spending) is active, expand to show full form + Show Results button */
#baner_stebs:has(.stebs_bottom_right:last-child.act) {
    height: 900px !important;
}

/* Wizard step sections - ONLY font size overrides, NO layout changes.
   The wizard uses complex JS + fixed-width float layout that breaks with CSS overrides. */
#baner_stebs .stebs_bottom_right_titel {
    font-size: 16px !important;
}
#baner_stebs .stebs_bottom_right_sub_titel {
    font-size: 14px !important;
}
#baner_stebs .checkbox_thums span {
    font-size: 13px !important;
}
#baner_stebs #stebs_meny a span span {
    font-size: 13px !important;
}
#baner_stebs .next_step .stebs_batton {
    font-size: 15px !important;
}
#baner_stebs .total {
    font-size: 16px !important;
}
#baner_stebs .balanse_popup_input input {
    font-size: 14px !important;
}
#baner_stebs .left_block span {
    font-size: 13px !important;
}

/* Homepage hero text */
.steps_titel_bl h1, .steps_titel_bl h2, #work_baner h1, #work_baner h2 {
    font-size: 28px !important;
    line-height: 1.35 !important;
}
.steps_titel_bl p, .steps_titel_bl article, #work_baner p, #work_baner article {
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* Stats counters */
.counter_bl span, .counter_bl .count_num {
    font-size: 42px !important;
}
.counter_bl p, .counter_bl article, .counter_bl .cirkl_p {
    font-size: 14px !important;
}

/* Mid-page content sections */
.home_text_bl p, .home_text_bl article, .home_text_bl span, .home_text_bl div,
.wite_row p, .wite_row article, .grei_row p, .grei_row article {
    font-size: 15px !important;
    line-height: 1.7 !important;
}
.home_text_bl h2, .home_text_bl h3,
.wite_row h2, .grei_row h2 {
    font-size: 24px !important;
}

/* Additional resources cards */
.add_res_bl h3, .add_res_bl h4 {
    font-size: 18px !important;
}
.add_res_bl p, .add_res_bl article {
    font-size: 14px !important;
    line-height: 1.6 !important;
}


/* ══════════════════════════════════════════════════════════════
   HOMEPAGE - Stats row (#servise_block) - stretch to container
   ══════════════════════════════════════════════════════════════ */

#servise_block .center {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap;
}
#servise_block .thumbs_s {
    width: 18% !important;
    min-width: 180px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: auto !important;
    min-height: 280px;
    flex: 1;
    margin: 0 8px !important;
}
#servise_block .thumbs_s:first-child { margin-left: 0 !important; }
#servise_block .thumbs_s:last-child { margin-right: 0 !important; }
#servise_block .thumbs_s h2 {
    font-size: 38px !important;
    font-weight: 700 !important;
}
#servise_block .thumbs_s p {
    font-size: 14px !important;
    line-height: 1.5 !important;
}
#servise_block .thumbs_s img.black,
#servise_block .thumbs_s img.color {
    width: 100% !important;
    height: auto !important;
    max-width: 180px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE - Additional Resources (#bottom_text_block) - stretch
   ══════════════════════════════════════════════════════════════ */

#bottom_text_block .colum_block {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap;
    gap: 24px;
}
#bottom_text_block .colum_tri {
    width: calc(33% - 16px) !important;
    float: none !important;
    flex: 1;
    min-width: 250px;
}
#bottom_text_block .colum_tri.center_c {
    width: calc(33% - 16px) !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
#bottom_text_block .colum_tri.center_c img {
    max-width: 100% !important;
    height: auto !important;
}
#bottom_text_block h2 {
    font-size: 26px !important;
}
#bottom_text_block h3 {
    font-size: 20px !important;
}
#bottom_text_block p {
    font-size: 15px !important;
    line-height: 1.6 !important;
}
#bottom_text_block .colum_tri article p {
    font-size: 14px !important;
    line-height: 1.6 !important;
}


/* ══════════════════════════════════════════════════════════════
   CARD LISTING PAGE - complete redesign
   ══════════════════════════════════════════════════════════════ */

/* Layout */
.resalts_right_bl {
    width: calc(100% - 260px) !important;
    padding-left: 24px !important;
}

/* Country tabs */
.country-switcher { margin: 0 0 20px 0 !important; }
.country-tab { font-size: 16px !important; padding: 12px 24px !important; }

/* Page heading */
.card_ch_r h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    color: #1a1a2e !important;
}
.card_ch_r .center_pading article.grei {
    font-size: 15px !important;
    color: #555 !important;
}

/* ── Card row ─────────────────────────────────────────────── */
#cards_list .card_ch_r_thums_center .c_c_r_thumbs.top10_th {
    padding: 24px 0 !important;
    min-height: auto !important;
    height: auto !important;
    border-top: 1px solid #e8ecf0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    width: 100% !important;
}
#cards_list .card_ch_r_thums_center .c_c_r_thumbs.top10_th:hover {
    background: #f8fafb !important;
}
/* Ensure card row is tall enough for both buttons + padding */
#cards_list .card_ch_r_thums_center .c_c_r_thumbs.top10_th {
    min-height: 140px !important;
    overflow: visible !important;
    padding-bottom: 16px !important;
}
#cards_list .card_ch_r_thums {
    overflow: visible !important;
}
#cards_list .card_ch_r_thums_wp {
    overflow: visible !important;
}
#cards_list .card_ch_r_thums_center {
    overflow: visible !important;
}

/* Card image */
.card_ch_r_thums_center .c_c_r_thumbs.top10_th .card_a_img {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 20px 0 0 !important;
    float: left;
    flex-shrink: 0;
}
.card_ch_r_thums_center .c_c_r_thumbs.top10_th .card_a_img img {
    border-radius: 10px !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12) !important;
    width: 150px;
    height: 100px;
    object-fit: cover;
}

/* Card info column - no left padding, flush with image edge */
.top10_th_center {
    width: calc(100% - 370px) !important;
    padding: 0 !important;
    float: left !important;
    flex: 1;
    min-width: 280px;
}

/* Card title - flush left, no extra gap */
#cards_list .card_ch_r_thums_center .c_c_r_thumbs .c_c_r_titel {
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    color: #1a1a2e !important;
    text-transform: uppercase !important;
    width: 100% !important;
    text-align: left !important;
}
/* Remove clear divs excess spacing */
#cards_list .top10_th_center .clear {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Card description */
#cards_list .c_c_r_thumbs.top10_th p.grei,
#cards_list .top10_th_center p {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #4a5568 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    font-style: normal !important;
}

/* ── APR & Fee badges ─────────────────────────────────────── */
#cards_list .c_c_r_thumbs.top10_th .c_c_r_icons {
    font-size: 14px !important;
    color: #2d3748 !important;
    width: auto !important;
    text-align: left !important;
    margin-top: 4px !important;
}
#cards_list .c_c_r_icons .c_c_r_icons_thumbs {
    display: inline-flex !important;
    align-items: center !important;
    background: #f0f4f8 !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    margin: 0 8px 8px 0 !important;
    float: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: 1px solid #e2e8f0 !important;
}
/* APR = blue */
#cards_list .c_c_r_icons .c_c_r_icons_thumbs:first-child {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
    color: #3730a3 !important;
}
/* Fee = green */
#cards_list .c_c_r_icons .c_c_r_icons_thumbs:nth-child(2) {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}
#cards_list .c_c_r_icons .c_c_r_icons_thumbs span {
    float: none !important;
    position: relative !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* Hide old icon images, use CSS circles instead */
.c_c_r_icons_img_act { display: none !important; }
#cards_list .c_c_r_icons .c_c_r_icons_thumbs:first-child::before {
    content: "%";
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; background: #4f46e5; color: #fff;
    border-radius: 50%; font-size: 10px; font-weight: 700;
    margin-right: 8px; flex-shrink: 0;
}
#cards_list .c_c_r_icons .c_c_r_icons_thumbs:nth-child(2)::before {
    content: "$";
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; background: #16a34a; color: #fff;
    border-radius: 50%; font-size: 11px; font-weight: 700;
    margin-right: 8px; flex-shrink: 0;
}

/* Tooltip */
.c_c_r_icons_thumbs .informer_popup {
    font-size: 12px !important; border-radius: 8px !important; padding: 8px 14px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* ── Phone CTA ────────────────────────────────────────────── */
.phone-cta {
    margin-top: 8px;
}
.phone-link {
    display: inline-flex !important;
    align-items: center;
    font-size: 13px !important;
    font-weight: 500;
    color: #2563eb !important;
    text-decoration: none !important;
    padding: 4px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.phone-link:hover {
    background: #dbeafe;
    color: #1d4ed8 !important;
}

/* ── Issuer logo badge (in right column) ──────────────────── */
.issuer-logo-badge {
    text-align: center;
    margin-bottom: 10px;
}
.issuer-logo-badge img {
    max-height: 32px;
    max-width: 80px;
    opacity: 0.85;
}

/* ── Right column: Apply Now + More Details ───────────────── */
.top10_th_center_r {
    width: 150px !important;
    float: right !important;
    text-align: center !important;
    padding-top: 16px !important;
    padding-bottom: 8px !important;
    flex-shrink: 0;
}
.top10_th_center_r .card_ch_r_batton {
    margin: 0 0 8px 0 !important;
    width: 100% !important;
}

/* Shared button base for card listing buttons */
.top10_th_center_r .stebs_batton,
.top10_th_center_r .card_ch_r_detail_batton {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    line-height: 1.3 !important;
    cursor: pointer;
    left: 0 !important;
    position: relative !important;
    margin: 0 !important;
    background-image: none !important;
}

/* Apply Now - green */
.top10_th_center_r .stebs_batton {
    background: #87b302 !important;
    box-shadow: 0 2px 6px rgba(135,179,2,0.35) !important;
}
.top10_th_center_r .stebs_batton:hover {
    background: #7aa200 !important;
    box-shadow: 0 4px 12px rgba(135,179,2,0.45) !important;
    transform: translateY(-1px);
}

/* More Details - blue */
.top10_th_center_r .card_ch_r_detail_batton {
    background: #3b82f6 !important;
    box-shadow: 0 2px 6px rgba(59,130,246,0.3) !important;
}
.top10_th_center_r .card_ch_r_detail_batton:hover {
    background: #2563eb !important;
    box-shadow: 0 4px 12px rgba(59,130,246,0.4) !important;
    transform: translateY(-1px);
}

/* Generic stebs_batton styling for non-card-listing contexts (wizard, etc.) */
.stebs_batton {
    background: #87b302 !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    cursor: pointer;
    text-align: center !important;
}


/* ══════════════════════════════════════════════════════════════
   CARD DETAIL PAGE
   ══════════════════════════════════════════════════════════════ */

/* Card name on detail page */
.detail_cards h1, .detail_cards .c_c_r_titel,
.detail_cards .c_c_r_titel_l {
    font-size: 26px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

/* Description under card name */
.detail_cards p.grei, .detail_cards article.grei {
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* Features table */
.card_apply_desc_block {
    font-size: 14px !important;
}
.detail_cards table td, .detail_cards table th {
    font-size: 14px !important;
    padding: 8px 12px !important;
    line-height: 1.5 !important;
}

/* Detail page card info layout */
.detail_cards .top10_th_center {
    width: auto !important;
}
.detail_cards .c_c_r_titel {
    margin-top: 0 !important;
}

/* Overview of features section */
.card_features_block, .card_features_block td {
    font-size: 14px !important;
    line-height: 1.6 !important;
}


/* ══════════════════════════════════════════════════════════════
   FILTER SIDEBAR
   ══════════════════════════════════════════════════════════════ */

.news_card_search {
    width: 235px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fafbfc !important;
}
.news_card_search_titel {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 16px 18px !important;
}
.news_card_search_thumbs .open_a td.open_a_f span {
    font-size: 14px !important;
    font-weight: 500 !important;
}
.news_card_search_thumbs .checkbox_thums span,
.resalts_left_bl .checkbox_thums span {
    font-size: 13px !important;
}
.resalts_left_bl .blue_bl .blue_thumbs span {
    font-size: 13px !important;
}
.resalts_left_bl .years_card .years_card_titel,
.resalts_left_bl .years_card span {
    font-size: 13px !important;
}


/* ══════════════════════════════════════════════════════════════
   SAVVY RESOURCES / NEWS
   ══════════════════════════════════════════════════════════════ */

/* News listing container */
.news_right_bl, .resalts_right_bl {
    width: calc(100% - 260px) !important;
}

/* Article cards */
.news_list_thumbs, .news_thumbs {
    font-size: 15px !important;
}
.news_list_thumbs h2, .news_list_thumbs h3,
.news_thumbs h2, .news_thumbs h3 {
    font-size: 20px !important;
    line-height: 1.3 !important;
}
.news_list_thumbs p, .news_list_thumbs article,
.news_thumbs p, .news_thumbs article {
    font-size: 15px !important;
    line-height: 1.6 !important;
}
.news_list_thumbs .date, .news_thumbs .date {
    font-size: 13px !important;
}

/* Read more button */
.news_list_thumbs .read_more, .news_thumbs .read_more {
    font-size: 14px !important;
}


/* ══════════════════════════════════════════════════════════════
   RESULTS PAGE
   ══════════════════════════════════════════════════════════════ */

.result, .monthly_spend, .add_card {
    font-size: 15px !important;
}
.monthly_spend_titel, .add_card_titel {
    font-size: 20px !important;
}
.last_steb_thumbs span, .left_block span {
    font-size: 14px !important;
}
.balanse_popup_input input, .right_block input {
    font-size: 14px !important;
}
.result .c_c_r_titel {
    font-size: 16px !important;
}
.result p, .result article {
    font-size: 14px !important;
    line-height: 1.6 !important;
}
.expand {
    font-size: 13px !important;
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

footer, footer a, footer span, #copyright, #gilmedia {
    font-size: 13px !important;
}
#footer_links .thumbs_f a {
    font-size: 13px !important;
}
.subscribe_section h2, .subscribe_section h3 {
    font-size: 24px !important;
}
.subscribe_section p, .subscribe_section article {
    font-size: 15px !important;
}
.subscribe_section input[type="text"],
.subscribe_section input[type="email"] {
    font-size: 14px !important;
    padding: 10px 14px !important;
}


/* ══════════════════════════════════════════════════════════════
   ABOUT / CONTACT
   ══════════════════════════════════════════════════════════════ */

.about_bl p, .about_bl article, .contact_bl p, .contact_bl article {
    font-size: 15px !important;
    line-height: 1.7 !important;
}
.about_bl h2, .contact_bl h2 {
    font-size: 24px !important;
}


/* ══════════════════════════════════════════════════════════════
   CARD DETAIL MODAL + DETAIL PAGE STYLING
   ══════════════════════════════════════════════════════════════ */

/* Modal iframe -- make wider */
#card-modal {
    max-width: 1100px !important;
}
#card-modal-frame {
    height: 80vh !important;
}

/* Detail page inside modal or standalone -- features table improvements */
.detail_cards .resalts_right_bl {
    width: 100% !important;
    padding-left: 0 !important;
}
.detail_cards .resalts_left_bl {
    display: none !important;
}

/* Feature table -- wider, color coded yes/no */
.detail_cards table {
    width: 100% !important;
    font-size: 14px !important;
    border-collapse: collapse;
}
.detail_cards table td {
    padding: 10px 16px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
/* Color code yes/no */
.detail_cards table td:last-child {
    font-weight: 600 !important;
}

/* Apply by phone on detail page -- proper CTA */
.detail_cards .c_c_r_icons br {
    display: none !important;
}

/* Overview features section - wider */
.detail_cards .card_ch_r_thums {
    width: 100% !important;
}
.detail_cards .card_ch_r_thums_center {
    width: 100% !important;
}
.detail_cards .top10_th_center {
    width: auto !important;
    max-width: calc(100% - 200px);
}

/* Modal responsive */
@media (max-width: 1024px) {
    #card-modal {
        max-width: 96% !important;
    }
}
@media (max-width: 768px) {
    #card-modal {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        height: 100vh;
    }
    #card-modal-frame {
        height: calc(100vh - 50px) !important;
    }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .center { width: 100% !important; max-width: 96% !important; }
    .resalts_right_bl, .news_right_bl { width: calc(100% - 250px) !important; }
    .top10_th_center { width: calc(100% - 350px) !important; }
}

@media (max-width: 768px) {
    .center { width: 100% !important; padding: 0 12px !important; }
    .resalts_right_bl, .news_right_bl { width: 100% !important; padding-left: 0 !important; }
    .news_card_search { width: 100% !important; }
    .card_ch_r h1 { font-size: 22px !important; }
    #cards_list .card_ch_r_thums_center .c_c_r_thumbs .c_c_r_titel { font-size: 15px !important; }
    .top10_th_center { width: 100% !important; padding: 0 !important; }
    .top10_th_center_r {
        width: 100% !important;
        text-align: center !important;
        flex-direction: row !important;
        gap: 12px !important;
        padding-top: 12px !important;
    }
    .top10_th_center_r .stebs_batton,
    .top10_th_center_r .open-card-modal,
    .top10_th_center_r .card_ch_r_detail_batton {
        width: auto !important;
        flex: 1;
    }
    #cards_list .c_c_r_thumbs.top10_th {
        flex-direction: column !important;
    }
    .card_ch_r_thums_center .c_c_r_thumbs.top10_th .card_a_img {
        margin: 0 auto 12px auto !important;
        float: none !important;
        display: block;
        text-align: center;
    }
    .baner_stebs_thums:first-child .people_thums { width: 100% !important; margin: 20px 0 !important; }
    /* Stats row mobile */
    #servise_block .center { flex-direction: column !important; align-items: center !important; }
    #servise_block .thumbs_s { width: 90% !important; margin: 8px 0 !important; }
    /* Resources columns mobile */
    #bottom_text_block .colum_block { flex-direction: column !important; }
    #bottom_text_block .colum_tri { width: 100% !important; }
    #bottom_text_block .colum_tri.center_c { display: none !important; }
    /* Phone CTA mobile */
    .phone-link { font-size: 14px !important; }
}
