/* Quote Button Styles */
#product-detail-quote.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Clear All Variations Button */
.dppq-clear-all-variations {
    display: inline-block;
    margin-top: 12px;
    margin-bottom: 16px;
    padding: 6px 14px;
    font-size: 13px;
    color: #dc2626;
    text-decoration: none;
    border: 1px solid #dc2626;
    border-radius: 4px;
    background-color: transparent;
    transition: all 0.2s;
}

.dppq-clear-all-variations:hover {
    background-color: #dc2626;
    color: #ffffff;
    text-decoration: none;
}

.dppq-clear-all-variations:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Tabs Navigation */
.dppq-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.dppq-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.dppq-tab-btn:hover {
    color: #0a3d3d;
}

.dppq-tab-btn.active {
    color: #0a3d3d;
    border-bottom-color: #0a3d3d;
}

/* Tab Content */
.dppq-tab-content {
    display: none;
}

.dppq-tab-content.active {
    display: block;
}

/* Bulk Products Wrapper */
.dppq-bulk-products-wrapper {
    margin-bottom: 24px;
}

.dppq-bulk-actions {
    margin-bottom: 16px;
}

.dppq-select-all-btn {
    padding: 8px 16px;
    background-color: #0a3d3d;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dppq-select-all-btn:hover {
    background-color: #083030;
}

/* Keep user's existing product grid styles */
#product-results {
    /* User's existing styles will be preserved */
}

/* Shortcode Forms */
.dppq-shortcode-form,
.dppq-shortcode-bulk {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dppq-standalone-form .dppq-section {
    margin-bottom: 28px;
}

/* Popup Overlay */
.dppq-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.dppq-popup-open {
    overflow: hidden;
}

/* Popup Container */
.dppq-popup-container {
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
}

/* Popup Header */
.dppq-popup-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.dppq-popup-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

.dppq-popup-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    transition: all 0.2s;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dppq-popup-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.dppq-popup-close:active {
    transform: scale(0.95);
}

/* Popup Body */
.dppq-popup-body {
    padding: 28px;
}

/* Section */
.dppq-section {
    margin-bottom: 28px;
}

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

.dppq-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

/* Product Details */
.dppq-product-details {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.dppq-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.dppq-detail-row:last-child {
    border-bottom: none;
}

.dppq-detail-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.dppq-detail-value {
    color: #111827;
    font-size: 14px;
}

/* Form Styles */
.dppq-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.dppq-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dppq-form-group {
    margin-bottom: 16px;
}

.dppq-form-group:last-child {
    margin-bottom: 0;
}

.dppq-input-wrapper {
    position: relative;
}

.dppq-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.dppq-input-icon.dppq-icon-top {
    top: 16px;
    transform: none;
}

.dppq-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    transition: all 0.2s;
    box-sizing: border-box;
}

.dppq-input:focus {
    outline: none;
    border-color: #0a3d3d;
    box-shadow: 0 0 0 3px rgba(10, 61, 61, 0.1);
}

.dppq-input::placeholder {
    color: #9ca3af;
}

.dppq-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Form Actions */
.dppq-form-actions {
    margin-top: 24px;
}

.dppq-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: #0a3d3d;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dppq-submit-btn:hover {
    background-color: #083030;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dppq-submit-btn:active {
    transform: translateY(0);
}

.dppq-submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.dppq-btn-icon {
    display: flex;
    align-items: center;
}

/* Form Message */
.dppq-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.dppq-form-message.dppq-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.dppq-form-message.dppq-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Responsive */
@media (max-width: 640px) {
    .dppq-popup-container {
        max-height: 95vh;
    }
    
    .dppq-popup-header {
        padding: 20px;
    }
    
    .dppq-popup-header h2 {
        font-size: 18px;
    }
    
    .dppq-popup-body {
        padding: 20px;
    }
    
    .dppq-form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .dppq-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .dppq-tabs-nav {
        flex-direction: column;
        gap: 0;
    }
    
    .dppq-tab-btn {
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 0;
        text-align: left;
    }
}

/* Scrollbar Styling */
.dppq-popup-container::-webkit-scrollbar {
    width: 8px;
}

.dppq-popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.dppq-popup-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.dppq-popup-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}
