﻿#step-exchange .form-actions {
    margin-top: 1rem;
}

#step-exchange .alert {
    margin-top: .25rem;
}

#step-exchange .btn {
    min-height: 2.5rem;
}

#exchange-test-state {
    min-height: 1.25rem;
}

/* Horizontal gallery */
.exch-gallery {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding: .25rem .25rem .5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.exch-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    min-width: 120px;
    padding: .75rem .75rem;
    border: 1px solid #e5e7eb; /* light border */
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .06s ease;
}

    .exch-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 2px 6px rgba(16,24,40,.06);
    }

    .exch-card:active {
        transform: scale(.99);
    }

    /* Selected state (syncs with aria-checked) */
    .exch-card[aria-checked="true"] {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 3px rgba(13,110,253,.15);
    }

    /* Focus ring (keyboard) */
    .exch-card:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(13,110,253,.25);
    }

/* Logo + name */
.exch-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.exch-name {
    font-size: .95rem;
    font-weight: 600;
    color: #111827;
}

/* Remove ugly scrollbars (webkit) */
.exch-gallery::-webkit-scrollbar {
    height: 8px;
}

.exch-gallery::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

/*.exchange-tile {
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    transition: box-shadow .2s ease, transform .2s ease;
    min-height: 120px;
}*/
.exchange-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}
    
.exchange-tile svg,
    .exchange-tile img {
        max-width: 64px;
        max-height: 64px;
        width: auto;
        height: auto;
        display: block;
        margin: 0 auto .5rem auto; /* center horizontally with some spacing */
    }

    .exchange-tile:hover:not(:disabled) {
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
        transform: translateY(-2px);
    }

    .exchange-tile.disabled {
        pointer-events: none;
        cursor: not-allowed;
    }

    .exchange-tile .badge {
        font-size: .7rem;
    }