/*#dps_submit_form{display:none;}*/

.dys-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: dys-fadeIn 0.3s ease;
}

.dys-popup-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    animation: dys-slideIn 0.3s ease;
}

.dys-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #f9f9f9;
}

.dys-popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
}

.dys-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.dys-popup-close:hover {
    background: #e5e5e5;
    color: #333;
}

.dys-popup-body {
    padding: 20px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

#dys-payment-process,
#dys-payment-form,
#dys-payment-activation,
#dys-payment-result {
    text-align: center;
}

.dys-loading {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: dys-spin 1s linear infinite;
    margin: 20px auto;
}

.dys-loading-large {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: dys-spin 1s linear infinite;
    margin: 20px auto;
}

.dys-success {
    color: #27ae60;
    padding: 15px;
    background: #d5f4e6;
    border-radius: 5px;
    border: 1px solid #27ae60;
}

.dys-error {
    color: #e74c3c;
    padding: 15px;
    background: #fadbd8;
    border-radius: 5px;
    border: 1px solid #e74c3c;
}

#dys-yookassa-widget {
    margin: 20px 0;
    min-height: 200px;
}

.dys-buy-subscription-btn {
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.dys-buy-subscription-btn:hover {
    text-decoration: none;
}

/* Стили для прогресса активации */
.dys-activation-progress {
    padding: 20px 0;
}

.dys-activation-progress h4 {
    margin: 15px 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.dys-activation-progress p {
    color: #666;
    margin-bottom: 25px;
}

.dys-progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0 10px 0;
    position: relative;
}

.dys-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #f0f0f0;
    z-index: 1;
}

.dys-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.dys-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 3px solid #f0f0f0;
}

.dys-step-text {
    font-size: 0.85em;
    color: #999;
    text-align: center;
    transition: all 0.3s ease;
}

.dys-step-active .dys-step-number {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.dys-step-active .dys-step-text {
    color: #3498db;
    font-weight: 600;
}

.dys-step-completed .dys-step-number {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.dys-step-completed .dys-step-text {
    color: #27ae60;
}

.dys-step-processing .dys-step-number {
    animation: dys-pulse 1.5s infinite;
}

/* Стили для уведомления об автопродлении */
.dys-auto-renewal-notice {
    display: flex;
    align-items: center;
    background: #e8f4fd;
    border: 1px solid #b6e0fe;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    animation: dys-slideIn 0.5s ease;
}

.dys-auto-renewal-icon {
    font-size: 24px;
    margin-right: 15px;
    animation: dys-rotate 2s linear infinite;
}

.dys-auto-renewal-text {
    text-align: left;
    flex: 1;
}

.dys-auto-renewal-text strong {
    color: #1e6bb8;
    display: block;
    margin-bottom: 5px;
}

.dys-auto-renewal-text small {
    color: #666;
    font-size: 0.9em;
}

@keyframes dys-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dys-slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dys-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dys-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes dys-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@media (max-width: 768px) {
    .dys-popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .dys-popup-header {
        padding: 15px;
    }
    
    .dys-popup-body {
        padding: 15px;
    }
    
    .dys-progress-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .dys-progress-steps::before {
        display: none;
    }
    
    .dys-step {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .dys-step-text {
        text-align: left;
    }
    
    .dys-auto-renewal-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .dys-auto-renewal-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}