/*
 * creditcard.css — Credit Card Detail Page
 * Mobile-first. Fintra teal accent. Apply Now always prominent.
 */

/* ── Tokens ─────────────────────────────────────────────────────── */
.cc-page {
    --accent:   #00c6ca;
    --accent-dk:#009fa3;
    --text:     #222222;
    --muted:    #717171;
    --subtle:   #b0b0b0;
    --border:   #ebebeb;
    --surface:  #ffffff;
    --bg:       #ffffff;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;

    --shadow-widget: 0 2px 4px rgba(0,0,0,.06),
                     0 8px 24px rgba(0,0,0,.08),
                     0 16px 48px rgba(0,0,0,.06);

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.cc-page *, .cc-page *::before, .cc-page *::after { box-sizing: border-box; }
.cc-page a { text-decoration: none; color: inherit; }
.cc-page button { font-family: var(--font); }

/* ══════════════════════════════════════════════
   STICKY MINI TAB NAV
══════════════════════════════════════════════ */
.cc-mini-nav {
    position: sticky;
    top: 56px;
    z-index: 150;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.cc-mini-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 48px;
    display: flex;
    align-items: center;
    gap: .25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cc-mini-nav-inner::-webkit-scrollbar { display: none; }

.cc-mini-tab {
    padding: 0 12px;
    height: 48px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .15s, border-color .15s;
    text-decoration: none;
}

.cc-mini-tab:hover { color: var(--text); }
.cc-mini-tab.active { color: var(--accent-dk); font-weight: 700; border-bottom-color: var(--accent); }

/* ══════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════ */
.cc-breadcrumb {
    max-width: 1120px;
    margin: 0 auto;
    padding: .75rem 1rem .5rem;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.cc-breadcrumb a {
    color: var(--muted);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: transparent;
    transition: text-decoration-color .15s;
}

.cc-breadcrumb a:hover { text-decoration-color: var(--muted); }
.cc-breadcrumb-sep { color: var(--subtle); }
.cc-breadcrumb-current { color: var(--text); font-weight: 600; }

/* ══════════════════════════════════════════════
   CARD IMAGE
══════════════════════════════════════════════ */
.cc-photo {
    max-width: 1120px;
    margin: 1rem auto 0;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

.cc-photo-inner {
    width: 380px;
    max-width: 100%;
}

.cc-photo-inner img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.18));
    padding: 1.5rem 3rem;
}

/* ══════════════════════════════════════════════
   MAIN LAYOUT — two columns on desktop
══════════════════════════════════════════════ */
.cc-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem 1rem 5rem;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.cc-main { flex: 1; min-width: 0; }

/* ══════════════════════════════════════════════
   TITLE BLOCK
══════════════════════════════════════════════ */
.cc-title-block { padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }

.cc-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.3px;
    line-height: 1.25;
    margin: 0 0 .5rem;
}

.cc-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

.cc-meta-dot { color: var(--subtle); }

.cc-rating-inline { display: flex; align-items: center; gap: 4px; }
.cc-star-icon { color: var(--accent); font-size: 12px; }
.cc-rating-val { font-size: 13px; font-weight: 700; color: var(--text); }

/* ══════════════════════════════════════════════
   MOBILE APPLY CTA (shown inline below title on mobile)
══════════════════════════════════════════════ */
.cc-mobile-cta {
    display: none;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cc-mobile-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.cc-mobile-cta-fee {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.cc-mobile-cta-fee span {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

.cc-mobile-cta-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: .5rem;
}

/* ══════════════════════════════════════════════
   BANK ROW
══════════════════════════════════════════════ */
.cc-host-block {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cc-host-info { display: flex; flex-direction: column; gap: 3px; }

.cc-host-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.cc-host-sub { font-size: 13px; color: var(--muted); }

.cc-bank-logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

/* ══════════════════════════════════════════════
   HIGHLIGHTS
══════════════════════════════════════════════ */
.cc-highlights {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.cc-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cc-hl-icon { font-size: 20px; line-height: 1; flex-shrink: 0; width: 24px; text-align: center; }
.cc-hl-label { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cc-hl-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* ══════════════════════════════════════════════
   SECTIONS — separated by dividers
══════════════════════════════════════════════ */
.cc-section {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.cc-section:last-child { border-bottom: none; }

.cc-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.2px;
    margin: 0 0 .85rem;
}

/* Fees table */
.cc-fees-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cc-fees-table tr { border-bottom: 1px solid var(--border); }
.cc-fees-table tr:last-child { border-bottom: none; }
.cc-fees-table td { padding: .75rem 0; vertical-align: top; }
.cc-fees-table td:first-child { color: var(--muted); width: 50%; padding-right: 1rem; }
.cc-fees-table td:last-child { font-weight: 600; color: var(--text); }

/* Features grid */
.cc-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem 1rem;
}

.cc-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
}

.cc-feature-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }

.cc-show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: .85rem;
    padding: 9px 16px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--accent);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dk);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.cc-show-more-btn:hover { background: var(--accent); color: #fff; }

/* Offers list */
.cc-offers-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.cc-offers-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

.cc-offers-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Review prose */
.cc-review-body { font-size: 14px; line-height: 1.75; color: var(--text); }
.cc-review-body p { margin: 0 0 .85rem; }
.cc-review-body p:last-child { margin: 0; }

.cc-section-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: .85rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dk);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ══════════════════════════════════════════════
   APPLY BUTTON — primary CTA, always teal
