.dex-popup-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: var(--window-bg);
    border-radius: 10px;
    color: var(--text-color);
}

.dex-popup-section {
    background-color: var(--input-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    margin-top: 10px;
}

.dex-popup-section h3 {
    color: var(--text-color2);
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dex-popup-section.pending h3 {
    color: var(--text-color-inactive);
}

.dex-popup-section.success h3 {
    color: var(--primary-color);
}

.dex-popup-section.error h3 {
    color: var(--color-red);
}

.dex-status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-color-inactive);
    color: var(--input-bg);
    font-weight: bold;
    animation: none;
}

.dex-popup-section.pending .dex-status-icon {
    background-color: var(--primary-color);
    animation: pulse 1.5s infinite ease-in-out;
}

.dex-popup-section.success .dex-status-icon {
    background-color: var(--primary-color);
}

.dex-popup-section.error .dex-status-icon {
    background-color: var(--color-red);
}

.dex-status-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.dex-popup-message {
    font-size: 14px;
    color: var(--text-color-balance);
    margin-bottom: 10px;
}

.dex-popup-details {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-color-inactive);
    word-break: break-all;
}

.dex-popup-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dex-popup-section .allowance-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.dex-popup-section .allowance-input-group label {
    font-size: 13px;
    color: var(--text-color-balance);
}

.dex-popup-section .allowance-input-group input {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.dex-popup-section .allowance-input-group input::placeholder {
    color: var(--text-color-inactive);
}

.dex-popup-section .allowance-input-group button.btn-approve-allowance {
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.dex-popup-section .allowance-input-group button.btn-approve-allowance:hover {
    background-color: var(--primary-hover);
}

.dex-popup-section .allowance-input-group button.btn-approve-allowance:disabled {
    background-color: var(--input-border);
    color: var(--text-color-inactive);
    cursor: not-allowed;
}

.dex-popup-section .allowance-error-message {
    color: var(--color-red);
    font-size: 12px;
    margin-top: -5px;
    margin-bottom: 5px;
    display: none;
}



@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}


.dex-transaction-complete-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.dex-completion-icon {
    width: 20%;
    height: 20%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--input-bg);
    margin-right: 0;
}

.dex-completion-icon svg {
    width: 100%;
    height: 100%;
}

.animated-tick {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.dex-transaction-succeeded-label {
    margin-top: 6%;
    font-size: 1.6em;
    font-weight: bold;
    color: var(--primary-color);
}
