/**
 * Delete Account Page Styles
 */

.woocommerce-delete-account {
    max-width: 800px;
    margin: 0 auto;
}

/* Warning banner */
.pp-delete-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.pp-delete-warning strong {
    color: #856404;
}

/* Info sections */
.pp-delete-account-info {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.pp-delete-account-info h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.3em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.pp-info-section {
    margin-bottom: 25px;
}

.pp-info-section:last-child {
    margin-bottom: 0;
}

.pp-info-section h4 {
    color: #555;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.pp-info-section ul {
    list-style: disc;
    padding-left: 25px;
    margin: 0;
}

.pp-info-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #666;
}

/* Highlighted items */
.pp-highlight {
    color: #d32f2f !important;
    font-weight: 500;
}

.pp-critical {
    background-color: #ffebee;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 5px 0;
    list-style: none;
    margin-left: -25px;
    padding-left: 37px;
}

/* Alternatives section */
.pp-alternatives {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #4caf50;
}

.pp-alternatives h4 {
    color: #2e7d32;
}

.pp-alternatives li {
    color: #1b5e20;
}

/* Form */
.pp-delete-account-form {
    background: #fff;
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.pp-form-row {
    margin-bottom: 20px;
}

.pp-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.pp-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.pp-checkbox-text {
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

/* Form actions */
.pp-form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-top: 10px;
}

/* Buttons */
.pp-delete-button {
    background-color: #d32f2f;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pp-delete-button:hover:not(:disabled) {
    background-color: #b71c1c;
    color: #fff;
}

.pp-delete-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pp-delete-button:not(:disabled):active {
    transform: scale(0.98);
}

.pp-cancel-button {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.pp-cancel-button:hover {
    background-color: #e0e0e0;
    color: #333;
    border-color: #bbb;
}

/* Loading state */
.pp-delete-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.pp-delete-button.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 3px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: pp-spinner 0.8s linear infinite;
}

@keyframes pp-spinner {
    to {
        transform: rotate(360deg);
    }
}

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

.pp-delete-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pp-delete-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .pp-delete-account-info {
        padding: 15px;
    }

    .pp-delete-account-form {
        padding: 15px;
    }

    .pp-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pp-form-actions .button {
        width: 100%;
        text-align: center;
    }
}
