:root {
    --gesim-orange: #F67C1E;
    --gesim-orange-dark: #FF6F00;
    --gesim-orange-light: #FFC77D;
    --gesim-text: #030202;
    --gesim-muted: #807A79;
    --gesim-border: rgba(246, 124, 30, 0.35);
    --gesim-bg-soft: #FFF8F2;
}

.global-esim-page {
    position: relative;
    min-height: calc(100vh - 80px);
    overflow-x: hidden;
}

.global-esim-hero {
    position: relative;
    min-height: calc(100vh - 80px);
    background: url('../img/mapimage.png') center/cover no-repeat;
    color: var(--gesim-text);
    padding: 100px 24px 120px;
    padding-right: min(440px, 42vw);
}

.global-esim-hero-inner {
    max-width: 640px;
}

.global-esim-hero h1 {
    font-family: Roboto, Inter, sans-serif;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gesim-text);
}

.global-esim-hero h1 .highlight {
    background: linear-gradient(141deg, #FFC77D 1.25%, #F67C1E 65%, #FF6F00 98%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.global-esim-hero .hero-sub {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gesim-muted);
    max-width: 520px;
}

.global-esim-order-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100vh;
    background: #fff;
    box-shadow: -6px 0 24px rgba(3, 2, 2, 0.08);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    padding: 24px 18px 28px;
    overflow-y: auto;
}

.global-esim-order-panel .panel-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gesim-text);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gesim-border);
}

.global-esim-stepper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.global-esim-stepper .step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gesim-muted);
    white-space: nowrap;
}

.global-esim-stepper .step.active {
    color: var(--gesim-orange-dark);
    background: var(--gesim-bg-soft);
    padding: 6px 12px;
    border-radius: 999px;
}

.global-esim-stepper .step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: #eee;
    color: var(--gesim-muted);
}

.global-esim-stepper .step.active .step-num {
    background: linear-gradient(91deg, #FFC77D, #F67C1E, #FF6F00);
    color: #fff;
}

.global-esim-stepper .step-line {
    flex: 1;
    min-width: 10px;
    height: 2px;
    background: #e8e4e2;
    margin: 0 6px;
}

.global-esim-plan-card {
    border: 2px solid var(--gesim-orange);
    border-radius: 14px;
    background: var(--gesim-bg-soft);
    padding: 18px 16px 0;
    margin-bottom: 16px;
}

.global-esim-plan-card .plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.global-esim-plan-card .plan-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gesim-text);
    margin: 0;
}

.global-esim-plan-card .plan-price .amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gesim-text);
    display: block;
}

.global-esim-plan-card .plan-price .duration {
    font-size: 0.82rem;
    color: var(--gesim-muted);
}

.global-esim-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.global-esim-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 9px;
    font-size: 0.88rem;
    color: var(--gesim-text);
}

.global-esim-features .bi-check-circle-fill {
    color: var(--gesim-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.global-esim-features a {
    color: var(--gesim-orange-dark);
    text-decoration: underline;
    cursor: pointer;
}

.global-esim-features .feature-sub {
    display: block;
    font-size: 0.74rem;
    font-style: italic;
    color: var(--gesim-muted);
    margin-top: 2px;
}

.global-esim-billing-toggle {
    margin: auto -16px 0;
    width: calc(100% + 32px);
    background: linear-gradient(91deg, #FFC77D 0%, #F67C1E 82%, #FF6F00 98%);
    color: #fff;
    border: none;
    border-radius: 0 0 12px 12px;
    padding: 13px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.global-esim-checkout-block {
    border: 1px solid #e8e4e2;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
}

.global-esim-checkout-block .block-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gesim-text);
    text-decoration: none;
}

.global-esim-checkout-block .block-row:hover {
    color: var(--gesim-orange-dark);
}

.global-esim-coupon-wrap {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.global-esim-coupon-wrap input {
    flex: 1;
    border: 1px solid #e8e4e2;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.88rem;
}

.global-esim-coupon-wrap .btn-apply-coupon {
    background: var(--gesim-orange);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.85rem;
}

.global-esim-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
}

.global-esim-legal {
    font-size: 0.72rem;
    color: var(--gesim-muted);
    line-height: 1.5;
    margin: 12px 0;
}

.global-esim-legal a {
    color: var(--gesim-orange-dark);
}

.global-esim-cta {
    margin-top: 8px;
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(91deg, #FFC77D 0%, #F67C1E 82%, #FF6F00 98%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 14px rgba(246, 124, 30, 0.35);
}

.global-esim-cta:hover {
    color: #fff;
    opacity: 0.95;
}

.global-esim-cta--dark {
    background: var(--gesim-text);
    box-shadow: 0 4px 14px rgba(3, 2, 2, 0.2);
}

.global-esim-empty {
    padding: 20px;
    background: #fff3cd;
    border-radius: 10px;
    color: #664d03;
    font-size: 0.9rem;
}

.global-esim-billing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 2, 2, 0.45);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.global-esim-billing-overlay.show {
    opacity: 1;
    visibility: visible;
}

.global-esim-billing-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 100%);
    height: 100vh;
    background: #fff;
    z-index: 1060;
    padding: 24px 18px;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.global-esim-billing-drawer.show {
    transform: translateX(0);
}

.global-esim-billing-drawer .drawer-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.global-esim-billing-options {
    border: 2px solid var(--gesim-border);
    border-radius: 12px;
    padding: 14px;
    background: var(--gesim-bg-soft);
}

.global-esim-billing-option input[type="radio"] {
    accent-color: var(--gesim-orange);
}

.global-esim-countries-modal .country-search {
    border-radius: 10px;
    border: 1px solid #e8e4e2;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.global-esim-countries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    max-height: 55vh;
    overflow-y: auto;
}

.global-esim-countries-grid .country-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.global-esim-countries-grid img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

@media (max-width: 991px) {
    .global-esim-hero {
        padding-right: 24px;
        padding-bottom: 32px;
        min-height: auto;
    }

    .global-esim-order-panel {
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: none;
        border-top: 1px solid #e8e4e2;
    }
}
