/* ============================================
   AmarSim Theme - Main CSS
   ============================================ */

:root {
    --am-yellow: #F5C518;
    --am-yellow-dark: #B8860B;
    --am-yellow-light: #FFFDE8;
    --am-yellow-bg: #FFFBF0;
    --am-yellow-border: #F0E8C8;
    --am-yellow-tag: #FEF3C7;
    --am-dark: #1A1200;
    --am-dark-2: #2A1F00;
    --am-text-primary: #111111;
    --am-text-secondary: #444444;
    --am-text-muted: #777777;
    --am-green: #22C55E;
    --am-border: #E8E8E8;
    --am-bg: #FFFFFF;
    --am-bg-soft: #FFFBF0;
}

/* ============================================
   GLOBAL
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--am-text-primary);
    background: #fff;
}

/* ============================================
   TOP NAVIGATION
   ============================================ */
.navbar.o_main_navbar,
#wrapwrap .navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--am-border) !important;
    padding: 10px 16px !important;
    box-shadow: none !important;
}

.navbar-brand {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--am-text-primary) !important;
    letter-spacing: -0.4px;
}

.navbar-brand span {
    color: var(--am-yellow-dark) !important;
}

/* Sign in button */
.navbar .btn-primary,
.navbar .o_login_btn {
    background: var(--am-yellow) !important;
    color: var(--am-text-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.am-hero {
    background: var(--am-bg-soft);
    padding: 24px 16px 28px;
    border-bottom: 1px solid var(--am-yellow-border);
}

.am-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 12px;
}

.am-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--am-yellow-tag);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: #7C5200;
    border: 1px solid var(--am-yellow);
    font-weight: 500;
}

.am-hero-tag.support {
    background: #ECFDF5;
    color: #065F46;
    border-color: #6EE7B7;
}

.am-dot-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--am-green);
    display: inline-block;
    flex-shrink: 0;
}

.am-hero-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--am-text-primary);
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.am-hero-title span {
    color: var(--am-yellow-dark);
}

.am-hero-sub {
    font-size: 12px;
    color: var(--am-text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
}

/* Search box */
.am-search-box {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--am-border);
    margin-bottom: 16px;
}

.am-search-box input {
    border: none !important;
    outline: none !important;
    font-size: 14px;
    color: var(--am-text-secondary);
    flex: 1;
    background: transparent;
    box-shadow: none !important;
}

.am-search-box input::placeholder {
    color: #AAAAAA;
}

.am-search-btn {
    background: var(--am-yellow) !important;
    color: var(--am-text-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 7px 14px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap;
}

/* How to use cards */
.am-howto-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.am-howto-title {
    font-size: 13px;
    font-weight: 500;
    color: #7C5200;
}

.am-howto-subtitle {
    font-size: 11px;
    color: var(--am-yellow-dark);
}

.am-howto-cards {
    display: flex;
    gap: 8px;
}

.am-howto-card {
    flex: 1;
    background: #fff;
    border: 1px solid var(--am-yellow-border);
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    align-items: flex-start;
    text-align: left;
}

.am-howto-card::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--am-yellow-dark);
    font-weight: 500;
    z-index: 1;
}

.am-howto-card:last-child::after {
    display: none;
}

.am-step-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.am-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--am-yellow);
    color: var(--am-text-primary);
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-step-text {
    font-size: 10px;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
}

.am-step-check-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 2px;
}

.am-step-check {
    font-size: 12px;
    color: var(--am-green);
    font-weight: 700;
    flex-shrink: 0;
}

.am-step-check-text {
    font-size: 9px;
    color: #888;
    line-height: 1.4;
}

/* ============================================
   REGION FILTER CHIPS
   ============================================ */
.am-section {
    padding: 14px 16px 0;
}

.am-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.am-section-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--am-text-primary);
}

.am-section-link {
    font-size: 13px;
    color: var(--am-yellow-dark);
    font-weight: 500;
    text-decoration: none;
}

.am-chips-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.am-chips-row::-webkit-scrollbar {
    display: none;
}

.am-chip {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    border: 1px solid var(--am-border);
    color: var(--am-text-secondary);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.am-chip:hover {
    border-color: var(--am-yellow);
    color: var(--am-text-primary);
}

.am-chip.active {
    background: var(--am-yellow);
    color: var(--am-text-primary);
    border-color: #D4A800;
}

/* ============================================
   COUNTRY GRID
   ============================================ */
.am-countries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.am-country-card {
    background: #fff;
    border: 1px solid var(--am-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.am-country-card:hover {
    border-color: var(--am-yellow);
    text-decoration: none;
}

.am-country-flag {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.am-country-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--am-text-primary);
    margin-bottom: 2px;
}

.am-country-price {
    font-size: 10px;
    color: var(--am-text-muted);
}

.am-pop-badge {
    display: inline-flex;
    background: var(--am-yellow-tag);
    color: #7C3A00;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 3px;
}

/* ============================================
   PHYSICAL SIM SECTION
   ============================================ */
.am-psim-banner {
    background: linear-gradient(135deg, #1A1200 0%, #2C2000 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #3A2D00;
}

.am-psim-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--am-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}

.am-psim-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.am-psim-desc {
    font-size: 10px;
    color: #AAA;
    line-height: 1.5;
    margin-bottom: 10px;
}

.am-psim-features {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.am-psim-feat {
    background: rgba(245, 197, 24, 0.15);
    color: var(--am-yellow);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    border: 0.5px solid rgba(245, 197, 24, 0.3);
}

.am-psim-btn {
    display: inline-flex;
    background: var(--am-yellow);
    color: var(--am-text-primary);
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.am-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.am-fb-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #E7F0FF;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    color: #1244A0;
    font-weight: 500;
    border: 1px solid #BDD3FF;
}

.am-review-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.am-review-scroll::-webkit-scrollbar {
    display: none;
}

.am-review-card {
    flex-shrink: 0;
    width: 240px;
    background: #fff;
    border: 1px solid var(--am-border);
    border-radius: 14px;
    padding: 14px;
}

.am-review-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.am-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.am-review-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--am-text-primary);
}

.am-review-date {
    font-size: 10px;
    color: var(--am-text-muted);
}

.am-review-fb-icon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: #1877F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.am-review-stars {
    color: #D4A800;
    font-size: 12px;
    margin-bottom: 6px;
}

.am-review-text {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
}

.am-review-tag {
    display: inline-flex;
    background: var(--am-yellow-tag);
    color: #7C3A00;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 10px;
    margin-top: 8px;
    border: 1px solid var(--am-yellow);
    font-weight: 500;
}

.am-review-likes {
    font-size: 10px;
    color: var(--am-text-muted);
    margin-top: 6px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.am-faq-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #F8F8F8;
    border: 1px solid var(--am-border);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.am-faq-item:hover {
    border-color: var(--am-yellow);
}

.am-faq-q {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.am-faq-arrow {
    font-size: 18px;
    color: var(--am-yellow-dark);
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.am-footer {
    background: var(--am-dark);
    padding: 32px 16px 24px;
    margin-top: 24px;
}

.am-footer-logo {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.am-footer-logo span {
    color: var(--am-yellow);
}

.am-footer-tagline {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.am-footer-tos {
    font-size: 12px;
    color: var(--am-yellow);
    text-decoration: underline;
    margin-bottom: 20px;
    display: inline-block;
    cursor: pointer;
}

.am-footer-divider {
    height: 0.5px;
    background: #333;
    margin-bottom: 16px;
}

.am-footer-section-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--am-yellow);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.am-contact-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.am-phone-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--am-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-phone-num {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
}

.am-phone-label {
    font-size: 10px;
    color: #888;
}

/* Facebook main block */
.am-fb-main {
    background: #1877F2;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid #4A9FFF;
}

.am-fb-main-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-fb-main-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 3px;
}

.am-fb-main-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.am-fb-main-btn {
    display: inline-flex;
    background: #fff;
    color: #1877F2;
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.am-fb-badge {
    display: inline-flex;
    background: var(--am-yellow);
    color: var(--am-dark);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 500;
    margin-left: 6px;
}

/* Social channels */
.am-channel-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.am-channel-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2A1F00;
    border-radius: 12px;
    padding: 10px 12px;
    border: 0.5px solid #3A2D00;
    text-decoration: none;
}

.am-channel-btn.fb {
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.4);
}

.am-channel-btn.ig {
    background: rgba(221, 42, 123, 0.15);
    border-color: rgba(221, 42, 123, 0.4);
}

.am-channel-name {
    font-size: 11px;
    font-weight: 500;
    color: #fff;
}

.am-channel-handle {
    font-size: 9px;
    color: #999;
}

.am-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.am-social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2A1F00;
    border-radius: 12px;
    padding: 10px 12px;
    border: 0.5px solid #3A2D00;
}

.am-social-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-social-name {
    font-size: 11px;
    font-weight: 500;
    color: #fff;
}

.am-social-handle {
    font-size: 10px;
    color: #999;
}

.am-footer-bottom {
    border-top: 0.5px solid #333;
    padding-top: 14px;
    text-align: center;
}

.am-footer-bottom-text {
    font-size: 11px;
    color: #555;
}

.am-footer-bottom-text span {
    color: var(--am-yellow);
}

/* ============================================
   BOTTOM NAV
   ============================================ */
.am-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 16px;
    border-top: 1px solid var(--am-border);
    background: #fff;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.am-bottom-nav.am-nav-hidden {
    transform: translateY(100%);
}

