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

/* Overlay */
#pda-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 */
#pda-feedback-overlay.is-open {
    display: flex;
}

/* Modal box */
#pda-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: pdaFadeUp 0.25s ease-out;
}

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

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

/* Textarea */
#pda-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 */
#pda-feedback-modal .pda-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

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

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

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


.pda-submit {
	position: relative;
}

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

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

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

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