/**
 * Deactivation Feedback Modal Styles
 * Creative Scroll To Top Button
 */

/* Modal Overlay */
.creative-scroll-to-top-button-deactivate-feedback-dialog-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.creative-scroll-to-top-button-deactivate-feedback-dialog-wrapper.show {
    display: flex;
}

/* Modal Container */
.creative-scroll-to-top-button-feedback-modal {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 3px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 20px;
}

/* Modal Header */
#creative-scroll-to-top-button-deactivate-feedback-dialog-header {
    margin-bottom: 15px;
}

#creative-scroll-to-top-button-deactivate-feedback-dialog-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #23282d;
    margin-left: 10px;
}

.creative-scroll-to-top-button-feedback-icon {
    color: #72777c;
    font-size: 20px;
}

/* Form Caption */
#creative-scroll-to-top-button-deactivate-feedback-dialog-form-caption {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Form Body */
#creative-scroll-to-top-button-deactivate-feedback-dialog-form-body {
    margin-bottom: 15px;
}

/* Input Wrapper */
.creative-scroll-to-top-button-deactivate-feedback-dialog-input-wrapper {
    margin-bottom: 12px;
}

/* Radio Inputs */
.creative-scroll-to-top-button-deactivate-feedback-dialog-input {
    margin-right: 8px;
    vertical-align: top;
    margin-top: 2px;
}

/* Labels */
.creative-scroll-to-top-button-deactivate-feedback-dialog-label {
    display: inline-flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: #23282d;
}

.creative-scroll-to-top-button-deactivate-feedback-dialog-label:hover {
    color: #0073aa;
}

/* Textarea Fields */
.creative-scroll-to-top-button-feedback-text {
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    display: none;
}

.creative-scroll-to-top-button-feedback-text:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* Error Message */
.creative-scroll-to-top-button-api-error {
    color: #d63638;
    margin-bottom: 10px;
    font-size: 13px;
}

/* Modal Footer */
.creative-scroll-to-top-button-modal-footer {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* Buttons */
.creative-scroll-to-top-button-modal-footer .button {
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
    border: 1px solid;
    transition: all 0.2s ease;
}

.creative-scroll-to-top-button-modal-footer .button-primary {
    background: #0073aa;
    border-color: #006799;
    color: #fff;
}

.creative-scroll-to-top-button-modal-footer .button-primary:hover {
    background: #005a87;
    border-color: #004b72;
}

.creative-scroll-to-top-button-modal-footer .button-primary:disabled {
    background: #ccc !important;
    border-color: #bbb !important;
    color: #666 !important;
    cursor: not-allowed !important;
}

.creative_scroll_to_top_button_skip_and_deactivate {
    background: #f3f5f6;
    border-color: #bbb;
    color: #555;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 3px;
    border: 1px solid #bbb;
    font-size: 13px;
    line-height: 1.4;
}

.creative_scroll_to_top_button_skip_and_deactivate:hover {
    background: #f1f1f1;
    border-color: #999;
    color: #23282d;
    text-decoration: none;
}

.creative-scroll-to-top-button-modal-footer .button:focus {
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    .creative-scroll-to-top-button-feedback-modal {
        width: 95%;
        margin: 10px;
        padding: 15px;
    }

    .creative-scroll-to-top-button-modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .creative-scroll-to-top-button-modal-footer .button,
    .creative_scroll_to_top_button_skip_and_deactivate {
        width: 100%;
        text-align: center;
    }
}

/* Loading Animation */
.creative-scroll-to-top-button-modal-footer .button-primary:disabled::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide modal by default */
.creative-scroll-to-top-button-deactivate-feedback-dialog-wrapper {
    display: none;
}

.creative-scroll-to-top-button-deactivate-feedback-dialog-wrapper.show {
    display: flex !important;
}
