﻿/*
 * esim-plans.css — wwwroot/css/esim-plans.css
 * Purple theme matching RoameoSIM navbar (#6B3FA0)
 * All classes prefixed ep- to avoid Bootstrap clashes
 * IMPORTANT: disabled chips use opacity only — NO pointer-events:none
 *            JS delegation handles blocking clicks on disabled chips
 */

:root {
    --ep-purple: #6B3FA0;
    --ep-purple-dark: #4e2d78;
    --ep-purple-mid: #7d50b5;
    --ep-purple-light: #ede8f6;
    --ep-purple-pale: #f5f0fb;
    --ep-dark: #1a1a2e;
    --ep-mid: #4a4a6a;
    --ep-muted: #8a8aaa;
    --ep-line: #e8e4f0;
    --ep-white: #ffffff;
    --ep-bg: #f8f7fc;
    --ep-trans: all 0.18s ease;
}

.ep-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* BREADCRUMB */
.ep-breadcrumb {
    background: var(--ep-white);
    border-bottom: 1px solid var(--ep-line);
    padding: 11px 0;
    font-size: 12px;
    color: var(--ep-muted);

    padding-top: 88px; /* desktop — clears the 68px fixed header + breathing room */
    padding-bottom: 8px;
    background: #fff;
}

    .ep-breadcrumb a {
        color: var(--ep-muted);
        text-decoration: none;
    }

        .ep-breadcrumb a:hover {
            color: var(--ep-purple);
        }

.ep-sep {
    margin: 0 6px;
    opacity: .4;
}

.ep-current {
    color: var(--ep-dark);
    font-weight: 600;
}

/* HERO */
.ep-hero {
    background: linear-gradient(135deg, var(--ep-purple-dark) 0%, var(--ep-purple) 55%, var(--ep-purple-mid) 100%);
    padding: 28px 0 0;
    position: relative;
    overflow: hidden;
}

    .ep-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle at 80% 50%, rgba(71,178,228,.18), transparent 60%), repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px, transparent 1px, transparent 12px);
    }

.ep-hero-inner {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.ep-hero-flag {
    width: 60px;
    height: 42px;
    border-radius: 7px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.35);
    flex-shrink: 0;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

    .ep-hero-flag img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.ep-hero-text {
    padding-bottom: 20px;
}

.ep-hero-eye {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,.65);
    margin-bottom: 5px;
}

.ep-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.3px;
    line-height: 1.1;
    margin: 0;
}

    .ep-hero-title span {
        color: #c8aaff;
    }

.ep-hero-pills {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.ep-pill {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,.13);
    color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.2);
}

.ep-pill-green {
    background: rgba(72,199,142,.2);
    color: #86efac;
    border-color: rgba(72,199,142,.35);
}

/* PAGE GRID */
.ep-page {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
    padding: 32px 0;
}

.ep-left {
    display: flex;
    flex-direction: column;
}

.ep-mt {
    margin-top: 20px;
}

/* CARD */
.ep-card {
    background: var(--ep-white);
    border-radius: 14px;
    border: 1px solid var(--ep-line);
    padding: 26px;
    box-shadow: 0 2px 14px rgba(107,63,160,.06);
}

/* MATRIX LABELS */
.ep-matrix-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ep-muted);
    margin-bottom: 10px;
}

/* CHIP ROWS */
.ep-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

/* ── CHIPS ──
   CRITICAL: NO pointer-events:none on disabled chips.
   Delegation handles blocking — opacity only for visual feedback.
*/
.ep-chip {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--ep-line);
    background: var(--ep-white);
    font-size: 13px;
    font-weight: 600;
    color: var(--ep-mid);
    cursor: pointer;
    transition: var(--ep-trans);
    user-select: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .ep-chip:hover:not(.ep-chip-disabled):not(.active) {
        background: #f0ebfa;
        border-color: var(--ep-purple);
        color: var(--ep-purple);
    }

    .ep-chip.active {
        background: var(--ep-purple);
        border-color: var(--ep-purple);
        color: #fff;
        box-shadow: 0 3px 10px rgba(107,63,160,.3);
    }

        .ep-chip.active:hover {
            background: var(--ep-purple-mid);
            color: #fff !important;
        }

    /* Disabled: opacity only — pointer-events intentionally NOT set to none */
    .ep-chip.ep-chip-disabled {
        opacity: .28;
        cursor: default;
    }

    /* Unavailable: data chip exists but not valid for current day selection — dimmed but clickable */
    .ep-chip.ep-chip-unavailable {
        opacity: .40;
    }

