/**
 * Crypto Checkout — Block Checkout Styles
 *
 * Coin-selection cards inside the WooCommerce Block Checkout.
 *
 * @package Crypto_Checkout_Gateway
 * @since   3.0.0
 */

/* Container */
.ccg-block-checkout {
    padding: 4px 0;
}

.ccg-currency-info {
    font-size: 13px;
    color: #65676b;
    margin: 0 0 4px;
}

.ccg-select-label {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 10px;
}

/* Grid */
.ccg-coins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

/* Coin card */
.ccg-coin-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #dcdfe4;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    user-select: none;
}

.ccg-coin-card:hover {
    border-color: #8c8f94;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.ccg-coin-card--selected {
    border-color: #007cba;
    background: #f0f6fc;
    box-shadow: 0 0 0 1px #007cba;
}

/* Hidden radio */
.ccg-coin-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Icon */
.ccg-coin-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.ccg-coin-icon--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e4e7;
    font-size: 16px;
    font-weight: 700;
    color: #50575e;
}

/* Info */
.ccg-coin-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ccg-coin-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e1e1e;
}

.ccg-coin-symbol {
    font-size: 12px;
    color: #757575;
    text-transform: uppercase;
}

/* Block label */
.ccg-block-label {
    font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 480px) {
    .ccg-coins-grid {
        grid-template-columns: 1fr;
    }
}