.am-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #444 !important;
}

.am-nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-nav-icon svg {
    stroke: #444 !important;
}

.am-nav-icon.active {
    background: var(--am-yellow);
}

.am-nav-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #444 !important;
}

.am-nav-label.active {
    color: var(--am-yellow-dark);
    font-weight: 500;
}

/* Add padding to page so content not hidden behind bottom nav */
#wrapwrap {
    padding-bottom: 70px;
}

/* ============================================
   DESKTOP RESPONSIVE
   ============================================ */
@media (min-width: 768px) {

    /* Hero */
    .am-hero {
        padding: 48px 0 52px;
    }
    .am-hero-title {
        font-size: 42px;
    }
    .am-hero-sub {
        font-size: 16px;
        max-width: 600px;
    }
    .am-search-box {
        max-width: 600px;
    }

    /* How to cards */
    .am-howto-cards {
        gap: 20px;
        max-width: 700px;
    }
    .am-howto-card {
        padding: 20px 16px;
    }
    .am-step-num {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .am-step-text {
        font-size: 13px;
    }

    /* Sections */
    .am-section {
        padding: 32px 0 0;
    }
    .am-section-title {
        font-size: 20px;
    }
    .am-section-link {
        font-size: 15px;
    }

    /* Chips */
    .am-chip {
        font-size: 14px;
        padding: 7px 18px;
    }

    /* Countries grid - 4 columns on desktop */
    .am-countries-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .am-country-flag {
        width: 44px;
        height: 44px;
        font-size: 26px;
    }
    .am-country-name {
        font-size: 14px;
    }
    .am-country-price {
        font-size: 12px;
    }

    /* Physical SIM */
    .am-psim-banner {
        padding: 28px 32px;
    }
    .am-psim-name {
        font-size: 20px;
    }
    .am-psim-desc {
        font-size: 14px;
    }
    .am-psim-icon {
        width: 64px;
        height: 64px;
        font-size: 30px;
    }

    /* Reviews */
    .am-review-card {
        width: 300px;
    }
    .am-review-text {
        font-size: 13px;
    }

    /* FAQ */
    .am-faq-q {
        font-size: 15px;
    }

    /* Footer */
    .am-footer {
        padding: 48px 0 32px;
    }
    .am-footer-logo {
        font-size: 28px;
    }
    .am-footer-tagline {
        font-size: 14px;
    }
    .am-phone-num {
        font-size: 22px;
    }
    .am-social-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .am-channel-row {
        max-width: 500px;
    }

    /* Hide bottom nav on desktop */
    .am-bottom-nav {
        display: none;
    }
    #wrapwrap {
        padding-bottom: 0;
    }
}

/* ============================================
   SHOP PAGE
   ============================================ */

/* Page header */
.am-shop-header {
    background: var(--am-bg-soft);
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--am-yellow-border);
}
.am-shop-breadcrumb {
    font-size: 11px;
    color: var(--am-text-muted);
    margin-bottom: 6px;
}
.am-shop-breadcrumb span { color: var(--am-yellow-dark); }

.am-shop-country-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.am-shop-flag {
    font-size: 28px;
    line-height: 1;
}
.am-shop-country-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--am-text-primary);
}
.am-shop-country-sub {
    font-size: 11px;
    color: var(--am-text-muted);
    margin-top: 2px;
}
.am-shop-count {
    font-size: 12px;
    color: var(--am-text-secondary);
}
.am-shop-count strong { color: var(--am-text-primary); }

/* Filter section */
.am-shop-filters {
    padding: 10px 16px 8px;
    background: #fff;
    border-bottom: 1px solid var(--am-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.am-type-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.am-type-btn {
    flex: 1;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 12px;
    border: 1px solid var(--am-border);
    color: var(--am-text-secondary);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    display: block;
}
.am-type-btn:hover { text-decoration: none; }
.am-type-btn.active {
    background: var(--am-dark);
    color: var(--am-yellow);
    border-color: var(--am-dark);
}
.am-quick-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: 8px;
}
.am-quick-filters::-webkit-scrollbar { display: none; }
.am-qf {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    border: 1px solid var(--am-border);
    color: var(--am-text-secondary);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.am-qf:hover { text-decoration: none; }
.am-qf.active {
    background: var(--am-yellow);
    color: var(--am-text-primary);
    border-color: #D4A800;
}
.am-adv-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--am-yellow);
    background: var(--am-yellow-tag);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #7C5200;
    width: 100%;
    text-align: left;
}
.am-adv-filter-count {
    margin-left: auto;
    background: var(--am-yellow);
    color: var(--am-text-primary);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 500;
}

/* Sort bar */
.am-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 16px;
    background: #F8F8F8;
    border-bottom: 1px solid var(--am-border);
}
.am-sort-label {
    font-size: 11px;
    color: var(--am-text-muted);
}
.am-sort-label strong { color: var(--am-text-primary); }
.am-sort-change {
    font-size: 11px;
    color: var(--am-yellow-dark);
    font-weight: 500;
    cursor: pointer;
}

/* Plan rows */
.am-plans-list {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.am-plan-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--am-border);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.1s;
}
.am-plan-row:hover { text-decoration: none; background: #FAFAFA; }
.am-plan-row:first-child { border-radius: 14px 14px 0 0; }
.am-plan-row:last-child { border-radius: 0 0 14px 14px; }
.am-plan-row:only-child { border-radius: 14px; }
.am-plan-row + .am-plan-row { border-top: none; }
.am-plan-row.am-featured {
    background: #FFFDE8;
    border-color: var(--am-yellow);
}
.am-plan-row.am-featured + .am-plan-row {
    border-top: 1px solid var(--am-border);
}

.am-plan-flag {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.am-plan-body { flex: 1; min-width: 0; }
.am-plan-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.am-plan-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--am-text-primary);
}
.am-plan-type {
    display: inline-flex;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 500;
    flex-shrink: 0;
}
.am-plan-type.data { background: #DCFCE7; color: #166534; }
.am-plan-type.daily { background: #EDE9FE; color: #5B21B6; }

.am-plan-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.am-plan-tag {
    display: inline-flex;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 500;
}
.am-plan-tag.popular { background: #FEF3C7; color: #854D0E; }
.am-plan-tag.economy { background: #F0F9FF; color: #075985; }
.am-plan-tag.bigdata { background: #FFF7ED; color: #9A3412; }
.am-plan-tag.longtime { background: #F0FDF4; color: #166534; }
.am-plan-tag.topup { background: #ECFDF5; color: #065F46; }

.am-plan-network {
    font-size: 10px;
    color: var(--am-text-muted);
}
.am-plan-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.am-plan-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--am-text-primary);
    white-space: nowrap;
}
.am-plan-btn {
    background: var(--am-yellow);
    color: var(--am-text-primary);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}
.am-plan-btn:hover { text-decoration: none; }

/* Filter modal */
.am-filter-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    border-top: 1px solid var(--am-border);
    padding: 16px;
    z-index: 1050;
    transition: transform 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}
.am-filter-modal.open {
    transform: translateX(-50%) translateY(0);
}
.am-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    display: none;
}
.am-filter-overlay.open { display: block; }
.am-modal-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #DDD;
    margin: 0 auto 16px;
}
.am-modal-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--am-text-primary);
    margin-bottom: 16px;
}
.am-modal-section { margin-bottom: 16px; }
.am-modal-section-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--am-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.am-modal-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.am-modal-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--am-border);
    color: var(--am-text-secondary);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
}
.am-modal-chip.active {
    background: var(--am-yellow);
    color: var(--am-text-primary);
    border-color: #D4A800;
}
.am-modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-bottom: 20px;
}
.am-modal-reset {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--am-border);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: var(--am-text-secondary);
    cursor: pointer;
    background: #fff;
}
.am-modal-apply {
    flex: 2;
    padding: 12px;
    border-radius: 10px;
    background: var(--am-yellow);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: var(--am-text-primary);
    cursor: pointer;
    border: none;
}

