/**
 * Card2Crypto — checkout coin selector + on-site payment screen styles.
 *
 * All rules are namespaced under .c2c-* so they never collide with the active
 * theme. Colours are driven by CSS custom properties for easy white-labelling.
 */

:root {
    --c2c-accent: #2563eb;
    --c2c-accent-soft: rgba(37, 99, 235, 0.08);
    --c2c-accent-border: rgba(37, 99, 235, 0.45);
    --c2c-success: #16a34a;
    --c2c-danger: #dc2626;
    --c2c-text: #0f172a;
    --c2c-muted: #64748b;
    --c2c-border: #e2e8f0;
    --c2c-surface: #ffffff;
    --c2c-surface-2: #f8fafc;
    --c2c-radius: 14px;
    --c2c-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* ---------------------------------------------------------------------------
 * Coin selector (classic + block checkout share this markup) — premium UI
 * ------------------------------------------------------------------------ */

.c2c-coin-select {
    margin: 10px 0 4px;
    color: var(--c2c-text);
    font-family: inherit;
}

.c2c-coin-select * {
    box-sizing: border-box;
}

.c2c-coin-intro {
    font-size: 13.5px;
    color: var(--c2c-muted);
    margin: 0 0 14px;
    line-height: 1.5;
}

/* Search */
.c2c-search {
    position: relative;
    margin-bottom: 14px;
}

.c2c-search input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    border: 1.5px solid var(--c2c-border);
    border-radius: 12px;
    font-size: 14.5px;
    color: var(--c2c-text);
    background: var(--c2c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 15px center;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.c2c-search input::placeholder { color: #9aa6b6; }

.c2c-search input:focus {
    outline: none;
    border-color: var(--c2c-accent);
    box-shadow: 0 0 0 4px var(--c2c-accent-soft);
}

/* Grid */
.c2c-coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding: 3px;
    margin: 0;
    list-style: none;
    scrollbar-width: thin;
}

.c2c-coin-grid::-webkit-scrollbar { width: 8px; }
.c2c-coin-grid::-webkit-scrollbar-thumb { background: #d6dde6; border-radius: 8px; }

/* Card = label wrapping a hidden radio */
.c2c-coin {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border: 1.5px solid var(--c2c-border);
    border-radius: 14px;
    background: var(--c2c-surface);
    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease, box-shadow .18s ease, transform .12s ease, background .18s ease;
}

.c2c-coin:hover {
    border-color: var(--c2c-accent-border);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15,23,42,0.10);
}

.c2c-coin input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
}

.c2c-coin.is-selected,
.c2c-coin:has(input:checked) {
    border-color: var(--c2c-accent);
    background: linear-gradient(180deg, rgba(37,99,235,0.07), rgba(37,99,235,0.03));
    box-shadow: 0 0 0 1.5px var(--c2c-accent), 0 6px 18px rgba(37,99,235,0.12);
}

.c2c-coin-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--c2c-surface-2);
    padding: 3px;
    box-shadow: inset 0 0 0 1px rgba(15,23,42,0.05);
}

.c2c-coin-logo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--c2c-accent);
    letter-spacing: -.02em;
}

.c2c-coin-meta {
    min-width: 0;
    line-height: 1.2;
}

.c2c-coin-name {
    display: block;
    font-size: 14.5px;
    font-weight: 650;
    color: var(--c2c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c2c-coin-chain {
    display: inline-block;
    margin-top: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c2c-muted);
    background: var(--c2c-surface-2);
    border: 1px solid var(--c2c-border);
    padding: 2px 8px;
    border-radius: 999px;
}

.c2c-coin.is-selected .c2c-coin-chain,
.c2c-coin:has(input:checked) .c2c-coin-chain {
    color: var(--c2c-accent);
    border-color: var(--c2c-accent-border);
    background: rgba(37,99,235,0.06);
}

.c2c-coin-check {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 17px;
    height: 17px;
    padding: 2px;
    border-radius: 50%;
    background: var(--c2c-accent);
    color: #fff;
    opacity: 0;
    transform: scale(.4);
    transition: opacity .15s ease, transform .18s cubic-bezier(.34,1.56,.64,1);
}

.c2c-coin.is-selected .c2c-coin-check,
.c2c-coin:has(input:checked) .c2c-coin-check {
    opacity: 1;
    transform: scale(1);
}

.c2c-empty {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--c2c-muted);
    padding: 18px;
    text-align: center;
    border: 1px dashed var(--c2c-border);
    border-radius: 12px;
}

.c2c-secure {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--c2c-muted);
}

