/* ===============================
   PDA Deactivation Popup
   =============================== */

/* Overlay */
#ppw-feedback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000; /* Above WP admin */
    display: none; /* MUST be hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Show overlay only when opened via JS */
#ppw-feedback-overlay.is-open {
    display: flex;
}

/* Modal box */
#ppw-feedback-modal {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 22px 24px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    animation: ppwFadeUp 0.25s ease-out;
}

/* Title */
#ppw-feedback-modal h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

/* Radio options */
#ppw-feedback-modal label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #1d2327;
    cursor: pointer;
}

/* Textarea */
#ppw-feedback-modal textarea {
    width: 100%;
    min-height: 80px;
    margin-top: 5px;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccd0d4;
    font-size: 13px;
    resize: vertical;
    margin-bottom: 10px;
}

/* Actions */
#ppw-feedback-modal .ppw-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Skip button */
#ppw-feedback-modal .ppw-skip {
    background: transparent;
    border: none;
    color: #2271b1;
    cursor: pointer;
}

/* Animation */
@keyframes ppwFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    #ppw-feedback-modal {
        max-width: 100%;
        padding: 18px;
    }
}

.ppw-reason-extra textarea {
    margin-top: 8px;
    width: 100%;
}


.ppw-submit {
	position: relative;
}

.ppw-submit .spinner {
	float: none;
	margin: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	visibility: hidden;
}

.ppw-submit.loading .ppw-btn-text {
	visibility: hidden;
}

.ppw-submit.loading .spinner {
	visibility: visible;
}

#better_plugin_name{
    width: 100%;
    margin-bottom: 10px;
    font-size: 13px;
}