/* Restart Transaction Overlay Styles - Updated for new design */
#restart-transaction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    font-family: 'Bangers', cursive;
}

#restart-transaction-container {
    background-color: var(--primary-blue, #3a86ff);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    border: 5px solid var(--primary-black, #1a1a1a);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    width: 80%;
    box-shadow: 10px 10px 0px var(--primary-black, #1a1a1a);
    position: relative;
}

#restart-transaction-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 3px 3px 0px var(--primary-black, #1a1a1a);
    letter-spacing: 1px;
}

#restart-transaction-status {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.5;
    color: white;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    position: relative;
}

/* Add arrow pointing to MetaMask popup location */
#restart-transaction-status::after {
    content: "👆";
    position: absolute;
    top: -30px;
    right: 30px;
    font-size: 24px;
    animation: bounce 1s infinite alternate;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.5);
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* Add animation to draw attention */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#restart-transaction-container {
    animation: pulse 2s infinite;
}

#restart-transaction-cancel {
    font-family: 'Bangers', cursive;
    background-color: var(--primary-yellow, #ffde00);
    color: var(--primary-black, #1a1a1a);
    border: 3px solid var(--primary-black, #1a1a1a);
    border-radius: 5px;
    padding: 12px 30px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 4px 4px 0px var(--primary-black, #1a1a1a);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    margin-top: 15px;
}

#restart-transaction-cancel:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--primary-black, #1a1a1a);
}

#restart-transaction-cancel:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

#restart-transaction-cancel::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    transform: skewX(-30deg);
}

#restart-transaction-cancel:hover::before {
    left: 100%;
}

/* Loading spinner */
.transaction-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 222, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-yellow, #ffde00);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(255, 222, 0, 0.5);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #restart-transaction-container {
        width: 90%;
        padding: 20px;
    }
    
    #restart-transaction-title {
        font-size: 28px;
    }
    
    #restart-transaction-status {
        font-size: 16px;
    }
    
    #restart-transaction-cancel {
        font-size: 18px;
        padding: 10px 25px;
    }
    
    .transaction-spinner {
        width: 50px;
        height: 50px;
    }
}