.c2c-secure svg { flex: 0 0 14px; }

/* ---------------------------------------------------------------------------
 * On-site payment screen (order-received / thank-you page)
 * ------------------------------------------------------------------------ */

.c2c-pay {
    max-width: 460px;
    margin: 24px auto;
    background: var(--c2c-surface);
    border: 1px solid var(--c2c-border);
    border-radius: var(--c2c-radius);
    box-shadow: var(--c2c-shadow);
    overflow: hidden;
    color: var(--c2c-text);
    font-family: inherit;
}

.c2c-pay * { box-sizing: border-box; }

.c2c-pay__head {
    padding: 20px 24px 16px;
    text-align: center;
    border-bottom: 1px solid var(--c2c-border);
    background: linear-gradient(180deg, var(--c2c-surface-2), var(--c2c-surface));
}

.c2c-pay__brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--c2c-accent);
    text-transform: uppercase;
}

.c2c-pay__title {
    margin: 8px 0 2px;
    font-size: 19px;
    font-weight: 700;
}

.c2c-pay__sub {
    margin: 0;
    font-size: 13px;
    color: var(--c2c-muted);
}

.c2c-pay__coin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px 12px 6px 6px;
    background: var(--c2c-surface);
    border: 1px solid var(--c2c-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.c2c-pay__coin img { width: 22px; height: 22px; border-radius: 50%; }

.c2c-pay__body { padding: 20px 24px 8px; }

/* Amount */
.c2c-amount {
    text-align: center;
    margin-bottom: 16px;
}

.c2c-amount__value {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    word-break: break-all;
}

.c2c-amount__coin { color: var(--c2c-accent); }

.c2c-amount__copy-amt {
    margin-left: 6px;
    vertical-align: middle;
}

/* QR */
.c2c-qr {
    display: flex;
    justify-content: center;
    margin: 4px 0 18px;
}

.c2c-qr img {
    width: 196px;
    height: 196px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--c2c-border);
    border-radius: 12px;
}

/* Address field */
.c2c-field-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--c2c-muted);
    margin: 0 0 6px;
}

.c2c-address {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 16px;
}

.c2c-address__value {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 12px;
    background: var(--c2c-surface-2);
    border: 1px solid var(--c2c-border);
    border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    word-break: break-all;
    line-height: 1.4;
}

.c2c-copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border: 1px solid var(--c2c-accent);
    background: var(--c2c-accent);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s ease, transform .1s ease;
}

.c2c-copy:hover { opacity: .92; }
.c2c-copy:active { transform: scale(.97); }
.c2c-copy.is-done { background: var(--c2c-success); border-color: var(--c2c-success); }

.c2c-copy--ghost {
    background: transparent;
    color: var(--c2c-accent);
    padding: 4px 8px;
    border-radius: 7px;
}
.c2c-copy--ghost.is-done { background: transparent; color: var(--c2c-success); border-color: var(--c2c-success); }

/* Countdown */
.c2c-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--c2c-muted);
}

.c2c-timer__clock {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--c2c-text);
    background: var(--c2c-surface-2);
    border: 1px solid var(--c2c-border);
    border-radius: 8px;
    padding: 3px 9px;
}

.c2c-timer.is-expired .c2c-timer__clock { color: var(--c2c-danger); }

/* Status pill */
.c2c-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 20px;
    padding: 13px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--c2c-border);
    background: var(--c2c-surface-2);
}

.c2c-status__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c2c-accent);
    box-shadow: 0 0 0 0 var(--c2c-accent);
    animation: c2c-pulse 1.4s infinite;
}

