/* ════════════════════════════════════════════════════════════════════════════
   RECATOOLS — Ethereum Gas Fee Calculator — style.css
   Tool-specific overrides only.
   Base styles live in /assets/css/tool-page.css.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── ETH price banner ────────────────────────────────────────────────────────── */
.eth-price-banner {
    display:         flex;
    align-items:     center;
    flex-wrap:       wrap;
    gap:             0.5rem 1rem;
    background:      linear-gradient(135deg, #0D1B2A 0%, #2d2a25 100%);
    color:           #FFFFFF;
    border-radius:   12px;
    padding:         0.875rem 1.25rem;
    margin-bottom:   1.5rem;
    font-size:       0.9375rem;
    font-weight:     500;
}
.price-banner-value strong {
    color:       #E8472F;
    font-size:   1.0625rem;
    font-weight: 700;
}
.price-banner-sep {
    color: #64748B;
    font-size: 0.875rem;
}
.price-banner-time {
    color:     #9ca3af;
    font-size: 0.8125rem;
}
.price-banner-loading,
.price-banner-error {
    font-size:  0.875rem;
    font-style: italic;
}
.price-banner-error { color: #f87171; }
.price-banner-loading { color: #d1d5db; }

/* Refresh button inside banner */
.price-refresh-btn {
    background:    transparent;
    border:        1px solid #64748B;
    border-radius: 999px;
    color:         #d1d5db;
    font-size:     0.875rem;
    cursor:        pointer;
    padding:       0.1rem 0.6rem;
    line-height:   1.4;
    transition:    border-color 0.15s, color 0.15s;
    margin-left:   auto;
}
.price-refresh-btn:hover {
    border-color: #E8472F;
    color:        #E8472F;
}

/* ── Speed / transaction preset pills ───────────────────────────────────────── */
.preset-pills {
    display:    flex;
    flex-wrap:  wrap;
    gap:        0.5rem;
    margin-top: 0.5rem;
}
.preset-pill {
    background:    #FFFFFF;
    border:        1.5px solid var(--border, #E2E4E8);
    border-radius: 999px;
    color:         var(--text-secondary, #64748B);
    font-size:     0.8125rem;
    font-weight:   600;
    cursor:        pointer;
    padding:       0.3rem 0.875rem;
    transition:    background 0.15s, border-color 0.15s, color 0.15s;
    white-space:   nowrap;
}
.preset-pill:hover {
    border-color: var(--accent, #E8472F);
    color:        var(--accent, #E8472F);
}
.preset-pill.active {
    background:   var(--accent, #E8472F);
    border-color: var(--accent, #E8472F);
    color:        #fff;
}

/* ── Input rows ──────────────────────────────────────────────────────────────── */
.gas-input-group {
    margin-bottom: 1.25rem;
}
.gas-input-label {
    display:       block;
    font-size:     0.875rem;
    font-weight:   600;
    color:         var(--text-primary, #0D1B2A);
    margin-bottom: 0.375rem;
}
.gas-input-label span {
    color:       var(--text-secondary, #64748B);
    font-weight: 400;
}
.gas-input {
    width:         100%;
    padding:       0.625rem 0.875rem;
    font-size:     1rem;
    font-family:   'IBM Plex Sans', sans-serif;
    font-weight:   600;
    border:        1.5px solid var(--border, #E2E4E8);
    border-radius: 8px;
    background:    #fff;
    color:         var(--text-primary, #0D1B2A);
    transition:    border-color 0.15s;
    box-sizing:    border-box;
}
.gas-input:focus {
    outline:      none;
    border-color: var(--accent, #E8472F);
}

/* ── 3-col result grid (ETH / USD / SGD) ────────────────────────────────────── */
.gas-results-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   1rem;
    margin-top:            1.5rem;
}
@media (max-width: 600px) {
    .gas-results-grid { grid-template-columns: 1fr; }
}

.gas-result-card {
    background:    var(--bg, #FFFFFF);
    border:        1.5px solid var(--border, #E2E4E8);
    border-radius: 12px;
    padding:       1.125rem 1rem 1rem;
    text-align:    center;
}
.gas-result-label {
    font-size:   0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color:       var(--text-secondary, #64748B);
    margin-bottom: 0.375rem;
}
.gas-result-value {
    font-family:  'IBM Plex Serif', serif;
    font-size:    1.375rem;
    font-weight:  700;
    color:        var(--accent, #E8472F);
    word-break:   break-all;
    line-height:  1.25;
}
@media (max-width: 768px) {
    .gas-result-value { font-size: 1.125rem; }
}

/* ── Fallback manual ETH price input ────────────────────────────────────────── */
.fallback-price-row {
    background:    #FFF5F2;
    border:        1.5px dashed #E8472F;
    border-radius: 10px;
    padding:       0.875rem 1rem;
    margin-top:    0.75rem;
    display:       flex;
    align-items:   center;
    gap:           0.75rem;
    flex-wrap:     wrap;
}
.fallback-price-row label {
    font-size:   0.875rem;
    font-weight: 600;
    color:       var(--text-primary, #0D1B2A);
    white-space: nowrap;
}
.fallback-price-row input {
    flex:          1;
    min-width:     120px;
    padding:       0.4rem 0.75rem;
    border:        1.5px solid var(--border, #E2E4E8);
    border-radius: 8px;
    font-size:     0.9375rem;
    font-weight:   600;
    color:         var(--text-primary, #0D1B2A);
}
.fallback-price-row input:focus {
    outline:      none;
    border-color: var(--accent, #E8472F);
}

/* ── Etherscan tip link ──────────────────────────────────────────────────────── */
.gas-notes {
    margin-top:  1.25rem;
    font-size:   0.8125rem;
    color:       var(--text-secondary, #64748B);
    line-height: 1.6;
}
.gas-notes a {
    color:           var(--accent, #E8472F);
    text-decoration: none;
    font-weight:     600;
}
.gas-notes a:hover { text-decoration: underline; }

/* cache-buster: 2026-05-24T05:06:05Z */