@media (min-width: 768px) {
    .am-shop-filters { position: relative; top: auto; }
    .am-plans-list { padding: 16px; gap: 2px; }
    .am-plan-name { font-size: 14px; }
    .am-plan-price { font-size: 18px; }
}

/* SEARCH AUTOCOMPLETE */
.am-search-wrap { position: relative; margin-bottom: 14px; }
.am-search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--am-border);
    border-radius: 12px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: none;
}
.am-search-suggestions.open { display: block; }
.am-suggestion-section {
    padding: 8px 14px;
    font-size: 10px;
    font-weight: 500;
    color: var(--am-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #FAFAFA;
    border-bottom: 1px solid var(--am-border);
    position: sticky;
    top: 0;
}
.am-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #F0F0F0;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}
.am-suggestion:hover, .am-suggestion.am-active {
    background: var(--am-yellow-tag);
    text-decoration: none;
}
.am-suggestion:last-child { border-bottom: none; }
.am-suggestion-flag {
    font-size: 22px;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}
.am-suggestion-info { flex: 1; min-width: 0; }
.am-suggestion-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--am-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.am-suggestion-sub {
    font-size: 10px;
    color: var(--am-text-muted);
    margin-top: 1px;
}
.am-suggestion-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--am-text-muted);
    font-size: 12px;
}

/* ============================================
   SHOP FILTERS V2 — UNIFIED COMPACT BOX
   ============================================ */
.am-shop-header {
    padding: 14px 16px;
    background: var(--am-bg-soft);
    border-bottom: 1px solid var(--am-yellow-border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.am-shop-flag {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}
.am-shop-info {
    flex: 1;
    min-width: 0;
}
.am-shop-breadcrumb {
    font-size: 10px;
    color: var(--am-text-muted);
    margin-bottom: 2px;
}
.am-shop-breadcrumb span,
.am-shop-breadcrumb a {
    color: var(--am-yellow-dark);
    text-decoration: none;
}
.am-shop-country-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--am-text-primary);
    line-height: 1.2;
}
.am-shop-country-sub {
    font-size: 10px;
    color: var(--am-text-secondary);
    margin-top: 2px;
}
.am-shop-count-pill {
    background: #fff;
    border: 1px solid var(--am-yellow-border);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
    color: #7C5200;
    flex-shrink: 0;
    white-space: nowrap;
}

