/* eSIM store and order pages (/esim/, /en/esim/). Loaded after style.css and blog.css. */

.es-finder {
    max-width: 960px;
    margin: 0 auto 32px;
    padding: 28px;
    border-radius: 28px;
    /* Istanbul skyline (Unsplash, Spenser Sembrat) under a dark overlay */
    background:
        linear-gradient(180deg, rgba(11, 21, 48, 0.9) 0%, rgba(11, 21, 48, 0.78) 60%, rgba(11, 21, 48, 0.62) 100%),
        url('/assets/esim-istanbul.jpg') center 80% / cover no-repeat,
        #0b1530;
    color: white;
}

.es-where {
    display: block;
    font: 700 20px 'Outfit', sans-serif;
    margin-bottom: 12px;
}

#esCountry {
    width: 100%;
    font: 500 17px 'DM Sans', sans-serif;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

#esCountry::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.es-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.es-chip {
    font: 600 13px 'DM Sans', sans-serif;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
}

.es-chip:hover {
    background: rgba(255, 255, 255, 0.16);
}

.es-msg {
    min-height: 20px;
    margin: 12px 0 0;
    font-size: 14px;
    color: #fcd34d;
}

.es-results,
.es-mine {
    max-width: 960px;
    margin: 0 auto 40px;
}

.es-results h2,
.es-mine h2 {
    font: 700 24px 'Outfit', sans-serif;
    margin-bottom: 16px;
}

.es-results h3 {
    font: 700 19px 'Outfit', sans-serif;
    margin: 28px 0 14px;
}

.es-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.es-plan {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--border-gray);
    border-radius: 18px;
    background: white;
}

.es-plan-main strong {
    display: block;
    font: 800 26px 'Outfit', sans-serif;
    color: var(--text-dark);
}

.es-plan-main span,
.es-plan-region,
.es-plan-start {
    font-size: 14px;
    color: var(--text-muted);
}

.es-plan-region {
    font-weight: 600;
    color: var(--rrugo-blue);
}

.es-plan-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
}

.es-price {
    font: 700 20px 'DM Sans', sans-serif;
}

.es-buy {
    font: 700 15px 'DM Sans', sans-serif;
    color: white;
    background: var(--rrugo-blue);
    border: 0;
    border-radius: 999px;
    padding: 9px 20px;
    cursor: pointer;
}

.es-buy:hover {
    filter: brightness(1.1);
}

.es-note,
.es-empty {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
}

.es-mine ul {
    padding-left: 18px;
}

.es-mine li {
    margin-bottom: 6px;
}

.es-steps {
    padding-left: 20px;
}

.es-steps li {
    margin-bottom: 12px;
}

.es-steps strong {
    display: block;
}

.es-faq {
    border-bottom: 1px solid var(--border-gray);
    padding: 14px 0;
}

.es-faq summary {
    font-weight: 700;
    cursor: pointer;
}

.es-faq p {
    margin: 10px 0 0;
}

.es-find {
    max-width: 960px;
    margin: 0 auto 40px;
    padding: 22px;
    border-radius: 20px;
    background: var(--light-gray);
}

.es-find h2 {
    font: 700 22px 'Outfit', sans-serif;
    margin: 0 0 6px;
}

.es-find-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.es-find-row input {
    flex: 1 1 220px;
    font: 500 16px 'DM Sans', sans-serif;
    padding: 11px 14px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    background: white;
}

.es-find-msg {
    min-height: 20px;
    margin: 10px 0 0;
    font-size: 14px;
}

/* Purchase dialog */
.es-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
}

.es-modal[hidden] {
    display: none;
}

.es-dialog {
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 24px;
    border-radius: 22px;
    background: white;
}

.es-dialog h2 {
    font: 700 22px 'Outfit', sans-serif;
    margin: 0 0 10px;
}

.es-picked {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--light-gray);
    margin-bottom: 16px;
    font-size: 15px;
}

.es-dialog label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.es-dialog input[type="email"] {
    width: 100%;
    font: 500 16px 'DM Sans', sans-serif;
    padding: 12px 14px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
}

.es-dialog small {
    display: block;
    color: var(--text-muted);
    margin: 6px 0 14px;
}

.es-dialog .es-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
    font-size: 14px;
}

.es-check input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex: none;
}

.es-error {
    min-height: 20px;
    color: #dc2626;
    font-size: 14px;
    margin: 10px 0;
}