@keyframes c2c-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); }
    70%  { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.c2c-status.is-paid    { color: var(--c2c-success); border-color: rgba(22,163,74,.35); background: rgba(22,163,74,.08); }
.c2c-status.is-paid .c2c-status__dot { background: var(--c2c-success); animation: none; }
.c2c-status.is-failed  { color: var(--c2c-danger);  border-color: rgba(220,38,38,.35);  background: rgba(220,38,38,.08); }
.c2c-status.is-failed .c2c-status__dot { background: var(--c2c-danger); animation: none; }

.c2c-steps {
    display: flex;
    gap: 8px;
    padding: 0 24px 18px;
    font-size: 11.5px;
    color: var(--c2c-muted);
}

.c2c-steps__item {
    flex: 1;
    text-align: center;
    padding-top: 10px;
    border-top: 2px solid var(--c2c-border);
}

.c2c-steps__item.is-active { color: var(--c2c-accent); border-top-color: var(--c2c-accent); font-weight: 600; }

.c2c-pay__foot {
    padding: 12px 24px 18px;
    text-align: center;
    font-size: 11.5px;
    color: var(--c2c-muted);
    border-top: 1px solid var(--c2c-border);
}

@media (max-width: 520px) {
    .c2c-pay { margin: 16px; }
    .c2c-amount__value { font-size: 22px; }
}

/* ===========================================================================
 * Card2Crypto — Coinbase-style coin picker (block checkout)
 * ======================================================================== */

.c2cx-wrap { margin: 8px 0 2px; color: var(--c2c-text); font-family: inherit; }
.c2cx-wrap * { box-sizing: border-box; }

.c2cx-intro { font-size: 13.5px; color: var(--c2c-muted); margin: 0 0 12px; line-height: 1.5; }
.c2cx-none, .c2cx-empty { font-size: 13.5px; color: var(--c2c-muted); padding: 22px; text-align: center; }

/* Selected-asset trigger */
.c2cx-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    background: var(--c2c-surface);
    border: 1.5px solid var(--c2c-border);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, box-shadow .18s ease, transform .1s ease;
}
.c2cx-trigger:hover { border-color: var(--c2c-accent); box-shadow: 0 6px 20px rgba(37,99,235,0.12); }
.c2cx-trigger:active { transform: scale(.995); }

.c2cx-logo { border-radius: 50%; object-fit: contain; background: var(--c2c-surface-2); padding: 3px; box-shadow: inset 0 0 0 1px rgba(15,23,42,0.05); flex: 0 0 auto; }
.c2cx-logo--fb { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--c2c-accent); }