.ep-badge {
    background: #f97316;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    white-space: nowrap;
    pointer-events: none;
}

/* RESULT STRIP */
.ep-result {
    margin-top: 4px;
    padding: 18px 20px;
    background: var(--ep-purple-pale);
    border: 1.5px solid #d5c6f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    transition: var(--ep-trans);
}

.ep-result-empty {
    justify-content: center;
}

.ep-result-ph {
    font-size: 13px;
    color: var(--ep-muted);
    text-align: center;
}

.ep-result-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ep-purple-mid);
    margin-bottom: 4px;
}

.ep-result-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ep-dark);
}

.ep-result-sub {
    font-size: 12px;
    color: var(--ep-muted);
    margin-top: 2px;
}

.ep-result-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--ep-purple);
    white-space: nowrap;
}

/* FAIR USE */
.ep-fair-use {
    margin-top: 14px;
    padding: 14px 16px;
    background: #fff8f0;
    border: 1px solid #fbd38d;
    border-radius: 10px;
    font-size: 12px;
    color: #7b4a00;
    line-height: 1.7;
}

/* TABS */
.ep-tab-nav {
    display: flex;
    border-bottom: 2px solid var(--ep-line);
    overflow-x: auto;
}

    .ep-tab-nav::-webkit-scrollbar {
        display: none;
    }

.ep-tab-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--ep-muted);
    cursor: pointer;
    transition: var(--ep-trans);
    white-space: nowrap;
    position: relative;
}

    .ep-tab-btn.active {
        color: var(--ep-purple);
    }

        .ep-tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--ep-purple);
            border-radius: 2px 2px 0 0;
        }

.ep-tab-pane {
    display: none;
    padding: 18px 0 4px;
    font-size: 13px;
    color: var(--ep-mid);
    line-height: 1.8;
}

    .ep-tab-pane.active {
        display: block;
    }

    .ep-tab-pane a {
        color: var(--ep-purple);
    }

    .ep-tab-pane p + p {
        margin-top: 10px;
    }

.ep-benefit-h {
    font-size: 15px;
    font-weight: 700;
    margin: 14px 0 6px;
    color: var(--ep-dark);
}

.ep-link-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    border-radius: 6px;
    border: 2px solid var(--ep-purple);
    color: var(--ep-purple);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--ep-trans);
}

    .ep-link-btn:hover {
        background: var(--ep-purple);
        color: #fff;
    }

/* HOW IT WORKS */
.ep-hiw-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--ep-dark);
    margin-bottom: 20px;
}

.ep-hiw {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.ep-hiw-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ep-hiw-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ep-purple-light);
    border: 1.5px solid #c5aee8;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--ep-purple);
}

.ep-hiw-t {
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-dark);
}

.ep-hiw-d {
    font-size: 12px;
    color: var(--ep-muted);
    line-height: 1.5;
}

/* ORDER CARD */
.ep-right {
    position: sticky;
    top: 20px;
}

.ep-order-card {
    background: var(--ep-white);
    border-radius: 14px;
    border: 1px solid var(--ep-line);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(107,63,160,.10);
}

.ep-oc-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ep-dark);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ep-line);
    margin-bottom: 18px;
}

.ep-oc-box {
    background: var(--ep-purple-pale);
    border: 1.5px solid #d5c6f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ep-oc-empty {
    font-size: 13px;
    color: var(--ep-muted);
    text-align: center;
}

