.survey-requirement-notice {
    display: none; /* Hide the original notice since we're using popup */
}

.survey-requirement-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
}

.survey-requirement-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    max-width: 800px; /* Increased to accommodate survey */
    width: 90%;
    max-height: 90vh; /* Maximum height of 90% of viewport height */
    overflow-y: auto; /* Allow scrolling if survey is long */
}

.survey-requirement-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    z-index: 1; /* Ensure it's above survey content */
}

.survey-requirement-popup-close:hover {
    background: #f0f0f0;
}

.survey-requirement-popup-content {
    position: relative;
}

.survey-requirement-popup-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #23282d;
    text-align: center;
}

.survey-requirement-popup-survey {
    /* Add any specific styling for the survey container if needed */
    margin: 0 auto;
}

.survey-requirement-popup-content:before {
    content: "\f348";
    font-family: dashicons;
    font-size: 48px;
    color: #007cba;
    display: block;
    margin-bottom: 20px;
}

.survey-requirement-popup-message {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.survey-requirement-popup-button {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
}

.survey-requirement-popup-button:hover {
    background: #006ba1;
    color: white;
}

/* Loading Spinner */
.survey-loading-overlay {
    display: none;                /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;

    justify-content: center;      /* center horizontally */
    align-items: center;          /* center vertically */
}
.survey-loading-overlay.active {
    display: flex;                /* only when active */
}

.survey-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Retake Survey Button Styles */
.retake-survey-btn {
    background: #BB9A2A !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 3px !important;
    font-size: 0.9em !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    margin-top: 5px !important;
    display: inline-block !important;
}

.retake-survey-btn:hover {
    background: #A88A1F !important;
    color: white !important;
    text-decoration: none !important;
}

.retake-survey-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(187, 154, 42, 0.3) !important;
}

/* Pending Products Table Enhancements */
.woocommerce-table--pending-products .retake-survey-btn {
    margin-left: 5px;
    font-size: 0.8em;
    padding: 6px 12px;
}

/* Responsive design for retake button */
@media (max-width: 768px) {
    .retake-survey-btn {
        display: block !important;
        width: 100%;
        margin-top: 8px !important;
        text-align: center;
    }
    
    .woocommerce-table--pending-products .retake-survey-btn {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* SweetAlert Popup Retake Button Styles */
.swal2-popup #retake-survey-btn,
.swal2-popup #retake-survey-btn-popup,
.swal2-popup .retake-survey-btn {
    background: #BB9A2A !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 3px !important;
    font-size: 0.9em !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    margin-top: 10px !important;
    display: inline-block !important;
    font-family: inherit !important;
}

.swal2-popup #retake-survey-btn:hover,
.swal2-popup #retake-survey-btn-popup:hover,
.swal2-popup .retake-survey-btn:hover {
    background: #A88A1F !important;
    color: white !important;
    text-decoration: none !important;
}

.swal2-popup #retake-survey-btn:focus,
.swal2-popup #retake-survey-btn-popup:focus,
.swal2-popup .retake-survey-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(187, 154, 42, 0.3) !important;
}

/* Call Requests Table Responsive Styles */
.woocommerce-call-requests {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.woocommerce-table--call-requests {
    width: 100%;
    min-width: 600px;
}

.woocommerce-table--call-requests th,
.woocommerce-table--call-requests td {
    padding: 12px 8px;
    text-align: left;
    vertical-align: middle;
}

.woocommerce-table--call-requests .button {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
}

/* Mobile Responsive - Card Layout */
@media (max-width: 768px) {
    .woocommerce-call-requests {
        overflow-x: visible;
    }
    
    .woocommerce-table--call-requests {
        display: block;
        min-width: 100%;
        border: none;
    }
    
    .woocommerce-table--call-requests thead {
        display: none;
    }
    
    .woocommerce-table--call-requests tbody {
        display: block;
    }
    
    .woocommerce-table--call-requests tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .woocommerce-table--call-requests td {
        display: block;
        padding: 8px 0;
        text-align: left;
        border: none;
        border-bottom: 1px solid #eee;
    }
    
    .woocommerce-table--call-requests td:last-child {
        border-bottom: none;
        padding-top: 12px;
    }
    
    .woocommerce-table--call-requests td:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 100px;
        margin-right: 10px;
        color: #666;
    }
    
    .woocommerce-table--call-requests .button {
        width: 100%;
        display: block;
        text-align: center;
        margin-top: 8px;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    .woocommerce-table--call-requests td {
        font-size: 14px;
    }
    
    .woocommerce-table--call-requests td:before {
        width: 80px;
        font-size: 13px;
    }
    
    .woocommerce-table--call-requests .button {
        font-size: 13px;
        padding: 10px;
    }
} 