/* GemScan Payments — front-end styles. Scoped under .gs-wrap so it won't
   fight your theme. */
.gs-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 16px 48px;
    color: #1c1c1e;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}
.gs-wrap * { box-sizing: border-box; }
/* Neutralise the theme's link styling inside the widget (buttons are links). */
.gs-wrap a { text-decoration: none !important; box-shadow: none !important; }
.gs-wrap a:hover, .gs-wrap a:focus { text-decoration: none !important; }

/* Prominent, centred language switcher (segmented control) */
.gs-lang {
    display: inline-flex; gap: 4px; margin: 14px auto 6px; padding: 4px;
    background: #f6f1e3; border: 1px solid #e3d8b4; border-radius: 999px;
}
.gs-lang-wrap { text-align: center; }
.gs-lang-btn {
    background: none; border: none; color: #6b571a;
    border-radius: 999px; padding: 9px 20px; cursor: pointer;
    font-size: 15px; font-weight: 700; line-height: 1; transition: background .15s ease, color .15s ease;
}
.gs-lang-btn:hover { color: #4a3d0f; }
.gs-lang-btn.is-active {
    background: #c9a227; color: #0b0b0c;
    box-shadow: 0 4px 12px -4px rgba(201,162,39,.6);
}

.gs-hero { text-align: center; padding: 24px 8px 8px; }
.gs-logo { font-size: 26px; font-weight: 800; color: #c9a227; }
.gs-logo span { color: #1c1c1e; }
.gs-hero h1 { font-size: 30px; line-height: 1.2; margin: 12px 0 8px; }
.gs-sub { color: #555; font-size: 16px; max-width: 620px; margin: 0 auto; }

.gs-values {
    list-style: none; padding: 0; margin: 20px auto; max-width: 700px;
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.gs-values li {
    background: #f6f1e3; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: #6b571a;
}

.gs-account {
    max-width: 460px; margin: 16px auto; text-align: center;
    display: flex; flex-direction: column; gap: 6px;
}
.gs-account label { font-weight: 700; font-size: 14px; }
.gs-account input {
    padding: 12px 14px; border: 1px solid #d8d2c2; border-radius: 12px; font-size: 15px; text-align: center;
}
.gs-account small { color: #888; font-size: 12px; }
.gs-status-btn {
    align-self: center; margin-top: 4px; cursor: pointer;
    background: transparent; color: #9a7d1f; border: 1px solid #cbb26a;
    border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700;
}
.gs-status-btn:hover { background: #f6f1e3; }

.gs-plans {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0;
}
.gs-plan {
    position: relative; border: 1px solid #e5e0d2; border-radius: 18px; padding: 22px 18px;
    background: #fff; display: flex; flex-direction: column; gap: 10px;
    transition: transform .12s ease, box-shadow .15s ease;
}
.gs-plan:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.25); }
.gs-plan.gs-popular {
    border: 2px solid #c9a227;
    box-shadow: 0 16px 40px -20px rgba(201,162,39,.5);
    background: linear-gradient(180deg, #fffdf5, #fff);
}
.gs-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #c9a227; color: #0b0b0c; font-size: 11px; font-weight: 800;
    padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.gs-plan h3 { margin: 4px 0 0; font-size: 18px; }
.gs-plan-tagline { margin: -6px 0 2px; font-size: 13px; color: #7a7a72; line-height: 1.4; min-height: 36px; }
.gs-price { font-size: 26px; font-weight: 800; color: #1c1c1e; }
.gs-price span { font-size: 14px; color: #888; font-weight: 600; }
.gs-plan ul { list-style: none; padding: 0; margin: 4px 0; flex: 1; }
.gs-plan ul li { font-size: 14px; color: #444; padding: 3px 0 3px 20px; position: relative; }
.gs-plan ul li::before { content: "✓"; color: #2e7d32; position: absolute; left: 0; font-weight: 800; }
.gs-buy {
    background: #c9a227; color: #0b0b0c; border: none; border-radius: 999px;
    padding: 12px; font-weight: 800; font-size: 15px; cursor: pointer;
}
.gs-buy:hover { background: #b8941f; }
.gs-plan-cta.gs-muted { text-align: center; color: #999; font-size: 13px; padding: 10px; }
.gs-plan-seats {
    display: inline-block; background: #f4efe0; color: #8a6d1a; font-size: 12px; font-weight: 700;
    padding: 3px 10px; border-radius: 999px; align-self: flex-start;
}
.gs-enterprise-section {
    margin: 40px 0 24px; padding: 28px 24px; border-radius: 20px;
    background: linear-gradient(180deg, #fbf7ea, #fdfcf7); border: 1px solid #ecdfb3;
}
.gs-enterprise-head { text-align: center; max-width: 640px; margin: 0 auto 22px; }
.gs-enterprise-head h2 { margin: 0 0 8px; font-size: 22px; color: #1c1c1e; }
.gs-enterprise-head p { margin: 0; font-size: 14px; color: #6b6b63; line-height: 1.5; }
/* Fixed 3 columns (not auto-fit) — Solo/Team/Business always form ONE complete
   row instead of the leftover-items-in-a-half-empty-row look auto-fit gave
   when these three shared a single grid with Free/Explorer/Collector. */
.gs-enterprise-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.gs-enterprise-grid .gs-plan { background: #fff; }
.gs-enterprise-note { text-align: center; color: #999; font-size: 13px; margin: 18px 0 0; }

.gs-credits { text-align: center; color: #555; font-size: 14px; margin: 8px 0 24px; }
.gs-credits-link { color: #635bff; font-weight: 700; text-decoration: underline; margin-left: 6px; }

/* Deep Scan credit packages */
.gs-credit-packs { margin: 8px 0 26px; text-align: center; }
.gs-credit-packs h3 { margin: 0 0 4px; font-size: 18px; color: #1c1c1e; }
.gs-credits-sub { color: #666; font-size: 13px; margin: 0 0 14px; }
.gs-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 620px; margin: 0 auto; }
.gs-pack {
    border: 1px solid #e5e0d2; border-radius: 14px; padding: 16px 12px; background: #fff;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.gs-pack-credits { font-size: 15px; font-weight: 800; color: #1c1c1e; }
.gs-pack-price { font-size: 20px; font-weight: 800; color: #635bff; }
.gs-pack-buy {
    display: inline-block; background: linear-gradient(135deg, #7a70ff, #635bff); color: #fff !important;
    border-radius: 999px; padding: 9px 18px; font-weight: 800; font-size: 13px; margin-top: 4px;
}
.gs-pack-mm { font-size: 11px; color: #888; margin-top: 4px; }
.gs-pack-soon { font-size: 11px; color: #b0b0b0; margin-top: 4px; }
.gs-credits-note { color: #777; font-size: 12px; max-width: 560px; margin: 12px auto 0; line-height: 1.5; }

/* Two clearly-labelled ways to buy credits: Card (Stripe) and Mobile Money. */
.gs-buy-block { max-width: 640px; margin: 0 auto 18px; padding: 14px 14px 16px; border-radius: 16px; }
.gs-buy-block-card { background: #f7f6ff; border: 1px solid #e6e2ff; }
.gs-buy-block-momo { background: #f2fbf5; border: 1px solid #d6efdd; }
.gs-buy-head { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #1c1c1e; }
.gs-buy-head-sub { display: block; font-size: 11px; font-weight: 600; color: #7a7a7a; margin-top: 2px; }
.gs-pack-buy-momo {
    border: 0; cursor: pointer; font-family: inherit;
    background: linear-gradient(135deg, #34c759, #25a244);
}

.gs-status-btn {
    align-self: center; margin-top: 4px; cursor: pointer;
    background: transparent; border: 1px solid #c9a227; color: #9a7d1f;
    border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 13px;
}
.gs-status-btn:hover { background: #c9a227; color: #0b0b0c; }

.gs-pay {
    border: 1px solid #e5e0d2; border-radius: 16px; padding: 20px; margin: 24px 0; background: #fbfaf6;
}
.gs-pay h2 { font-size: 18px; margin: 0 0 12px; }
.gs-pay-group { margin-bottom: 18px; }
.gs-pay-group h4 { margin: 0 0 8px; font-size: 14px; color: #6b571a; text-transform: uppercase; letter-spacing: .5px; }
.gs-pay-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    text-align: center; border: none; cursor: pointer;
    border-radius: 999px; padding: 15px 18px; font-weight: 800; font-size: 15px; margin: 8px 0; width: 100%;
    letter-spacing: .2px; transition: transform .06s ease, filter .15s ease;
}
.gs-pay-btn:hover { filter: brightness(1.05); }
.gs-pay-btn:active { transform: translateY(1px); }
.gs-stripe { background: linear-gradient(135deg, #7a70ff, #635bff); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(99,91,255,.6); }
.gs-confirm { background: #c9a227; color: #0b0b0c !important; }

/* Numbered mobile-money instructions */
.gs-steps {
    margin: 0 0 14px; padding: 14px 18px 14px 34px;
    background: #fffaf0; border: 1px solid #eadfc4; border-radius: 12px;
    counter-reset: gs-step;
}
.gs-steps li { font-size: 14px; color: #3a3320; line-height: 1.55; margin: 6px 0; }
.gs-steps li.gs-step-opt { color: #7a6a3a; }
.gs-amt-line { display: inline-block; margin-top: 2px; font-size: 13px; color: #6b571a; }
.gs-amt-line .gs-amt { font-size: 15px; color: #9a7d1f; }

.gs-momo { list-style: none; padding: 0; margin: 0 0 12px; }
.gs-momo li {
    padding: 12px 14px;
    background: #fff; border: 1px solid #e7e1d0; border-radius: 12px; margin-bottom: 8px;
}
.gs-momo-top { display: flex; align-items: center; gap: 10px; }
.gs-momo-svc { color: #666; min-width: 74px; font-weight: 600; }
.gs-momo-num { color: #1c1c1e; font-size: 17px; font-weight: 800; letter-spacing: .5px; flex: 1; }

/* USSD "tap to pay" dial code */
.gs-momo-ussd {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e7e1d0;
}
.gs-ussd-label { font-size: 12px; font-weight: 700; color: #6b571a; }
.gs-ussd-code {
    flex: 1; min-width: 160px; text-align: center;
    background: #0b0b0c; color: #ffd76a !important; font-weight: 800;
    font-size: 17px; letter-spacing: .5px; padding: 10px 12px; border-radius: 10px;
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}
.gs-ussd-code:hover { filter: brightness(1.12); }
.gs-copy {
    background: #f6f1e3; border: 1px solid #d8ca9c; color: #6b571a;
    border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
    white-space: nowrap;
}
.gs-copy:hover { background: #ece3ca; }
.gs-copy.is-copied { background: #c9a227; color: #0b0b0c; border-color: #c9a227; }

.gs-momo-hint { font-size: 13px; color: #777; }
.gs-momo-form { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.gs-field-label { font-size: 13px; font-weight: 700; color: #4a4330; margin-top: 8px; }
.gs-momo-form input { padding: 12px 14px; border: 1px solid #d8d2c2; border-radius: 12px; font-size: 15px; }
.gs-momo-form .gs-pay-btn { margin-top: 12px; }

/* Payment-confirmation form block (email → owner) */
.gs-confirm-box {
    margin-top: 14px; padding: 16px; border-radius: 14px;
    background: #fffaf0; border: 1px solid #eadfc4;
}
.gs-confirm-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #6b571a; }

.gs-disclaimer { font-size: 12px; color: #999; font-style: italic; text-align: center; margin-top: 24px; }

.gs-alert { border-radius: 12px; padding: 12px 16px; margin: 16px 0; font-weight: 600; }
.gs-ok { background: #e7f5e9; color: #1d6b2a; border: 1px solid #b8e0bf; }
.gs-error { background: #fdeceb; color: #b3261e; border: 1px solid #f3c4c0; }

@media (max-width: 720px) {
    .gs-plans { grid-template-columns: 1fr; }
    .gs-enterprise-grid { grid-template-columns: 1fr; }
    .gs-enterprise-section { padding: 22px 16px; }
    .gs-hero h1 { font-size: 24px; }
}
@media (max-width: 980px) and (min-width: 721px) {
    /* Between phone and desktop: 3 equal-width Enterprise cards get tight —
       drop to 2-up rather than let text/prices start wrapping awkwardly. */
    .gs-enterprise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