.ep-oc-data {
    font-size: 24px;
    font-weight: 800;
    color: var(--ep-dark);
    line-height: 1;
}

.ep-oc-dur {
    font-size: 12px;
    color: var(--ep-muted);
    margin-top: 3px;
}

.ep-oc-pr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.ep-oc-per {
    font-size: 12px;
    font-weight: 600;
    color: var(--ep-muted);
}

.ep-oc-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--ep-purple);
}

.ep-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ep-qty-lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--ep-mid);
}

.ep-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ep-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1.5px solid var(--ep-line);
    background: var(--ep-white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--ep-dark);
    transition: var(--ep-trans);
}

    .ep-qty-btn:hover {
        border-color: var(--ep-purple);
        color: var(--ep-purple);
    }

.ep-qty-val {
    font-size: 15px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.ep-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f6fc;
    border-radius: 8px;
    padding: 11px 14px;
    margin-bottom: 14px;
}

.ep-total-lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--ep-mid);
}

.ep-total-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--ep-dark);
}

.ep-buy-btn {
    width: 100%;
    padding: 14px;
    background: var(--ep-purple);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ep-trans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .ep-buy-btn:hover:not(:disabled) {
        background: var(--ep-purple-mid);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(107,63,160,.35);
    }

    .ep-buy-btn:disabled {
        background: #cbd5e1;
        color: #94a3b8;
        cursor: not-allowed;
        transform: none;
    }

@keyframes ep-spin {
    to {
        transform: rotate(360deg);
    }
}

.ep-spin {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ep-spin .7s linear infinite;
    display: none;
}

.ep-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: 14px;
}

.ep-trust-item {
    text-align: center;
    padding: 9px 4px;
    background: #f8f6fc;
    border-radius: 8px;
    border: 1px solid var(--ep-line);
}

.ep-trust-ico {
    font-size: 16px;
    margin-bottom: 2px;
}

.ep-trust-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--ep-mid);
    line-height: 1.3;
}

.ep-delivery-note {
    margin-top: 12px;
    padding: 10px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #065f46;
    font-weight: 500;
}

/* RESPONSIVE */
@media (max-width:960px) {
    .ep-page {
        grid-template-columns: 1fr;
    }

    .ep-right {
        position: static;
    }
}

