/* Cold/hardware wallet selector extension.  The original five wallet rows keep
   their remote pay.css styling; this file only owns the added groups. */
.cold-wallet-group {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid rgba(39, 121, 255, 0.18);
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.78);
}

#wallets .wallet-capability-status {
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(20, 128, 94, 0.09);
    color: #14805e;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.cold-wallet-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
    padding: 0 14px;
    color: #19273d;
    cursor: pointer;
    font-weight: 750;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.cold-wallet-group > summary::-webkit-details-marker {
    display: none;
}

.cold-wallet-group > summary::after {
    content: "＋";
    flex: 0 0 auto;
    color: #71819a;
    font-size: 18px;
    line-height: 1;
}

.cold-wallet-group[open] > summary::after {
    content: "－";
}

.cold-wallet-group > summary small {
    margin-left: auto;
    color: #738097;
    font-size: 12px;
    font-weight: 600;
}

.cold-wallet-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0 10px 10px;
    list-style: none;
}

.cold-wallet-list > li {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 66px;
    padding: 10px;
    border: 1px solid rgba(72, 100, 143, 0.16);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
    -webkit-tap-highlight-color: transparent;
}

.cold-wallet-list > li:active {
    transform: scale(0.985);
}

.cold-wallet-list > li.cold-wallet-selected {
    border-color: #2b8cff;
    box-shadow: 0 0 0 2px rgba(43, 140, 255, 0.12);
}

.cold-wallet-list img {
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
}

.cold-wallet-list li > span {
    min-width: 0;
    overflow: hidden;
    color: #1f2b3c;
    font-size: 14px;
    font-weight: 720;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cold-wallet-status {
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 680;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cold-wallet-status--mapped {
    color: #14805e;
}

.cold-wallet-status--injected {
    color: #286fd2;
}

.cold-wallet-status--direct {
    color: #087a5b;
}

.cold-wallet-status--guide {
    color: #a3660c;
}

.cold-wallet-status--bridge {
    color: #965074;
}

.cold-wallet-status--unsupported {
    color: #a53b3b;
}

.cold-wallet-list > li[data-capability="unsupported"] {
    border-color: rgba(165, 59, 59, 0.16);
    background: #fffafa;
}

.cold-wallet-list input[type="radio"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    opacity: 0;
}

.cold-wallet-safety-note {
    margin: 12px 4px 0;
    color: #6c788d;
    font-size: 12px;
    line-height: 1.55;
}

#walletModal[data-cold-wallet-guide="true"] .modal-title {
    padding-right: 28px;
}

#walletModal[data-cold-wallet-guide="true"] .modal-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

#walletModal[data-cold-wallet-guide="true"] .modal-image {
    display: none !important;
}

@media (max-width: 430px) {
    .cold-wallet-list {
        grid-template-columns: 1fr;
    }

    .cold-wallet-group > summary {
        padding: 0 12px;
    }

    .cold-wallet-group > summary small {
        max-width: 48%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (min-width: 760px) {
    .cold-wallet-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