.es-pay {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    font: 700 17px 'DM Sans', sans-serif;
    color: white;
    background: var(--rrugo-blue);
    border: 0;
    border-radius: 999px;
    padding: 14px;
    cursor: pointer;
}

.es-pay:disabled {
    opacity: 0.7;
    cursor: wait;
}

.es-cancel {
    display: block;
    width: 100%;
    margin-top: 8px;
    font: 600 15px 'DM Sans', sans-serif;
    color: var(--text-muted);
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
}

.es-secure {
    font-size: 13px;
    color: var(--text-muted);
    margin: 8px 0 0;
}

.es-secure.es-guarantee {
    color: var(--text-dark);
    font-weight: 600;
}

/* Order page */
.es-order h1 {
    font: 800 30px 'Outfit', sans-serif;
    margin: 8px 0 12px;
}

.es-order-plan {
    font-size: 17px;
}

.es-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 14px;
}

.es-save,
.es-small {
    color: var(--text-muted);
    font-size: 14px;
}

.es-partner-line {
    margin-top: 28px;
}

.es-ios {
    max-width: 320px;
    margin-top: 16px;
}

.es-qr {
    display: block;
    width: 220px;
    height: 220px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
}

.es-codes > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.es-codes span {
    width: 100%;
    font-size: 13px;
    color: var(--text-muted);
}

.es-codes code {
    flex: 1;
    min-width: 0;
    word-break: break-all;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--light-gray);
    font-size: 14px;
}

.es-copy {
    font: 600 13px 'DM Sans', sans-serif;
    color: var(--rrugo-blue);
    background: #eef4ff;
    border: 0;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
}

.es-usage {
    margin-top: 20px;
}

.es-bar {
    height: 10px;
    border-radius: 999px;
    background: var(--light-gray);
    overflow: hidden;
}

.es-bar i {
    display: block;
    height: 100%;
    background: var(--rrugo-blue);
}

@media (max-width: 600px) {
    .es-finder {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .es-plans {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .es-plan {
        padding: 14px;
    }

    .es-plan-main strong {
        font-size: 22px;
    }

    .es-plan-buy {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .es-buy {
        width: 100%;
    }
}

/* Filters */
.es-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 20px;
}

.es-filters[hidden] {
    display: none;
}

.es-filter > span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.es-seg {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.es-seg button {
    font: 600 13px 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
}

.es-seg button.on {
    color: white;
    background: var(--rrugo-blue);
    border-color: var(--rrugo-blue);
}

.es-plan-pergb {
    font-size: 13px;
    color: var(--text-muted);
}

.es-buy.is-added {
    background: var(--success-green);
}

/* Floating cart */
.es-cartbtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--rrugo-blue);
    color: white;
    font: 700 16px 'DM Sans', sans-serif;
    box-shadow: 0 10px 30px rgba(30, 98, 207, 0.35);
    cursor: pointer;
}

.es-cartbtn[hidden] {
    display: none;
}

.es-cartbtn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.es-cartcount {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: white;
    color: var(--rrugo-blue);
    font-size: 13px;
    line-height: 22px;
    text-align: center;
}

.es-cartbtn.bump {
    animation: es-bump 0.35s ease;
}

@keyframes es-bump {
    50% { transform: scale(1.08); }
}

.es-cartlist {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.es-cartlist li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-gray);
}

.es-ci-info {
    flex: 1 1 180px;
}

.es-ci-info strong {
    display: block;
}

.es-ci-info span,
.es-ci-empty {
    font-size: 14px;
    color: var(--text-muted);
}

.es-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.es-qty button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-gray);
    background: white;
    font: 700 18px 'DM Sans', sans-serif;
    line-height: 1;
    cursor: pointer;
}

.es-ci-remove {
    font: 600 13px 'DM Sans', sans-serif;
    color: #dc2626;
    background: none;
    border: 0;
    cursor: pointer;
}

.es-carttotalrow {
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    margin: 12px 0 18px;
}

/* Order page with several eSIMs */
.es-esim {
    padding: 18px 0;
    border-top: 1px solid var(--border-gray);
}

.es-num {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--rrugo-blue);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .es-cartbtn {
        left: 16px;
        right: 16px;
        bottom: 16px;
        justify-content: center;
    }

    .es-filters {
        gap: 10px;
    }
}

body.es-has-cart {
    padding-bottom: 84px;
}