.c2cx-trigger-meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.c2cx-trigger-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c2c-muted); }
.c2cx-trigger-name { font-size: 15.5px; font-weight: 650; color: var(--c2c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c2cx-trigger-change { font-size: 13px; font-weight: 650; color: var(--c2c-accent); }
.c2cx-trigger-chev { width: 18px; height: 18px; color: var(--c2c-muted); flex: 0 0 auto; }

.c2cx-secure { display: flex; align-items: center; gap: 7px; margin-top: 11px; font-size: 12px; color: var(--c2c-muted); }
.c2cx-secure svg { flex: 0 0 13px; }

/* Overlay + sheet */
.c2cx-overlay {
    position: fixed; inset: 0;
    z-index: 2147483000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    animation: c2cx-fade .18s ease;
}
@keyframes c2cx-fade { from { opacity: 0; } to { opacity: 1; } }

.c2cx-sheet {
    width: 100%; max-width: 440px; max-height: 86vh;
    display: flex; flex-direction: column;
    background: var(--c2c-surface);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15,23,42,0.35);
    overflow: hidden;
    animation: c2cx-pop .2s cubic-bezier(.34,1.56,.64,1);
}
@keyframes c2cx-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

.c2cx-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.c2cx-sheet-title { font-size: 17px; font-weight: 750; color: var(--c2c-text); }
.c2cx-close { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: var(--c2c-surface-2); color: var(--c2c-muted); cursor: pointer; transition: background .15s ease, color .15s ease; }
.c2cx-close:hover { background: #eef1f5; color: var(--c2c-text); }
.c2cx-close svg { width: 18px; height: 18px; }

.c2cx-sheet-search { padding: 0 20px 12px; }
.c2cx-sheet-search input {
    width: 100%; height: 46px; padding: 0 16px 0 44px;
    border: 1.5px solid var(--c2c-border); border-radius: 12px;
    font-size: 14.5px; color: var(--c2c-text);
    background: var(--c2c-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 15px center;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.c2cx-sheet-search input:focus { outline: none; border-color: var(--c2c-accent); background-color: var(--c2c-surface); box-shadow: 0 0 0 4px var(--c2c-accent-soft); }

.c2cx-sheet-list { flex: 1 1 auto; overflow-y: auto; padding: 4px 12px 8px; scrollbar-width: thin; }
.c2cx-sheet-list::-webkit-scrollbar { width: 8px; }
.c2cx-sheet-list::-webkit-scrollbar-thumb { background: #d6dde6; border-radius: 8px; }

.c2cx-row {
    width: 100%; display: flex; align-items: center; gap: 13px;
    padding: 11px 12px; border: none; background: transparent;
    border-radius: 13px; cursor: pointer; text-align: left;
    transition: background .13s ease;
}
.c2cx-row:hover { background: var(--c2c-surface-2); }
.c2cx-row.is-selected { background: var(--c2c-accent-soft); }

.c2cx-row-meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.c2cx-row-name { font-size: 15px; font-weight: 650; color: var(--c2c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c2cx-row-sub { font-size: 12px; font-weight: 600; color: var(--c2c-muted); letter-spacing: .02em; }

.c2cx-row-arrow { width: 18px; height: 18px; color: #c2cad6; flex: 0 0 auto; }
.c2cx-row-check { width: 20px; height: 20px; color: var(--c2c-accent); flex: 0 0 auto; }

.c2cx-sheet-foot { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 20px 16px; font-size: 11.5px; color: var(--c2c-muted); border-top: 1px solid var(--c2c-border); }

@media (max-width: 540px) {
    .c2cx-overlay { padding: 0; align-items: flex-end; }
    .c2cx-sheet { max-width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; animation: c2cx-up .22s cubic-bezier(.34,1.4,.64,1); }
    @keyframes c2cx-up { from { transform: translateY(100%); } to { transform: none; } }
}

/* ===========================================================================
 * Cleaner, Coinbase-like on-site payment screen refinements (override)
 * ======================================================================== */
.c2c-pay { max-width: 440px; border-radius: 22px; box-shadow: 0 20px 50px rgba(15,23,42,0.12); }
.c2c-qr img { width: 220px; height: 220px; border-radius: 16px; }
.c2c-amount__value { font-size: 30px; }
.c2c-steps { display: none; }

/* ===========================================================================
 * v2.3.0 refinements
 * ======================================================================== */
.c2cx-sheet-head   { padding: 20px 24px 12px; }
.c2cx-sheet-search { padding: 0 24px 14px; }
.c2cx-sheet-list   { padding: 6px 16px 10px; }
.c2cx-row          { padding: 12px 12px; gap: 14px; }
.c2cx-sheet-foot   { padding: 14px 24px 18px; }
.c2cx-sheet        { max-width: 420px; }

/* Remove the small "CARD2CRYPTO" brand badge at the top of the pay screen */
.c2c-pay__brand { display: none; }
.c2c-pay__head  { padding-top: 22px; }

/* Bolder payment address */
.c2c-address__value { font-weight: 700; color: var(--c2c-text); letter-spacing: .01em; }

/* ===========================================================================
 * v2.3.1 — align modal row highlight with the search box (equal side inset)
 * ======================================================================== */
.c2cx-sheet-head   { padding: 20px 20px 12px !important; }
.c2cx-sheet-search { padding: 0 20px 14px !important; }
.c2cx-sheet-list   { padding: 4px 20px 12px !important; }
.c2cx-row          { padding: 12px 10px !important; gap: 14px !important; }
.c2cx-sheet-foot   { padding: 14px 20px 18px !important; }
.c2cx-row.is-selected, .c2cx-row:hover { border-radius: 12px; }

/* v2.3.2 — final modal inset alignment (kept in sync with inline JS styles) */
.c2cx-sheet-head   { padding: 20px 18px 12px !important; }
.c2cx-sheet-search { padding: 0 18px 14px !important; }
.c2cx-sheet-list   { padding: 4px 18px 12px !important; }
.c2cx-row          { padding: 12px 8px !important; }
.c2cx-sheet-foot   { padding: 14px 18px 18px !important; }

/* ===========================================================================
 * v2.4.2 — search field (no overlapping icon, theme-proof padding) +
 * compact coin rows (ticker/network beside the name)
 * ======================================================================== */
.c2c-search input,
.c2cx-sheet-search input {
    background-image: none !important;
    padding-left: 16px !important;
}

/* Coin name + ticker/network on a single line for shorter rows */
.c2c-coin { padding: 10px 12px !important; }
.c2c-coin-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0;
    flex-wrap: nowrap;
}
.c2c-coin-name {
    display: inline-block !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.c2c-coin-chain { margin-top: 0 !important; flex: 0 0 auto; }

/* ===========================================================================
 * v2.5.1 — two-step coin then blockchain checkout flow
 * ======================================================================== */
.c2c-choice-step + .c2c-choice-step {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--c2c-border);
}

.c2c-coin-select,
.c2c-choice-step,
.c2c-coin-grid {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.c2c-choice-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: var(--c2c-text);
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0;
}

.c2c-choice-title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border-radius: 50%;
    background: var(--c2c-accent);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.c2c-coin-grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 9px;
}

button.c2c-coin {
    width: 100%;
    min-width: 0;
    min-height: 66px;
    color: var(--c2c-text);
    font: inherit;
    text-align: left;
    appearance: none;
}

button.c2c-coin:focus-visible,
.c2c-network-option:has(input:focus-visible) {
    outline: 3px solid var(--c2c-accent-soft);
    outline-offset: 2px;
    border-color: var(--c2c-accent);
}

.c2c-coin-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center;
    gap: 1px !important;
    flex: 1 1 auto;
    overflow: visible;
}

.c2c-coin-ticker {
    flex: 0 0 auto;
    color: var(--c2c-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.c2c-coin-name {
    display: block !important;
    width: 100%;
    color: var(--c2c-muted);
    font-size: 11.5px !important;
    font-weight: 550;
    line-height: 1.25;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
}

.c2c-coin-arrow {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: #a8b2c1;
}

.c2c-coin.is-selected .c2c-coin-arrow {
    color: var(--c2c-accent);
}

.c2c-network-prompt {
    margin: 0 0 11px;
    color: var(--c2c-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.c2c-network-selected {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: -2px 0 7px;
    padding: 8px 10px;
    border-left: 3px solid var(--c2c-accent);
    border-radius: 0 6px 6px 0;
    background: var(--c2c-accent-soft);
}

.c2c-network-selected[hidden] {
    display: none !important;
}

.c2c-network-selected-ticker {
    flex: 0 0 auto;
    color: var(--c2c-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.c2c-network-selected-name {
    min-width: 0;
    color: var(--c2c-muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.c2c-coin-select.is-enhanced:not(.has-coin) .c2c-network-list {
    display: none;
}

.c2c-network-list {
    display: grid;
    gap: 8px;
}

.c2c-network-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 57px;
    padding: 10px 12px;
    border: 1.5px solid var(--c2c-border);
    border-radius: 8px;
    background: var(--c2c-surface);
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.c2c-network-option[hidden] {
    display: none !important;
}

.c2c-network-option:hover {
    border-color: var(--c2c-accent-border);
    background: var(--c2c-surface-2);
}

.c2c-network-option.is-selected,
.c2c-network-option:has(input:checked) {
    border-color: var(--c2c-accent);
    background: var(--c2c-accent-soft);
    box-shadow: 0 0 0 1px var(--c2c-accent);
}

.c2c-network-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.c2c-network-radio {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid #bac4d1;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px var(--c2c-surface);
    background: var(--c2c-surface);
}

.c2c-network-option.is-selected .c2c-network-radio,
.c2c-network-option:has(input:checked) .c2c-network-radio {
    border-color: var(--c2c-accent);
    background: var(--c2c-accent);
}

.c2c-network-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.c2c-network-name {
    color: var(--c2c-text);
    font-size: 14px;
    font-weight: 700;
}

.c2c-network-coin {
    color: var(--c2c-muted);
    font-size: 11.5px;
}

.c2cx-trigger.has-selection {
    border-color: var(--c2c-accent-border);
}

.c2cx-trigger-detail {
    display: block;
    color: var(--c2c-muted);
    font-size: 11.5px;
    font-weight: 550;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

.c2cx-sheet-head {
    justify-content: flex-start !important;
    gap: 10px;
}

.c2cx-sheet-heading {
    min-width: 0;
    flex: 1 1 auto;
}

.c2cx-sheet-step {
    display: block;
    margin-bottom: 2px;
    color: var(--c2c-accent);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.c2cx-sheet-selected-coin {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 3px;
}

.c2cx-sheet-coin-ticker {
    color: var(--c2c-text);
    font-size: 14px;
    font-weight: 800;
}

.c2cx-sheet-coin-name {
    min-width: 0;
    color: var(--c2c-muted);
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.c2cx-back {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--c2c-surface-2);
    color: var(--c2c-text);
    cursor: pointer;
}

.c2cx-back svg {
    width: 18px;
    height: 18px;
}

.c2cx-close {
    flex: 0 0 34px;
    margin-left: auto;
}

.c2cx-network-row .c2cx-row-name {
    white-space: normal;
}

.c2cx-row-sub {
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .c2c-coin-select {
        overflow-x: hidden;
    }

    .c2c-coin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    button.c2c-coin {
        gap: 8px;
        padding: 9px !important;
        min-height: 68px;
    }

    .c2c-coin-logo {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .c2c-coin-name {
        font-size: 11px !important;
    }

    .c2c-coin-ticker {
        font-size: 15px;
    }

    .c2cx-trigger {
        gap: 9px;
        padding: 11px 12px;
    }

    .c2cx-trigger-name {
        font-size: 14px;
        white-space: normal;
    }

    .c2cx-trigger-change {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c2c-coin,
    .c2c-network-option,
    .c2cx-overlay,
    .c2cx-sheet {
        animation: none !important;
        transition: none !important;
    }
}