══════════════════════════════════════════════ */
.cc-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--r-sm);
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .15s;
    letter-spacing: .01em;
    margin-bottom: 1rem;
}

.cc-apply-btn:hover { background: var(--accent-dk); color: #fff; }

/* ══════════════════════════════════════════════
   SIDEBAR — desktop booking widget
══════════════════════════════════════════════ */
.cc-sidebar {
    display: none;
    width: 340px;
    flex-shrink: 0;
}

.cc-widget {
    position: sticky;
    top: 120px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-widget);
    background: #fff;
}

.cc-widget-fee {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.cc-widget-fee span { font-size: 14px; font-weight: 400; color: var(--muted); }

.cc-widget-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    margin-bottom: 1.1rem;
}

.cc-widget-rating .cc-star-icon { font-size: 12px; }
.cc-widget-rating-val { font-weight: 700; color: var(--text); }
.cc-widget-rating-lbl { color: var(--muted); }

.cc-widget-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 1rem;
}

.cc-widget-divider { border: none; border-top: 1px solid var(--border); margin: .85rem 0; }

.cc-widget-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .35rem 0;
    font-size: 13px;
}

.cc-widget-row-label { color: var(--muted); }
.cc-widget-row-val   { font-weight: 600; color: var(--text); }

/* ══════════════════════════════════════════════
   SIMILAR CARDS
══════════════════════════════════════════════ */
.cc-similar {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem 5rem;
    border-top: 1px solid var(--border);
}

.cc-similar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.2px;
    padding: 1.25rem 0 .85rem;
}

.cc-sim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.cc-sim-card { display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.cc-sim-card:hover .cc-sim-img-wrap { opacity: .85; }

.cc-sim-img-wrap {
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .15s;
}

.cc-sim-img { width: 100%; height: 100%; object-fit: contain; padding: 10px 14px; }
.cc-sim-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cc-sim-bank { font-size: 12px; color: var(--muted); }
.cc-sim-rating { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.cc-sim-rating .cc-star-icon { font-size: 11px; }

/* ══════════════════════════════════════════════
   STICKY MOBILE BOTTOM BAR
══════════════════════════════════════════════ */
.cc-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: .75rem 1rem;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}

.cc-mobile-bar .cc-apply-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    margin: 0;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 640px) {
    .cc-photo { margin: .75rem auto 0; }
    .cc-photo-inner { width: 280px; }
    .cc-layout { padding: 1rem 1rem 6rem; gap: 0; }
    .cc-title { font-size: 18px; }
    .cc-features-grid { grid-template-columns: 1fr; }
    .cc-mobile-bar { display: flex; }
    .cc-mobile-cta { display: block; }
    .cc-sim-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (min-width: 900px) {
    .cc-sidebar { display: block; }
    .cc-mobile-cta { display: none; }
    .cc-breadcrumb { padding: 1rem 1.5rem .5rem; }
    .cc-photo-inner { width: 420px; }
    .cc-mini-nav-inner { padding: 0 1.5rem; }
    .cc-layout { padding: 1.5rem 1.5rem 4rem; }
    .cc-similar { padding: 0 1.5rem 4rem; }
    .cc-title { font-size: 26px; }
    .cc-host-name { font-size: 20px; }
    .cc-section-title { font-size: 22px; }
    .cc-similar-title { font-size: 22px; }
    .cc-mini-tab { font-size: 14px; height: 52px; }
}
