/* Delegation dialog (delegate.js): above the Pools window it can open from */
.delegate-overlay {
    z-index: 30;
}

.modal-delegate {
    text-align: left;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-delegate .modal-title {
    padding-right: 32px;
}

.delegate-pool {
    word-break: break-word;
}

.delegate-id {
    font-family: monospace;
    font-size: 0.8rem;
    color: #777;
    word-break: break-all;
}

.delegate-wallets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.delegate-wallet {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding: 10px 12px;
    white-space: nowrap;
}

.delegate-wallet span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.delegate-wallet img {
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 4px;
}

.delegate-wallet,
.delegate-go {
    font: inherit;
    font-size: 1rem;
    color: #333;
    background-color: #fffdf0;
    border: 2px solid #FFD700;
    border-radius: 4px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delegate-wallet:hover,
.delegate-go:hover {
    background-color: #fff5bf;
}

.modal-body p.delegate-fine {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0;
}

.delegate-fine a {
    color: #7a6200;
}

/* The Delegate button beside Copy ID in the pool list */
.pools-delegate {
    font: inherit;
    font-size: 0.8rem;
    color: #7a6200;
    background: #fffdf0;
    border: 1px solid #FFD700;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    white-space: nowrap;
}

.pools-delegate:hover {
    background: #fff5bf;
}

/* The Delegate window: two ways on */
.delegate-choice {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}