@media (max-width: 600px) {
    .es-filters {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .es-filter {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .es-filter > span {
        flex: none;
        width: 84px;
        margin: 0;
        font-size: 11px;
    }

    .es-seg {
        flex: 1;
        min-width: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .es-seg::-webkit-scrollbar {
        display: none;
    }

    .es-seg button {
        flex: none;
        white-space: nowrap;
    }
}

/* Filter toolbar with dropdowns (replaces the pill rows above) */
.es-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-gray);
}

.es-toolbar[hidden] {
    display: none;
}

.es-toolbar-filters,
.es-toolbar-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.es-select {
    appearance: none;
    -webkit-appearance: none;
    font: 600 14px 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--border-gray);
    border-radius: 999px;
    padding: 9px 34px 9px 14px;
    cursor: pointer;
}

.es-select:hover {
    border-color: #94a3b8;
}

.es-select.on {
    color: var(--rrugo-blue);
    border-color: var(--rrugo-blue);
    background-color: #eef4ff;
}

.es-clear {
    font: 600 14px 'DM Sans', sans-serif;
    color: var(--rrugo-blue);
    background: none;
    border: 0;
    padding: 6px 4px;
    cursor: pointer;
    text-decoration: underline;
}

.es-count {
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .es-toolbar,
    .es-toolbar-sort {
        width: 100%;
    }

    .es-toolbar-filters {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .es-toolbar-filters .es-select {
        min-width: 0;
        width: 100%;
        padding-left: 12px;
        padding-right: 28px;
        background-position: right 9px center;
        font-size: 13px;
    }

    .es-clear {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .es-toolbar-sort {
        justify-content: space-between;
    }
}

/* All countries A-Z */
.es-all {
    max-width: 960px;
    margin: 0 auto 40px;
}

.es-all h2 {
    font: 700 24px 'Outfit', sans-serif;
    margin-bottom: 6px;
}

.es-all-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    column-gap: 24px;
}

.es-all-list li {
    break-inside: avoid;
    padding: 5px 0;
}

.es-all-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
}

.es-all-list a:hover {
    color: var(--rrugo-blue);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .es-all-list {
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
    }
}

/* Promo code in the cart */
.es-promo {
    margin: 4px 0 6px;
}

.es-promo label {
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

.es-promo-row {
    display: flex;
    gap: 8px;
}

.es-promo-row input {
    flex: 1;
    min-width: 0;
    font: 600 15px 'DM Sans', sans-serif;
    text-transform: uppercase;
    padding: 10px 12px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
}

.es-promo-btn {
    font: 700 14px 'DM Sans', sans-serif;
    color: var(--rrugo-blue);
    background: #eef4ff;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    cursor: pointer;
}

.es-promo-msg {
    min-height: 18px;
    margin: 6px 0 0;
    font-size: 13px;
}

.es-promo-msg.ok {
    color: #15803d;
}

.es-promo-msg.bad {
    color: #dc2626;
}

.es-discountrow {
    margin: 4px 0 0;
    color: #15803d;
}

/* Destination landing pages */
.es-dest {
    max-width: 960px;
    margin: 0 auto 40px;
}

.es-dest h2 {
    font: 700 24px 'Outfit', sans-serif;
    margin-bottom: 8px;
}

.es-dest-net {
    color: var(--text-muted);
}

.es-dest-table {
    width: 100%;
    border-collapse: collapse;
}

.es-dest-table th,
.es-dest-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-gray);
}

/* Welcome offer banner */
.es-offer {
    margin: 16px 0 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
    font-size: 14px;
}

.es-offer[hidden] {
    display: none;
}

.es-offer strong {
    color: white;
}

/* Country flags */
.es-flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 7px;
    vertical-align: -2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.es-flag-lg {
    width: 36px;
    height: 27px;
    margin-right: 12px;
    vertical-align: -1px;
    border-radius: 4px;
}

.es-chip .es-flag {
    width: 18px;
    height: 13px;
    margin-right: 6px;
}

/* Data left + refresh on the order page */
.es-usage {
    margin: 14px 0 6px;
    padding: 16px;
    border-radius: 16px;
    background: var(--light-gray);
}

.es-usage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.es-left-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.es-left {
    font: 800 30px 'Outfit', sans-serif;
    color: var(--text-dark);
}

