/* ==========================================
   WEB3-КОШЕЛЕК
   ========================================== */

.web3-wallet-header {
    margin-left: 0;
}

.web3-wallet-button {
    min-width: 0;
}

.web3-wallet-button-connected {
    gap: 7px;
}

.web3-wallet-button-connected::after {
    width: 0;
    height: 0;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-top: 5px solid currentColor;
    content: "";
}

.web3-wallet-dropdown {
    min-width: 150px;
    padding: 4px;
}

.web3-wallet-disconnect {
    width: 100%;
    height: auto;
    padding: 9px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #222222;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
}

.web3-wallet-disconnect:hover {
    background: #f3f4f6;
    color: #222222;
}

.web3-wallet-disconnect:active {
    transform: none;
}

.web3-wallet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.web3-wallet-list-title {
    margin-bottom: 2px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.web3-provider-button {
    width: 100%;
    height: auto;
    min-height: 60px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-bg);
    color: var(--text-color);
    text-align: left;
}

.site-modal .web3-provider-button:hover {
    border-color: var(--border-color);
    background: var(--border-color);
    color: var(--text-color);
}

.site-modal .web3-provider-button:active {
    transform: none;
}

.web3-provider-icon {
    display: block;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 8px;
}

.web3-wallet-button-provider-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 5px;
}

.web3-provider-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.web3-provider-name {
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
}

.web3-provider-rdns {
    max-width: 220px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.web3-wallet-empty {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text-secondary);
    font-size: 14px;
}

#web3-wallet-modal .site-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

#web3-wallet-modal .site-modal-window {
    max-width: 400px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: web3-wallet-modal-in 0.2s ease;
}

#web3-wallet-modal .site-modal-title {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

#web3-wallet-modal .site-modal-actions {
    margin-top: 20px;
}



@keyframes web3-wallet-modal-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.web3-wallet-disconnect-modal .site-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.web3-wallet-disconnect-modal .site-modal-window {
    max-width: 400px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: web3-wallet-modal-in 0.2s ease;
}

.web3-wallet-disconnect-modal .site-modal-title {
    margin-bottom: 22px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

.web3-wallet-disconnect-modal .site-modal-actions {
    gap: 10px;
}

.web3-wallet-disconnect-modal .site-modal-actions button {
    min-width: 0;
    height: 38px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}





html[data-theme="dark"] .web3-wallet-disconnect {
    color: var(--text-color);
}

html[data-theme="dark"] .web3-wallet-disconnect:hover {
    background: var(--surface-hover);
    color: var(--text-color);
}

/* ==========================================
   WEB3 — ВЫБОР СЕТИ
   ========================================== */

.web3-network-dropdown {
    position: relative;
}

.web3-network-button {
    display: flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.web3-network-button:disabled,
.web3-network-button:disabled:hover {
    cursor: default;
    opacity: 0.5;
}

.web3-network-button-icon,
.web3-network-dropdown-content a img {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    object-fit: contain;
}

.web3-network-dropdown-content {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 1000;
    display: none;
    width: 260px;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.web3-network-dropdown-open > .web3-network-dropdown-content {
    display: block;
}

.web3-network-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
}

.web3-network-dropdown-content a:hover {
    background: var(--border-color);
}

.web3-network-dropdown-content a.web3-network-option-selected {
    background: rgba(255, 216, 93, 0.12);
    color: #c99c00;
}

html[data-theme="dark"] .web3-network-dropdown-content a.web3-network-option-selected {
    color: #ffd85d;
}

.web3-network-dropdown-content a.web3-network-option-focused {
    outline: 1px solid #ffd85d;
}


html[data-theme="dark"] .web3-network-dropdown-content a:hover {
    background: var(--surface-hover);
    color: var(--text-color);
}


