/**
 * Hezarfen Pro Deactivation Wizard Styles
 */

/* Modal Overlay */
.hez-pro-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.hez-pro-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

/* Modal Content */
.hez-pro-modal-content {
    position: relative;
    background: #fff;
    max-width: 600px;
    margin: 50px auto;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: hez-pro-modal-slide-in 0.3s ease-out;
    z-index: 1000000;
}

@keyframes hez-pro-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.hez-pro-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e5e5e5;
}

.hez-pro-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Modal Body */
.hez-pro-modal-body {
    padding: 30px;
    color: #555;
    line-height: 1.8;
}

.hez-pro-modal-body p {
    margin: 0 0 15px;
    font-size: 15px;
}

.hez-pro-modal-body p:last-child {
    margin-bottom: 0;
}

.hez-pro-order-count {
    margin-top: 20px;
    padding: 15px;
    background: #f0f7ff;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

.hez-pro-order-count strong {
    color: #2271b1;
    font-size: 16px;
}

/* Processing Message */
.hez-pro-processing-message {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

.hez-pro-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: hez-pro-spin 1s linear infinite;
    margin-bottom: 10px;
}

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

.hez-pro-processing-message p {
    margin: 0;
    font-weight: 600;
    color: #2271b1;
}

/* Messages */
.hez-pro-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

.hez-pro-message.hez-pro-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.hez-pro-message.hez-pro-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Modal Footer */
.hez-pro-modal-footer {
    padding: 20px 30px;
    background: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hez-pro-modal-footer button {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

/* Primary Button (Green) */
.hez-pro-modal-footer .button-primary.hez-pro-move-orders {
    background: #28a745;
    color: #fff;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.hez-pro-modal-footer .button-primary.hez-pro-move-orders:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Secondary Button (Gray) */
.hez-pro-modal-footer .button-secondary.hez-pro-deactivate-anyway {
    background: #6c757d;
    color: #fff;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.hez-pro-modal-footer .button-secondary.hez-pro-deactivate-anyway:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Link Button (Blue) */
.hez-pro-modal-footer .button-link.hez-pro-cancel-deactivation {
    background: transparent;
    color: #2271b1;
    text-decoration: none;
    padding: 10px;
    font-weight: 500;
}

.hez-pro-modal-footer .button-link.hez-pro-cancel-deactivation:hover {
    color: #135e96;
    text-decoration: underline;
    background: transparent;
}

/* Disabled State */
.hez-pro-modal-footer button:disabled,
.hez-pro-modal-footer button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Prevent body scroll when modal is open */
body.hez-pro-modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media screen and (max-width: 640px) {
    .hez-pro-modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .hez-pro-modal-header {
        padding: 20px;
    }

    .hez-pro-modal-header h2 {
        font-size: 18px;
    }

    .hez-pro-modal-body {
        padding: 20px;
    }

    .hez-pro-modal-body p {
        font-size: 14px;
    }

    .hez-pro-modal-footer {
        padding: 15px 20px;
    }

    .hez-pro-modal-footer button {
        padding: 10px 15px;
        font-size: 14px;
    }
}