.es-refresh {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-gray);
    background: white;
    color: var(--rrugo-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.es-refresh svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.es-refresh.spin svg {
    animation: es-spin 0.9s linear infinite;
}

@keyframes es-spin {
    to { transform: rotate(360deg); }
}

.es-usage p {
    margin: 8px 0 0;
}

/* Buttons that are links inside articles keep their own colours (blog link styles make them blue on blue). */
.post a.es-pay,
.post a.es-pay:hover {
    color: white;
    text-decoration: none;
}

.es-usage .es-bar {
    background: var(--border-gray);
}

.es-demo {
    padding: 10px 14px;
    border-radius: 12px;
    background: #fef3c7;
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
}

/* Countries: top destinations, then a folded A-Z list */
.es-all-sub {
    font: 700 17px 'Outfit', sans-serif;
    margin: 20px 0 10px;
}

.es-top-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.es-top-list a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
}

.es-top-list a:hover {
    border-color: var(--rrugo-blue);
    color: var(--rrugo-blue);
}

.es-all-wrap {
    position: relative;
}

.es-all-wrap.is-folded {
    max-height: 190px;
    overflow: hidden;
}

.es-all-wrap.is-folded::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 90%);
    pointer-events: none;
}

.es-all-more {
    display: block;
    margin: 12px auto 0;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--border-gray);
    background: white;
    color: var(--rrugo-blue);
    font: 700 15px 'DM Sans', sans-serif;
    cursor: pointer;
}

.es-all-more:hover {
    border-color: var(--rrugo-blue);
}

@media (max-width: 600px) {
    .es-top-list {
        grid-template-columns: 1fr 1fr;
    }

    .es-top-list a {
        font-size: 14px;
        padding: 9px 10px;
    }
}

/* Compatibility row and features */
.es-compat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
}

.es-compat-row svg,
.es-feats svg {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: var(--rrugo-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.es-compat-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 20px;
}

.es-feats {
    list-style: none;
    padding: 16px;
    margin: 22px 0 0;
    border-radius: 16px;
    background: var(--light-gray);
}

.es-feats li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 5px 0;
    font-size: 15px;
}

/* Selectable plans (radio mark and sticky buy bar on phones) */
.es-plan[data-sel] {
    cursor: pointer;
}

.es-radio,
.es-buybar {
    display: none;
}

@media (max-width: 600px) {
    .es-plans {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .es-plan {
        display: grid;
        grid-template-columns: 22px 1fr auto;
        align-items: center;
        column-gap: 12px;
        row-gap: 2px;
        padding: 14px 16px;
        border-width: 1.5px;
    }

    .es-plan.is-sel {
        border-color: var(--rrugo-blue);
        background: #eef4ff;
    }

    .es-radio {
        display: block;
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 2px solid var(--border-gray);
    }

    .es-plan.is-sel .es-radio {
        border-color: var(--rrugo-blue);
        background: radial-gradient(circle, var(--rrugo-blue) 0 5px, transparent 6px);
    }

    .es-plan-main {
        grid-column: 2;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .es-plan-main strong {
        font-size: 20px;
    }

    .es-plan-region,
    .es-plan-start {
        grid-column: 2;
        font-size: 13px;
    }

    .es-plan-pergb {
        display: none;
    }

    .es-plan-buy {
        grid-column: 3;
        grid-row: 1 / span 3;
        padding: 0;
        margin: 0;
        flex-direction: row;
    }

    .es-plan-buy .es-buy {
        display: none;
    }

    .es-price {
        font-size: 19px;
    }

    .es-buybar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1400;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
    }

    .es-buybar[hidden],
    .es-buybar.is-off {
        display: none;
    }

    .es-buybar-btn {
        width: 100%;
        padding: 15px;
        border: 0;
        border-radius: 999px;
        background: var(--rrugo-blue);
        color: white;
        font: 700 16px 'DM Sans', sans-serif;
        cursor: pointer;
    }

    .es-cartbtn {
        bottom: 86px;
    }

    body {
        padding-bottom: 84px;
    }
}

.es-dest-details {
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    padding: 12px 16px;
}

.es-dest-details summary {
    cursor: pointer;
    font-weight: 700;
}

.es-dest-details[open] summary {
    margin-bottom: 10px;
}

/* Store landing: search row, ticks, flag stack */
.es-search-row {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.es-search-row #esCountry {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 10px 12px;
}

.es-search-row #esCountry:focus {
    outline: none;
}

.es-search-btn {
    flex: none;
    padding: 10px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--rrugo-blue);
    color: white;
    font: 700 15px 'DM Sans', sans-serif;
    cursor: pointer;
}

.es-ticks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 0;
    margin: 14px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.es-ticks li::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 6px;
    margin-right: 8px;
    border-left: 2px solid #4ade80;
    border-bottom: 2px solid #4ade80;
    transform: rotate(-45deg) translateY(-3px);
}