@media (max-width:600px) {
    .ep-wrap {
        padding: 40px 16px;
    }

    .ep-hero-title {
        font-size: 22px;
    }

    .ep-hiw {
        grid-template-columns: 1fr;
    }

    .ep-chip {
        padding: 7px 13px;
        font-size: 12px;
    }

    .ep-page {
        padding: 20px 0;
    }
}
@media (max-width: 768px) {
    /* Hide the right sidebar order card on mobile */
    .ep-right {
        display: none;
    }

    /* Sticky buy bar */
    .ep-mobile-buy {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e8e4f0;
        box-shadow: 0 -4px 20px rgba(107,63,160,.12);
        padding: 12px 16px;
        z-index: 8000;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .ep-mobile-buy-info {
        flex: 1;
        min-width: 0;
    }

    .ep-mobile-buy-plan {
        font-size: 12px;
        color: #8a8aaa;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ep-mobile-buy-price {
        font-size: 18px;
        font-weight: 800;
        color: #1a1a2e;
    }

    .ep-mobile-buy-btn {
        background: linear-gradient(135deg, #6B3FA0, #8b5cf6);
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 13px 24px;
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
        box-shadow: 0 4px 14px rgba(107,63,160,.35);
        transition: all .18s ease;
        flex-shrink: 0;
    }

        .ep-mobile-buy-btn:disabled {
            background: #cbd5e1;
            color: #94a3b8;
            box-shadow: none;
            cursor: not-allowed;
        }

    /* Add padding so content doesn't hide behind sticky bar */
    .ep-wrap {
        padding-bottom: 80px;
    }
}

/* Hide sticky bar on desktop */
@media (min-width: 769px) {
    .ep-mobile-buy {
        display: none;
    }
}

@media (max-width: 991px) {
    .ep-breadcrumb {
        padding-top: 78px; /* mobile header is same height, slightly less gap */
    }
}

@media (max-width: 768px) {
    .ep-breadcrumb {
        padding-top: 0px;
    }
    .ep-hero-inner {
        padding-top: 16px;
        padding-bottom: 16px;
        gap: 12px;
    }

    .ep-hero-flag img {
        width: 64px;
        height: auto;
    }

    .ep-hero-eye {
        font-size: 11px;
    }

    .ep-hero-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .ep-hero-pills {
        gap: 6px;
        flex-wrap: wrap;
    }

    .ep-pill {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* Add to esim-chekout.css */
@media (max-width: 768px) {

    /* Hide right sidebar on mobile */
    .cc-right {
        display: none;
    }

    /* Add padding so content doesn't hide behind sticky bar */
    .cc-wrap {
        padding-bottom: 90px !important;
    }

    /* Sticky checkout bar */
    .cc-mobile-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e8e4f0;
        box-shadow: 0 -4px 20px rgba(107,63,160,.12);
        padding: 12px 16px;
        z-index: 8000;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .cc-mobile-bar-info {
        flex: 1;
        min-width: 0;
    }

    .cc-mobile-bar-label {
        font-size: 11px;
        color: #8a8aaa;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .cc-mobile-bar-total {
        font-size: 20px;
        font-weight: 800;
        color: #1a1a2e;
        line-height: 1.2;
    }

    .cc-mobile-bar-btn {
        background: linear-gradient(135deg, #6B3FA0, #8b5cf6);
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 13px 20px;
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
        box-shadow: 0 4px 14px rgba(107,63,160,.35);
        transition: all .18s ease;
        flex-shrink: 0;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .cc-mobile-bar-btn:hover {
            color: #fff;
            text-decoration: none;
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(107,63,160,.45);
        }

        .cc-mobile-bar-btn[disabled],
        .cc-mobile-bar-btn.disabled {
            background: #cbd5e1;
            color: #94a3b8;
            box-shadow: none;
            pointer-events: none;
        }
}

/* Hide bar on desktop */
@media (min-width: 769px) {
    .cc-mobile-bar {
        display: none;
    }
}
/* ── MOBILE CARD FIX — replaces previous mobile block ── */
@media (max-width: 600px) {

    /* Fix 1: box-sizing — padding must subtract, not add */
    .ep-card,
    .ep-order-card,
    .ep-result,
    .ep-chips-row {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }

    /* Fix 2: wrap tighter */
    .ep-wrap {
        padding: 30px 12px;
    }

    /* Fix 3: card padding down from 26px */
    .ep-card {
        padding: 16px 14px;
        border-radius: 10px;
    }

    /* Fix 4: page padding and gap */
    .ep-page {
        padding: 16px 0 80px;
        gap: 16px;
    }

    /* Fix 5: chips breathe but don't overflow */
    .ep-chips-row {
        gap: 6px;
        margin-bottom: 14px;
        flex-wrap: wrap;
    }

    .ep-chip {
        padding: 6px 11px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* Fix 6: result strip stacks instead of overflowing */
    .ep-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 14px;
        min-height: unset;
    }

    .ep-result-price {
        font-size: 22px;
    }

    /* Fix 7: how-it-works already 1-col at 600px — just tighten */
    .ep-hiw {
        gap: 12px;
    }
    .ep-result {
        padding: 12px 14px;
        min-height: unset;
        gap: 0;
        border-radius: 10px;
        flex-direction: row; /* ← force it back, overrides the earlier column rule */
        align-items: center;
    }

    .ep-result-label {
        font-size: 9px;
        letter-spacing: 0.8px;
        margin-bottom: 2px;
    }

    .ep-result-title {
        font-size: 14px;
        font-weight: 700;
    }

    .ep-result-sub {
        font-size: 11px;
        margin-top: 1px;
    }

    .ep-result-price {
        font-size: 20px;
        white-space: nowrap;
    }
}