.am-shop-filters {
    background: #fff;
    border-bottom: 1px solid var(--am-border);
    padding: 12px 14px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.am-filter-section {
    margin-bottom: 10px;
}
.am-filter-section:last-child {
    margin-bottom: 0;
}
.am-filter-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--am-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.am-filter-label-sm {
    font-size: 9px;
    font-weight: 500;
    color: var(--am-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.am-type-segmented {
    display: flex;
    gap: 4px;
    background: #F5F5F5;
    border-radius: 10px;
    padding: 3px;
}
.am-type-btn {
    flex: 1;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--am-text-secondary);
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s;
    border: none;
}
.am-type-btn:hover { text-decoration: none; }
.am-type-btn.active {
    background: var(--am-dark);
    color: var(--am-yellow);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.am-quick-filters {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.am-quick-filters::-webkit-scrollbar { display: none; }
.am-qf {
    flex-shrink: 0;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    border: 1px solid var(--am-border);
    color: var(--am-text-secondary);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}
.am-qf:hover { text-decoration: none; }
.am-qf.active {
    background: var(--am-yellow);
    color: var(--am-text-primary);
    border-color: #D4A800;
}

.am-filter-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.am-col-chips {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.am-col-chips::-webkit-scrollbar { display: none; }
.am-small-chip {
    flex-shrink: 0;
    padding: 4px 9px;
    border-radius: 14px;
    font-size: 10px;
    border: 1px solid var(--am-border);
    color: var(--am-text-secondary);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}
.am-small-chip:hover { text-decoration: none; }
.am-small-chip.active {
    background: var(--am-yellow);
    color: var(--am-text-primary);
    border-color: #D4A800;
}

/* CHECKOUT — minimal address form */
.o_wsale_address_fill .row > div[style*="display: none"],
.o_wsale_address_fill .row > div[style*="display:none"] {
    display: none !important;
}

/* Auto-fill required fields with placeholders to satisfy validation */
.o_wsale_address_fill input[name='name'],
.o_wsale_address_fill input[name='street'],
.o_wsale_address_fill input[name='city'],
.o_wsale_address_fill input[name='zip'] {
    /* These will be filled via JS to satisfy Odoo validation */
}

/* CHECKOUT — hide unnecessary fields, show only email + phone */
#div_name,
#div_company_name,
#div_vat,
#div_street,
#div_street2,
#div_city,
#div_zip,
#div_country,
#div_state {
    display: none !important;
}

/* Make email and phone full width */
#div_email,
#div_phone {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* ============================================
   ESIM DETAIL PAGE
   ============================================ */
.am-esim-page {
    background: #FFFBF0 !important;
    min-height: 100vh;
    padding: 16px 0 80px;
    font-family: 'Inter', sans-serif !important;
}

.am-esim-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.am-esim-success-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #DCFCE7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.am-esim-info { flex: 1; }
.am-esim-title {
    font-size: 16px;
    font-weight: 500;
    color: #111;
    line-height: 1.2;
}
.am-esim-meta {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.am-order-pill {
    background: #FEF3C7;
    color: #7C5200;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 9px;
    font-weight: 500;
}

.am-plan-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    margin: 0 16px 8px;
    border-radius: 14px;
    border: 1px solid #F0E8C8;
}
.am-plan-flag-mini {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px !important;
    flex-shrink: 0;
}
.am-plan-info-mini { flex: 1; min-width: 0; }
.am-plan-name-mini {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111;
}
.am-plan-desc-mini {
    font-size: 13px !important;
    color: #888;
}
.am-plan-status-mini {
    background: #DCFCE7;
    color: #166534;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px !important;
    font-weight: 500;
}

.am-esim-card {
    background: #fff;
    margin: 8px 16px;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #F0E8C8;
}
.am-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.am-card-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #F5C518;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.am-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #111;
}

/* Yellow buttons */
button.am-btn-yellow,
a.am-btn-yellow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background-color: #F5C518 !important;
    color: #111111 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 11px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}
button.am-btn-yellow svg,
a.am-btn-yellow svg {
    width: 14px !important;
    height: 14px !important;
    stroke: #111 !important;
    fill: none !important;
}
button.am-btn-yellow.loading {
    background-color: #F5F0E8 !important;
    color: #999 !important;
    cursor: wait !important;
}
button.am-btn-yellow.loading::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid #F5C518;
    border-top-color: transparent;
    border-radius: 50%;
    animation: amSpin 0.8s linear infinite;
}
@keyframes amSpin { to { transform: rotate(360deg); } }
button.am-btn-yellow.loading .am-btn-text { display: none; }
button.am-btn-yellow.loading::after { content: 'Шалгаж байна...'; font-size: 11px; color: #999; }

/* Install card */
.am-install-card {
    background: linear-gradient(135deg, #1A1200 0%, #2C2000 100%) !important;
    border: 1.5px solid #F5C518 !important;
}
.am-install-card .am-card-title { color: #fff; }
.am-tabs {
    display: flex;
    gap: 4px;
    background: rgba(245,197,24,0.15);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 12px;
}
.am-tab {
    flex: 1;
    padding: 7px;
    border-radius: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.am-tab.active {
    background: #F5C518;
    color: #111;
}
.am-tab svg { width: 12px; height: 12px; }
.am-tab-content { display: none; }
.am-tab-content.active { display: block; }
.am-tab-info {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    line-height: 1.5;
}
.am-tab-info strong { color: #F5C518; }
.am-btn-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    text-align: center;
    margin-top: 6px;
}

/* QR card */
.am-qr-card {
    background: linear-gradient(135deg, #FFFBF0 0%, #FEF3C7 100%) !important;
    border: 1.5px solid #F5C518 !important;
}
.am-qr-display {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.am-qr-code-wrap {
    width: 130px;
    height: 130px;
    margin: 0 auto 10px;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    border: 1px solid #eee;
}
.am-qr-img {
    width: 100%;
    height: 100%;
    display: block;
}
.am-qr-label-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.am-qr-label {
    font-size: 11px;
    color: #666;
}
.am-qr-download {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background-color: #F5C518 !important;
    color: #111 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
}
.am-qr-download svg { width: 11px; height: 11px; stroke: #111; fill: none; }

.am-iccid-strip {
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.am-iccid-text {
    font-family: monospace;
    font-size: 12px;
    color: #111;
    flex: 1;
    word-break: break-all;
}
.am-iccid-text b {
    color: #7C5200;
    font-weight: 500;
    margin-right: 6px;
}
.am-iccid-copy {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    background-color: #F5C518 !important;
    color: #111 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
}
.am-iccid-copy svg { width: 11px; height: 11px; stroke: #111; fill: none; }

button.am-guide-toggle {
    margin-top: 12px;
    background-color: #F5C518 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #111 !important;
    width: 100% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}
.am-guide-toggle-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111;
}
.am-chevron {
    transition: transform 0.3s;
    font-size: 14px;
    color: #111;
}
button.am-guide-toggle.open .am-chevron {
    transform: rotate(180deg);
}

.am-guide-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.am-guide-content.open {
    max-height: 600px;
    margin-top: 10px;
}

.am-roaming-alert {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.am-alert-icon { color: #EF4444; font-size: 14px; flex-shrink: 0; }
.am-alert-text {
    font-size: 10px;
    color: #991B1B;
    line-height: 1.4;
}
.am-alert-text b { color: #7F1D1D; }

.am-guide-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 10px;
}
.am-guide-tab {
    flex: 1;
    padding: 7px;
    border-radius: 8px;
    font-size: 11px;
    color: #7C5200;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.am-guide-tab.active {
    background: #1A1200;
    color: #F5C518;
}
.am-guide-tab svg { width: 11px; height: 11px; }

.am-guide-tab-content {
    display: none;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    padding: 10px 12px;
}
.am-guide-tab-content.active { display: block; }
.am-guide-step {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    font-size: 11px;
    color: #333;
    line-height: 1.5;
    align-items: flex-start;
}
.am-guide-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #F5C518;
    color: #111;
    font-size: 9px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.am-guide-text b { color: #111; }
.am-highlight { color: #B91C1C; font-weight: 500; }

/* Data card */
.am-data-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.am-data-display {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #F0E8C8;
}
.am-data-display.show {
    display: block;
    animation: amSlideDown 0.3s ease;
}
@keyframes amSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.am-usage-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}
.am-usage-stats strong { color: #111; }
.am-usage-bar-wrap {
    background: #F0F0F0;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}
.am-usage-bar {
    background: #F5C518;
    height: 100%;
    transition: width 0.5s;
    width: 0%;
}
.am-usage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.am-usage-item {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}
.am-usage-num {
    font-size: 14px;
    font-weight: 500;
    color: #111;
}
.am-usage-label {
    font-size: 9px;
    color: #888;
    margin-top: 2px;
}
.am-last-checked {
    font-size: 9px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

/* Support */
.am-support-card {
    background: #1A1200 !important;
    color: #fff;
}
.am-support-card .am-card-title { color: #F5C518; }
.am-support-text {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin-bottom: 12px;
}
.am-fb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #1877F2;
    color: #fff;
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}
.am-fb-btn:hover {
    color: #fff;
    text-decoration: none;
}

/* ============================================
   eSIM detail — order ID label/value/copy
   ============================================ */
.am-order-label {
    font-size: 15px !important;
    color: #444444 !important;
    font-weight: 500 !important;
}
.am-order-value {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    letter-spacing: 0.5px !important;
    margin-left: 4px !important;
}
.am-order-copy {
    transform: scale(0.85) !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

/* Page wrapper */
.am-product-page {
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 0 12px 80px !important;
    background: #F9F9F6 !important;
}

/* Main product card */
.am-product-card {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 10px !important;
    border: 1px solid #F0EDE5 !important;
}

/* Back link */
.am-product-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12px !important;
    color: #888 !important;
    text-decoration: none !important;
    margin-bottom: 12px !important;
}

/* Flag + name header */
.am-product-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}
.am-product-flag-big {
    font-size: 40px !important;
    line-height: 1 !important;
}
.am-product-name {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111 !important;
}
.am-product-network {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 4px !important;
    font-size: 12px !important;
    color: #666 !important;
}
.am-5g-badge {
    font-size: 10px !important;
    padding: 1px 7px !important;
    border-radius: 4px !important;
    background: #DCFCE7 !important;
    color: #166534 !important;
    font-weight: 600 !important;
}

/* Description */
.am-product-desc {
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.55 !important;
    margin: 0 0 16px !important;
}

/* Metric cards */
.am-product-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
}
.am-metric-card {
    background: #F9F9F6 !important;
    border-radius: 10px !important;
    padding: 14px !important;
    text-align: center !important;
}
.am-metric-label {
    font-size: 11px !important;
    color: #888 !important;
    margin-bottom: 4px !important;
}
.am-metric-value {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #111 !important;
}

/* Specs table */
.am-product-specs {
    background: #F9F9F6 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
}
.am-product-specs table {
    width: 100% !important;
    font-size: 13px !important;
    border-collapse: collapse !important;
}
.am-product-specs td {
    padding: 7px 0 !important;
}
.am-product-specs td:first-child {
    color: #888 !important;
}
.am-product-specs td:last-child {
    text-align: right !important;
    color: #333 !important;
}
.am-product-specs tr + tr {
    border-top: 1px solid #F0EDE5 !important;
}

/* Tips card */
.am-product-tips {
    background: #FFFBF0 !important;
    border-radius: 12px !important;
    border: 1px solid #F0E8C8 !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
}
.am-tips-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #92400E !important;
    margin-bottom: 10px !important;
}
.am-tip-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}
.am-tip-item:last-child {
    margin-bottom: 0 !important;
}
.am-tip-item span {
    font-size: 14px !important;
    line-height: 1.4 !important;
    flex-shrink: 0 !important;
}
.am-tip-item p {
    font-size: 12px !important;
    color: #555 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}
.am-tip-item a {
    color: #B8860B !important;
    text-decoration: underline !important;
}

/* Buy card */
.am-product-buy-card {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    border: 1px solid #F0EDE5 !important;
    padding: 16px !important;
    margin-bottom: 10px !important;
}
.am-buy-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 14px !important;
}
.am-product-price {
    font-size: 26px !important;
    font-weight: 600 !important;
    color: #111 !important;
}

/* Quantity control */
.am-qty-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.am-qty-control {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #E8E5DD !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    height: 36px !important;
}
.am-qty-btn {
    width: 36px !important;
    height: 36px !important;
    background: #F9F9F6 !important;
    border: none !important;
    font-size: 16px !important;
    cursor: pointer !important;
    color: #333 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.am-qty-btn:first-child {
    border-right: 1px solid #E8E5DD !important;
}
.am-qty-btn:last-child {
    border-left: 1px solid #E8E5DD !important;
}
.am-qty-value {
    width: 34px !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111 !important;
}
.am-qty-total {
    font-size: 13px !important;
    color: #888 !important;
    min-width: 60px !important;
    text-align: right !important;
}

/* Buy buttons row */
.am-buy-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}
.am-btn-express {
    padding: 13px 0 !important;
    background: #F5C518 !important;
    color: #111 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
}
.am-btn-cart {
    padding: 13px 0 !important;
    background: #FFFFFF !important;
    color: #333 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    border: 1px solid #E8E5DD !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
}

/* Related products */
.am-related-plans {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    border: 1px solid #F0EDE5 !important;
    padding: 16px !important;
    margin-bottom: 10px !important;
}
.am-related-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-bottom: 4px !important;
}
.am-related-subtitle {
    font-size: 12px !important;
    color: #888 !important;
    margin-bottom: 12px !important;
}
.am-related-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 11px 0 !important;
    border-bottom: 1px solid #F0EDE5 !important;
    text-decoration: none !important;
    color: inherit !important;
}
.am-related-row:last-of-type {
    border-bottom: none !important;
}
.am-related-current {
    background: #FFFBF0 !important;
    margin: 0 -16px !important;
    padding: 11px 16px !important;
    pointer-events: none !important;
}
.am-related-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.am-related-flag {
    font-size: 20px !important;
}
.am-related-name {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #111 !important;
}
.am-related-meta {
    font-size: 11px !important;
    color: #888 !important;
    margin-top: 2px !important;
}
.am-related-price {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
}
.am-current-pill {
    font-size: 10px !important;
    padding: 3px 10px !important;
    border-radius: 99px !important;
    background: #F5C518 !important;
    color: #111 !important;
    font-weight: 600 !important;
}
.am-related-viewall {
    display: block !important;
    text-align: center !important;
    margin-top: 12px !important;
    font-size: 13px !important;
    color: #B8860B !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

/* How it works */
.am-how-it-works {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    border: 1px solid #F0EDE5 !important;
    padding: 16px !important;
    margin-bottom: 10px !important;
}
.am-how-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-bottom: 14px !important;
}
.am-how-step {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}
.am-how-step:last-child {
    margin-bottom: 0 !important;
}
.am-how-num {
    min-width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #FEF3C7 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #92400E !important;
}
.am-how-num.am-how-done {
    background: #DCFCE7 !important;
    color: #166534 !important;
}
.am-how-step-title {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #111 !important;
}
.am-how-step-desc {
    font-size: 12px !important;
    color: #888 !important;
    margin-top: 2px !important;
}

/* Hide default Odoo product elements we don't need */
.am-product-page #product_details .css_quantity,
.am-product-page #product_details .js_check_product,
.am-product-page .o_product_feature_panel,
.am-product-page #o-carousel-product {
    display: none !important;
}

/* ============================================
   Country Filter Dropdown (Shop page)
   ============================================ */
.am-country-filter-section {
    position: relative;
}

.am-country-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid var(--am-yellow-border, #F0E8C8);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.am-country-select:active,
.am-country-select.open {
    border-color: var(--am-yellow, #F5C518);
}

.am-country-select-flag {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.am-country-select-text {
    flex: 1;
    font-size: 14px;
    color: var(--am-text-muted, #777);
    font-family: 'Inter', sans-serif;
}
.am-country-select-text.has-value {
    color: var(--am-text-primary, #111);
    font-weight: 500;
}

.am-country-select-clear {
    font-size: 18px;
    color: var(--am-yellow-dark, #B8860B);
    font-weight: 500;
    padding: 0 4px;
    cursor: pointer;
    line-height: 1;
}

.am-country-select-chev {
    width: 8px;
    height: 8px;
    border-right: 2px solid #aaa;
    border-bottom: 2px solid #aaa;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s;
    margin-right: 2px;
}
.am-country-select-chev.open {
    transform: rotate(-135deg);
}

/* Dropdown panel */
.am-country-dropdown {
    position: absolute;
    top: 100%;
    left: -14px;
    right: -14px;
    margin-top: 4px;
    background: #fff;
    border: 1.5px solid var(--am-yellow-border, #F0E8C8);
    border-radius: 12px;
    z-index: 201;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Search input */
.am-country-dropdown-search {
    padding: 10px 10px 6px;
    position: relative;
}
.am-country-dropdown-search-icon {
    position: absolute;
    left: 22px;
    top: 22px;
}
.am-country-dropdown-input {
    width: 100%;
    border: 1.5px solid var(--am-yellow-border, #F0E8C8);
    border-radius: 8px;
    padding: 9px 10px 9px 34px;
    font-size: 16px;
    color: var(--am-text-primary, #111);
    background: var(--am-yellow-bg, #FFFBF0);
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.15s;
}
.am-country-dropdown-input:focus {
    border-color: var(--am-yellow, #F5C518);
}
.am-country-dropdown-input::placeholder {
    color: #bbb;
}

/* Results list */
.am-country-dropdown-list {
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Section headers */
.am-country-dropdown-sec {
    font-size: 11px;
    font-weight: 600;
    color: var(--am-text-muted, #999);
    padding: 8px 12px 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #f5f5f5;
    background: #fafafa;
}

/* Items */
.am-country-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.1s;
}
.am-country-dropdown-item:last-child {
    border-bottom: none;
}
.am-country-dropdown-item:active,
.am-country-dropdown-item.highlight {
    background: var(--am-yellow-bg, #FFFBF0);
}

.am-country-dropdown-item-flag {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.am-country-dropdown-item-multi {
    width: 28px;
    height: 28px;
    background: #E8F4FD;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}

.am-country-dropdown-item-info {
    flex: 1;
    min-width: 0;
}
.am-country-dropdown-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--am-text-primary, #111);
}
.am-country-dropdown-item-sub {
    font-size: 11px;
    color: var(--am-text-muted, #999);
    margin-top: 1px;
}

.am-country-dropdown-item-badge {
    font-size: 10px;
    background: var(--am-yellow-tag, #FEF3C7);
    color: #92610a;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 500;
    flex-shrink: 0;
}

.am-country-dropdown-empty {
    padding: 20px 12px;
    text-align: center;
    font-size: 13px;
    color: var(--am-text-muted, #999);
}

/* Overlay */
.am-country-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 200;
}

/* ============================================
   eSIM Compatibility Check Page (/esim-check)
   ============================================ */
.am-esim-check-page {
    background: #fff;
}

.am-esim-hero {
    background: var(--am-yellow-bg, #FFFBF0);
    padding: 24px 16px 20px;
    text-align: center;
}

.am-esim-hero-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.am-esim-hero-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--am-text-primary, #111);
    margin: 0 0 4px;
}

.am-esim-hero-sub {
    font-size: 13px;
    color: var(--am-text-muted, #777);
    margin: 0;
    line-height: 1.5;
}

/* Guide card */
.am-esim-guide-card {
    margin: 14px 0;
    border: 1.5px solid var(--am-yellow-border, #F0E8C8);
    border-radius: 12px;
    padding: 14px;
    background: var(--am-yellow-bg, #FFFBF0);
}

.am-esim-guide-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--am-text-primary, #111);
    margin-bottom: 4px;
}

.am-esim-guide-sub {
    font-size: 13px;
    color: var(--am-text-muted, #777);
    line-height: 1.6;
    margin-bottom: 12px;
}

.am-esim-guide-img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* Sections */
.am-esim-section {
    margin: 12px 0;
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px;
}

.am-esim-section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--am-text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

/* Brand grid */
.am-esim-brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.am-esim-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 4px;
    border: 1.5px solid #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.am-esim-brand-item:active,
.am-esim-brand-item.active {
    border-color: var(--am-yellow, #F5C518);
    background: var(--am-yellow-bg, #FFFBF0);
}

.am-esim-brand-icon {
    font-size: 24px;
    line-height: 1;
}

.am-esim-brand-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--am-text-primary, #111);
}

.am-esim-brand-sub {
    font-size: 9px;
    color: var(--am-text-muted, #999);
}

/* Model search */
.am-esim-model-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--am-yellow-border, #F0E8C8);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: var(--am-yellow-bg, #FFFBF0);
}

.am-esim-model-search-icon {
    flex-shrink: 0;
}

.am-esim-model-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--am-text-primary, #111);
    background: transparent;
    font-family: 'Inter', sans-serif;
}

.am-esim-model-input::placeholder {
    color: #bbb;
    font-size: 14px;
}

/* Model list */
.am-esim-model-list {
    /* no max-height — full page, no scroll trap */
}

/* Single model row (Apple, Google, Huawei flat lists) */
.am-esim-model-row {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #f0f0f0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 6px;
}

.am-esim-model-row.active {
    border-color: var(--am-yellow, #F5C518);
    background: var(--am-yellow-bg, #FFFBF0);
}

.am-esim-model-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.am-esim-model-icon {
    font-size: 18px;
    flex-shrink: 0;
    color: #999;
}

.am-esim-model-info {
    flex: 1;
    min-width: 0;
}

.am-esim-model-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--am-text-primary, #111);
}

.am-esim-model-year {
    font-size: 11px;
    color: #22C55E;
    font-weight: 500;
}

.am-esim-model-year.fail {
    color: var(--am-text-muted, #999);
}

.am-esim-model-action {
    margin-top: 8px;
}

/* Series row (Samsung, Xiaomi, Others) */
.am-esim-series {
    border: 1.5px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 6px;
    overflow: hidden;
}

.am-esim-series-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
}

.am-esim-series-icon {
    font-size: 18px;
    flex-shrink: 0;
    color: #999;
}

.am-esim-series-info {
    flex: 1;
    min-width: 0;
}

.am-esim-series-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--am-text-primary, #111);
}

.am-esim-series-range {
    font-size: 11px;
    color: var(--am-text-muted, #777);
    margin-top: 1px;
}

.am-esim-series-chev {
    font-size: 14px;
    color: #aaa;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.am-esim-series-chev.open {
    transform: rotate(90deg);
}

/* Expanded models inside series */
.am-esim-series-expand {
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    padding: 6px 12px;
    display: none;
}

.am-esim-series-expand.open {
    display: block;
}

.am-esim-series-model {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.am-esim-series-model:last-child {
    border-bottom: none;
}

.am-esim-series-model-name {
    color: var(--am-text-secondary, #444);
}

/* Badges */
.am-esim-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

.am-esim-badge.yes {
    background: #dcfce7;
    color: #166534;
}

.am-esim-badge.no {
    background: #fee2e2;
    color: #991b1b;
}

.am-esim-badge.mix {
    background: #FEF3C7;
    color: #92610a;
}

.am-esim-badge-sm {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.am-esim-badge-sm.yes {
    background: #dcfce7;
    color: #166534;
}

.am-esim-badge-sm.no {
    background: #fee2e2;
    color: #991b1b;
}

/* Action buttons */
.am-esim-series-action {
    padding: 0 12px 12px;
}

.am-esim-action-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}

.am-esim-action-btn.buy {
    background: var(--am-yellow, #F5C518) !important;
    color: #111 !important;
}

.am-esim-action-btn.psim {
    background: var(--am-dark, #1A1200) !important;
    color: var(--am-yellow, #F5C518) !important;
}

.am-esim-fail-txt {
    font-size: 12px;
    color: var(--am-text-secondary, #555);
    line-height: 1.5;
    padding: 0 12px;
    margin-bottom: 8px;
}

.am-esim-note {
    padding: 8px 4px;
    font-size: 11px;
    color: var(--am-text-muted, #999);
    line-height: 1.4;
}

/* ============================================
   eSIM Check Mini Popup
   ============================================ */
.am-esim-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}

.am-esim-popup-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    border-top: 2px solid var(--am-yellow, #F5C518);
    z-index: 9999;
    padding-bottom: 20px;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.am-esim-popup-handle {
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 10px auto 0;
}

.am-esim-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 4px;
}

.am-esim-popup-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--am-text-primary, #111);
}

.am-esim-popup-close {
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.am-esim-popup-desc {
    font-size: 13px;
    color: var(--am-text-muted, #777);
    line-height: 1.5;
    padding: 0 16px 10px;
}

.am-esim-popup-img-wrap {
    margin: 0 16px 14px;
    border-radius: 12px;
    overflow: hidden;
}

.am-esim-popup-img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.am-esim-popup-q-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--am-text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0 16px;
    margin-bottom: 8px;
}

.am-esim-popup-choices {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.am-esim-popup-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.am-esim-popup-choice.active {
    border-color: var(--am-yellow, #F5C518);
    background: var(--am-yellow-bg, #FFFBF0);
}

.am-esim-popup-choice.dimmed {
    opacity: 0.35;
    pointer-events: none;
}

.am-esim-popup-choice-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.am-esim-popup-choice-body {
    flex: 1;
}

.am-esim-popup-choice-q {
    font-size: 14px;
    font-weight: 500;
    color: var(--am-text-primary, #111);
}

.am-esim-popup-result {
    margin-top: 6px;
}

.am-esim-popup-result-text {
    font-size: 13px;
    color: var(--am-text-secondary, #555);
    line-height: 1.5;
    margin-bottom: 10px;
}

.am-esim-popup-result-text.am-esim-result-success {
    color: #166534;
}

.am-esim-popup-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}

.am-esim-btn-close {
    background: var(--am-yellow, #F5C518) !important;
    color: #111 !important;
}

.am-esim-btn-psim {
    background: #22C55E !important;
    color: #fff !important;
}

/* ============================================
   Physical SIM Page (/physical-sim)
   ============================================ */
.am-psim-page {
    background: #fff;
}

.am-psim-hero {
    background: var(--am-dark, #1A1200);
    padding: 28px 16px 24px;
    text-align: center;
}

.am-psim-hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--am-yellow, #F5C518);
    background: rgba(245, 197, 24, 0.15);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.am-psim-hero-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
}

.am-psim-hero-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* Features */
.am-psim-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}

.am-psim-feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--am-yellow-bg, #FFFBF0);
    border: 1px solid var(--am-yellow-border, #F0E8C8);
    border-radius: 10px;
}

.am-psim-feat-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.am-psim-feat-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--am-text-primary, #111);
}

.am-psim-feat-sub {
    font-size: 12px;
    color: var(--am-text-muted, #777);
    margin-top: 1px;
}

/* Promo image */
.am-psim-img-card {
    margin: 14px 0;
    border-radius: 14px;
    overflow: hidden;
}

.am-psim-promo-img {
    width: 100%;
    display: block;
    border-radius: 14px;
}

/* Sections */
.am-psim-section {
    margin: 16px 0;
}

.am-psim-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--am-text-primary, #111);
    margin-bottom: 10px;
}

/* Price table */
.am-psim-price-note {
    font-size: 12px;
    color: var(--am-text-muted, #777);
    margin-bottom: 10px;
    padding: 8px 12px;
    background: var(--am-yellow-bg, #FFFBF0);
    border-radius: 8px;
    border: 1px solid var(--am-yellow-border, #F0E8C8);
}

.am-psim-table-wrap {
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.am-psim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.am-psim-table thead {
    background: var(--am-dark, #1A1200);
}

.am-psim-table th {
    padding: 10px 12px;
    color: var(--am-yellow, #F5C518);
    font-weight: 600;
    font-size: 12px;
    text-align: center;
}

.am-psim-table th:first-child {
    text-align: left;
}

.am-psim-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: var(--am-text-primary, #111);
}

.am-psim-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.am-psim-table tbody tr:last-child td {
    border-bottom: none;
}

.am-psim-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.am-psim-flag {
    font-size: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Pickup locations */
.am-psim-location {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 8px;
}

.am-psim-loc-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.am-psim-loc-body {
    flex: 1;
}

.am-psim-loc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--am-text-primary, #111);
    margin-bottom: 2px;
}

.am-psim-loc-detail {
    font-size: 12px;
    color: var(--am-text-secondary, #444);
    margin-bottom: 4px;
}

.am-psim-loc-hours {
    font-size: 12px;
    color: var(--am-text-muted, #777);
    display: flex;
    align-items: center;
    gap: 4px;
}

.am-psim-loc-clock {
    font-size: 12px;
}

/* Steps */
.am-psim-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.am-psim-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 10px;
}

.am-psim-step-num {
    width: 28px;
    height: 28px;
    background: var(--am-yellow, #F5C518);
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.am-psim-step-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--am-text-primary, #111);
}

.am-psim-step-sub {
    font-size: 11px;
    color: var(--am-text-muted, #777);
    margin-top: 1px;
}

/* eSIM CTA card */
.am-psim-esim-cta {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--am-yellow-bg, #FFFBF0);
    border: 1.5px solid var(--am-yellow-border, #F0E8C8);
    border-radius: 12px;
    margin: 16px 0;
}

.am-psim-esim-cta-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.am-psim-esim-cta-body {
    flex: 1;
}

.am-psim-esim-cta-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--am-text-primary, #111);
    margin-bottom: 4px;
}

.am-psim-esim-cta-sub {
    font-size: 12px;
    color: var(--am-text-muted, #777);
    line-height: 1.5;
    margin-bottom: 8px;
}

.am-psim-esim-cta-btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--am-yellow-dark, #B8860B) !important;
    text-decoration: underline !important;
}

/* Contact */
.am-psim-fb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: #0084FF !important;
    color: #fff !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    margin-bottom: 10px;
}

.am-psim-phone-line {
    text-align: center;
    font-size: 13px;
    padding: 4px 0;
}

.am-psim-phone-line a {
    color: var(--am-yellow-dark, #B8860B) !important;
    font-weight: 500;
    text-decoration: none !important;
}

/* ============================================
   Guide / Support Page (/guide)
   ============================================ */
.am-guide-page {
    background: #fff;
}

.am-guide-hero {
    background: var(--am-yellow-bg, #FFFBF0);
    padding: 24px 16px 20px;
    text-align: center;
}

.am-guide-hero-icon {
    font-size: 36px;
    margin-bottom: 6px;
}

.am-guide-hero-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--am-text-primary, #111);
    margin: 0 0 4px;
}

.am-guide-hero-sub {
    font-size: 13px;
    color: var(--am-text-muted, #777);
    margin: 0;
}

/* Category filter */
.am-guide-cats {
    display: flex;
    gap: 6px;
    padding: 12px 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.am-guide-cat {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e8e0c8;
    background: #fff;
    color: var(--am-text-secondary, #555);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
}

.am-guide-cat.active {
    background: var(--am-yellow, #F5C518);
    color: #111;
    border-color: var(--am-yellow, #F5C518);
    font-weight: 600;
}

/* Sections */
.am-guide-section-hdr {
    font-size: 16px;
    font-weight: 600;
    color: var(--am-text-primary, #111);
    padding: 16px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Accordion */
.am-guide-acc {
    border: 1.5px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 6px;
    overflow: hidden;
}

.am-guide-acc.hidden {
    display: none;
}

.am-guide-acc-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    cursor: pointer;
    background: #fff;
}

.am-guide-acc-emoji {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.am-guide-acc-dot {
    width: 8px;
    height: 8px;
    background: var(--am-yellow, #F5C518);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.am-guide-acc-q {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--am-text-primary, #111);
    line-height: 1.4;
}

.am-guide-acc-badge {
    font-size: 8px;
    background: #22C55E;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
}

.am-guide-acc-chev {
    font-size: 14px;
    color: #aaa;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.am-guide-acc-chev.open {
    transform: rotate(90deg);
}

.am-guide-acc-body {
    display: none;
    padding: 0 12px 12px;
    border-top: 1px solid #f5f5f5;
}

.am-guide-acc-body.open {
    display: block;
}

/* Steps */
.am-guide-step {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    background: #fafafa;
    border-radius: 8px;
    margin-top: 8px;
}

.am-guide-step-num {
    width: 20px;
    height: 20px;
    background: var(--am-yellow, #F5C518);
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.am-guide-step-text {
    font-size: 13px;
    color: var(--am-text-secondary, #333);
    line-height: 1.5;
}

.am-guide-step-text b {
    color: var(--am-text-primary, #111);
}

.am-guide-step-text a {
    color: var(--am-yellow-dark, #B8860B) !important;
    font-weight: 500;
}

/* Text paragraphs */
.am-guide-text {
    font-size: 13px;
    color: var(--am-text-secondary, #444);
    line-height: 1.6;
    margin-top: 8px;
}

.am-guide-text b {
    color: var(--am-text-primary, #111);
}

.am-guide-text a {
    color: var(--am-yellow-dark, #B8860B) !important;
    font-weight: 500;
}

/* Tip card */
.am-guide-tip {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--am-yellow-bg, #FFFBF0);
    border: 1px solid var(--am-yellow-border, #F0E8C8);
    border-radius: 8px;
    font-size: 12px;
    color: var(--am-text-secondary, #555);
    line-height: 1.5;
}

.am-guide-tip b {
    color: var(--am-text-primary, #111);
}

.am-guide-tip a {
    color: var(--am-yellow-dark, #B8860B) !important;
    font-weight: 500;
}

/* Warning card */
.am-guide-warn {
    margin-top: 8px;
    padding: 8px 10px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    font-size: 12px;
    color: #991b1b;
    line-height: 1.5;
}

.am-guide-warn b {
    color: #7f1d1d;
}

.am-guide-warn a {
    color: #991b1b !important;
    font-weight: 500;
    text-decoration: underline !important;
}

/* Contact bar */
.am-guide-contact-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 14px;
    background: #0084FF;
    border-radius: 12px;
    text-decoration: none !important;
}

.am-guide-contact-fb-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-guide-contact-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.am-guide-contact-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1px;
}

/* ============================================
   CHECKOUT — simplified eSIM checkout
   ============================================ */

/* Hide address breadcrumb step */
.o_wizard_step:nth-child(2) { display: none !important; }
.o_wizard_step:nth-child(2) + .o_wizard_separator { display: none !important; }

/* Hide "Already have an account?" + Sign in */
.o_address_signin { display: none !important; }

/* Hide "Details" heading */
.o_customer_address_fill > div > h4 { display: none !important; }

/* Hide fields by their exact div IDs from portal.address_form_fields */
#div_name { display: none !important; }
#div_street { display: none !important; }
#div_street2 { display: none !important; }
#div_city { display: none !important; }
#div_zip { display: none !important; }
#div_country { display: none !important; }
#div_state { display: none !important; }
#company_name_div { display: none !important; }
#div_vat { display: none !important; }

/* Hide w-100 spacer divs between hidden fields */
.o_customer_address_fill .w-100 { display: none !important; }

/* Hide billing address heading + Add Address button */
#billing_address_list > .d-flex:first-child { display: none !important; }
.o_add_billing_address_btn { display: none !important; }

/* Hide "same as delivery" checkbox */
#use_delivery_as_billing_label { display: none !important; }

/* Make email + phone full width */
#div_email { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
#div_phone { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }

/* Style visible fields — email + phone */
#div_email input,
#div_phone input {
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    background: #fff !important;
}

#div_email input:focus,
#div_phone input:focus {
    border-color: #F5C518 !important;
    box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.15) !important;
}

/* Style labels */
#div_email label,
#div_phone label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111 !important;
}

/* Quick reorder + wishlist hide */
#quick_reorder_button { display: none !important; }
#quick_reorder_sidebar { display: none !important; }
.o_wish_add { display: none !important; }

/* ============================================
   MY SIM PAGE
   ============================================ */
.am-mysim-page {
    padding: 20px 16px 120px;
    min-height: 80vh;
}

.am-mysim-header {
    text-align: center;
    padding: 24px 0 20px;
}

.am-mysim-icon {
    width: 56px;
    height: 56px;
    background: #FFFBF0;
    border: 1.5px solid #F0E8C8;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.am-mysim-title {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    margin: 0 0 6px;
}

.am-mysim-subtitle {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

/* Tab switcher */
.am-mysim-tabs {
    display: flex;
    gap: 4px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.am-mysim-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #777;
    cursor: pointer;
    transition: all 0.2s;
}

.am-mysim-tab.active {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.am-mysim-tab svg {
    flex-shrink: 0;
}

/* Tab content */
.am-mysim-tab-content {
    display: none !important;
}

.am-mysim-tab-content.active {
    display: block !important;
}

/* Coming soon (physical sim) */
.am-mysim-coming-soon {
    text-align: center;
    padding: 30px 20px;
    background: #fafafa;
    border: 1px dashed #e0e0e0;
    border-radius: 14px;
    margin-top: 12px;
}

.am-mysim-coming-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.am-mysim-coming-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}

.am-mysim-coming-text {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}

/* Input card */
.am-mysim-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}

.am-mysim-card-label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 10px;
}

.am-mysim-input-wrap {
    display: flex;
    gap: 8px;
}

.am-mysim-input {
    flex: 1;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    font-family: Inter, sans-serif;
    color: #111;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.am-mysim-input:focus {
    border-color: #F5C518;
}

.am-mysim-input::placeholder {
    color: #bbb;
}

.am-mysim-submit {
    padding: 12px 20px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    min-width: 70px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.am-mysim-spinner {
    width: 18px;
    height: 18px;
}

.am-spin {
    width: 18px;
    height: 18px;
    border: 2px solid #111;
    border-top-color: transparent;
    border-radius: 50%;
    animation: amSpin 0.6s linear infinite;
}

@keyframes amSpin {
    to { transform: rotate(360deg); }
}

.am-mysim-hint {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

.am-mysim-error {
    font-size: 13px;
    color: #ef4444;
    margin-top: 10px;
    padding: 10px 12px;
    background: #FEF2F2;
    border-radius: 8px;
}

/* User info bar */
.am-mysim-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FFFBF0;
    border: 1px solid #F0E8C8;
    border-radius: 10px;
    margin-bottom: 16px;
}

.am-mysim-user-icon { font-size: 16px; }

.am-mysim-user-email {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.am-mysim-change {
    font-size: 12px;
    font-weight: 500;
    color: #B8860B;
    background: none;
    border: 1px solid #F0E8C8;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
}

/* eSIM list cards */
.am-mysim-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.am-mysim-item:hover,
.am-mysim-item:active {
    border-color: #F5C518;
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.15);
}

.am-mysim-item-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.am-mysim-item-flag { font-size: 28px; line-height: 1; }

.am-mysim-item-info { flex: 1; min-width: 0; }

.am-mysim-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-mysim-item-net {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-mysim-item-iccid {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    font-family: monospace;
}

.am-mysim-item-status {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.am-mysim-item-status.active { color: #059669; background: #ECFDF5; }
.am-mysim-item-status.processing { color: #D97706; background: #FEF3C7; }

.am-mysim-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.am-mysim-item-left {
    flex: 1;
    min-width: 0;
}

.am-mysim-item-chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 8px 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.am-mysim-item:hover .am-mysim-item-chevron,
.am-mysim-item:active .am-mysim-item-chevron {
    opacity: 1;
}

.am-mysim-item-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.am-mysim-item-pill {
    font-size: 11px;
    color: #555;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 5px;
}

/* Empty state */
.am-mysim-empty { text-align: center; padding: 40px 20px; }
.am-mysim-empty-icon { font-size: 40px; margin-bottom: 12px; }
.am-mysim-empty-title { font-size: 16px; font-weight: 600; color: #111; margin-bottom: 6px; }
.am-mysim-empty-text { font-size: 13px; color: #777; line-height: 1.5; }

/* Debug status strip */
.am-debug-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;
    font-family: monospace;
    font-size: 11px;
    color: #999;
    width: 100%;
    box-sizing: border-box;
}

.am-debug-label {
    color: #aaa;
}

.am-debug-val {
    color: #555;
    font-weight: 500;
}

.am-debug-sep {
    color: #ddd;
}

/* Expandable spec rows */
.am-spec-expandable {
    cursor: pointer;
}

.am-spec-expandable .am-spec-full {
    display: none;
}

.am-spec-expandable .am-spec-compact {
    display: inline;
}

.am-spec-expandable.expanded .am-spec-full {
    display: inline;
}

.am-spec-expandable.expanded .am-spec-compact {
    display: none;
}

.am-spec-toggle {
    font-size: 12px;
    color: #B8860B;
    margin-left: 4px;
    transition: transform 0.2s;
    display: inline-block;
}

.am-spec-expandable.expanded .am-spec-toggle {
    transform: rotate(180deg);
}

.am-header-expandable {
    cursor: pointer;
}

.am-header-expandable .am-spec-full {
    display: none;
}

.am-header-expandable .am-spec-compact {
    display: inline;
}

.am-header-expandable.expanded .am-spec-full {
    display: inline;
}

.am-header-expandable.expanded .am-spec-compact {
    display: none;
}

/* ============================================
   SHOP V2 — Three-tab redesign
   ============================================ */
.am-shop-wrap {
    padding: 0 0 0 !important;
    background: #fafafa !important;
    min-height: 80vh;
}

/* Browse view (no category) */
.am-shop2-browse {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Tabs */
.am-shop2-tabs {
    display: flex;
    gap: 4px;
    background: #f0f0f0;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.am-shop2-tab {
    flex: 1;
    padding: 11px 8px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.am-shop2-tab.active {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Tab content */
.am-shop2-tab-content {
    display: none !important;
}

.am-shop2-tab-content.active {
    display: block !important;
}

/* Search */
.am-shop2-search-wrap {
    position: relative;
    margin-bottom: 16px;
}

.am-shop2-search {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 14px 12px 40px;
    font-size: 16px;
    font-family: Inter, sans-serif;
    color: #111;
    outline: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.am-shop2-search:focus {
    border-color: #F5C518;
}

.am-shop2-search::placeholder {
    color: #bbb;
}

/* Region chips */
.am-shop2-regions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.am-shop2-chip {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #f0f0f0;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.am-shop2-chip.active {
    background: #F5C518;
    color: #111;
}

/* Country grid */
.am-shop2-country-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.am-shop2-country-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: #111;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: block;
}

.am-shop2-country-card:hover {
    border-color: #F5C518;
    box-shadow: 0 2px 8px rgba(245,197,24,0.12);
}

.am-shop2-country-flag {
    font-size: 28px;
    margin-bottom: 6px;
}

.am-shop2-country-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.am-shop2-country-price {
    font-size: 12px;
    color: #B8860B;
}

.am-shop2-country-count {
    font-size: 11px;
    color: #888;
}

/* Search results */
.am-shop2-search-results {
    margin-top: -10px;
}

.am-shop2-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 6px;
    text-decoration: none;
    color: #111;
    cursor: pointer;
    transition: border-color 0.2s;
}

.am-shop2-search-item:hover {
    border-color: #F5C518;
}

.am-shop2-search-flag {
    font-size: 24px;
}

.am-shop2-search-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.am-shop2-search-sub {
    font-size: 12px;
    color: #888;
}

.am-shop2-search-sec {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    padding: 12px 0 6px;
}

/* Regional grid */
.am-shop2-regional-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.am-shop2-regional-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 18px 16px;
    text-decoration: none;
    color: #111;
    cursor: pointer;
    display: block;
    transition: border-color 0.2s;
}

.am-shop2-regional-card:hover {
    border-color: #F5C518;
}

.am-shop2-regional-flag {
    font-size: 24px;
    margin-bottom: 8px;
}

.am-shop2-regional-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.am-shop2-regional-count {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.am-shop2-regional-price {
    font-size: 12px;
    color: #B8860B;
    font-weight: 500;
}

/* Global grid */
.am-shop2-global-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Category view (plans list) */
.am-shop2-catview {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.am-shop2-back {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #B8860B;
    text-decoration: none;
    margin-bottom: 16px;
}

.am-shop2-cat-header {
    margin-bottom: 20px;
}

.am-shop2-cat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.am-shop2-cat-flag {
    font-size: 36px;
}

.am-shop2-cat-name {
    font-size: 20px;
    font-weight: 600;
    color: #111;
}

.am-shop2-cat-sub {
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}

/* Plan cards */
.am-shop2-plans {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.am-shop2-plan-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    color: #111;
    display: block;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.am-shop2-plan-card:hover {
    border-color: #F5C518;
    box-shadow: 0 2px 8px rgba(245,197,24,0.12);
}

.am-shop2-plan-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.am-shop2-plan-vol {
    font-size: 20px;
    font-weight: 600;
    color: #111;
}

.am-shop2-plan-dur {
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}

.am-shop2-plan-price {
    font-size: 18px;
    font-weight: 600;
    color: #B8860B;
    text-align: right;
}

.am-shop2-plan-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}

.am-shop2-plan-net {
    font-size: 12px;
    color: #999;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.am-shop2-plan-arrow {
    flex-shrink: 0;
    opacity: 0.4;
}

.am-shop2-empty {
    text-align: center;
    padding: 40px 16px;
    color: #888;
}

/* Category plan filters */
.am-shop2-cat-filters {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.am-shop2-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.am-shop2-filter-label {
    font-size: 11px;
    font-weight: 500;
    color: #aaa;
    min-width: 42px;
    flex-shrink: 0;
}

.am-shop2-filter-chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.am-shop2-fchip {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-family: Inter, sans-serif;
    transition: all 0.15s;
    white-space: nowrap;
}

.am-shop2-fchip.active {
    background: #F5C518;
    color: #111;
}

/* Multi-country plan items */
.am-shop2-multi-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.am-shop2-multi-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    text-decoration: none;
    color: #111;
    transition: border-color 0.2s;
    cursor: pointer;
}

.am-shop2-multi-item:hover {
    border-color: #F5C518;
}

.am-shop2-multi-flag {
    font-size: 24px;
    flex-shrink: 0;
}

.am-shop2-multi-info {
    flex: 1;
    min-width: 0;
}

.am-shop2-multi-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-shop2-multi-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.am-shop2-multi-arrow {
    flex-shrink: 0;
    opacity: 0.4;
}

/* Multi-country detail view */
.am-shop2-multi-detail {
    padding-top: 8px;
}

/* Sort bar */
.am-shop2-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.am-shop2-sort-label {
    font-size: 11px;
    color: #aaa;
    flex-shrink: 0;
}

.am-shop2-sort-select {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #444;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-family: Inter, sans-serif;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

/* See all link */
.am-shop2-seeall {
    display: block;
    text-align: center;
    padding: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #B8860B;
    text-decoration: none;
    border: 1px dashed #F0E8C8;
    border-radius: 12px;
    transition: background 0.15s;
}

.am-shop2-seeall:hover {
    background: #FFFBF0;
}

/* Covered countries (expandable) */
.am-shop2-covered {
    padding: 10px 14px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}

.am-shop2-covered .am-shop2-covered-full {
    display: none;
}

.am-shop2-covered .am-shop2-covered-compact {
    display: inline;
}

.am-shop2-covered.expanded .am-shop2-covered-full {
    display: inline;
}

.am-shop2-covered.expanded .am-shop2-covered-compact {
    display: none;
}

.am-multi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.am-multi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 16px 12px;
    text-decoration: none;
    color: #111;
    transition: border-color 0.2s;
}

.am-multi-card:hover {
    border-color: #F5C518;
}

.am-multi-card-flag {
    font-size: 28px;
    margin-bottom: 6px;
}

.am-multi-card-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.am-multi-card-meta {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.am-multi-card-price {
    font-size: 12px;
    color: #B8860B;
    font-weight: 500;
}