.es-flagstack {
    display: flex;
    align-items: center;
    margin-top: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.es-flagstack img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0b1530;
    margin-right: -8px;
}

.es-flagstack span {
    margin-left: 18px;
    font-weight: 600;
}

/* Round flags in cards */
.es-rflag {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
    flex: none;
}

/* Best offers carousel */
.es-offers,
.es-pop {
    max-width: 960px;
    margin: 0 auto 40px;
}

.es-offers h2,
.es-pop h2 {
    font: 700 24px 'Outfit', sans-serif;
    margin-bottom: 4px;
}

.es-offers > p {
    color: var(--text-muted);
    margin: 0 0 14px;
}

.es-offer-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.es-offer-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border-radius: 20px;
    background: #0b1530;
    color: white;
}

.es-offer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.es-tag {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 700;
}

.es-offer-name {
    font-weight: 700;
    font-size: 17px;
}

.es-offer-price {
    font: 800 26px 'Outfit', sans-serif;
}

.es-offer-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.es-offer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    color: #93c5fd;
}

.es-offer-btn {
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--rrugo-blue);
    color: white;
    font: 700 14px 'DM Sans', sans-serif;
    cursor: pointer;
}

/* Most searched destinations */
.es-pop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.es-pop-grid.is-folded .es-pop-extra {
    display: none;
}

.es-pop-card {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    grid-template-areas: "flag text price" "flag text go";
    align-items: center;
    column-gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 18px;
    color: var(--text-dark);
    text-decoration: none;
}

.es-pop-card:hover {
    border-color: var(--rrugo-blue);
}

.es-pop-card .es-rflag {
    grid-area: flag;
}

.es-pop-text {
    grid-area: text;
    display: flex;
    flex-direction: column;
}

.es-pop-text small,
.es-pop-price small {
    font-size: 12px;
    color: var(--text-muted);
}

.es-pop-text strong {
    font-size: 16px;
}

.es-pop-price {
    grid-area: price;
    text-align: right;
    font-weight: 800;
    font-size: 17px;
}

.es-pop-go {
    grid-area: go;
    justify-self: end;
    font-size: 13px;
    font-weight: 700;
    color: var(--rrugo-blue);
}

/* Offer cards: city photo behind, darkened towards the bottom so price and button stay readable */
.es-offer-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.es-offer-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.es-offer-card.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11, 21, 48, 0.3) 0%, rgba(11, 21, 48, 0.72) 42%, rgba(11, 21, 48, 0.94) 100%);
}

.es-offer-card.has-bg .es-offer-name,
.es-offer-card.has-bg .es-offer-price {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.es-offer-card.has-bg .es-offer-meta {
    color: rgba(255, 255, 255, 0.88);
}

.es-offer-card.has-bg .es-tag {
    background: rgba(11, 21, 48, 0.6);
    backdrop-filter: blur(4px);
}

.es-offer-card.has-bg .es-rflag {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
    border-radius: 50%;
}


/* Order page: add data (top-ups) */
.es-topup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 12px 0 4px;
    padding: 13px 16px;
    border: 1.5px solid var(--rrugo-blue);
    border-radius: 12px;
    background: #eff6ff;
    color: var(--rrugo-blue);
    font: 700 15px 'DM Sans', sans-serif;
    cursor: pointer;
}

.es-topup-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.es-topup-panel {
    margin: 12px 0 4px;
    padding: 16px;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #f8fafc;
}

.es-topup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.es-topup-head h3 {
    margin: 0;
    font-size: 17px;
}

.es-topup-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.es-topup-list {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.es-topup-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
}

.es-topup-row.is-on {
    border-color: var(--rrugo-blue);
    background: #eff6ff;
}

.es-topup-row input {
    accent-color: var(--rrugo-blue);
    width: 18px;
    height: 18px;
    margin: 0;
}

.es-topup-row span {
    flex: 1;
    color: #475569;
    font-size: 14px;
}

.es-topup-row span strong {
    margin-right: 6px;
    color: #0f172a;
    font-size: 16px;
}

.es-topup-row b {
    font-size: 16px;
}

.es-topup-pay {
    width: 100%;
    margin-top: 4px;
}

.es-topup-state {
    margin: 10px 0 0;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.es-topup-state.is-busy {
    background: #fef9c3;
    color: #854d0e;
}

.es-topup-state.is-ok {
    background: #dcfce7;
    color: #166534;
}

.es-topup-state.is-bad {
    background: #fee2e2;
    color: #991b1b;
}
