/* =================================================================
   PRICING-POPUP.CSS - Quantity-Based Pricing Popup Styles
   Delta Foremost Chemical Corp. Quote Form
   ================================================================= */

/* =================================================================
   POPUP OVERLAY & MODAL
   ================================================================= */

/* Main Popup Overlay */
#pricingPopup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Popup Content Container */
.popup-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* =================================================================
   POPUP HEADER
   ================================================================= */

.popup-header {
    background-color: #027b47;
    color: #ffffff;
    padding: 18px 20px;
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Close Button */
.close-popup {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-popup:hover {
    opacity: 0.8;
}

/* =================================================================
   PRODUCT INFO SECTION
   ================================================================= */

.product-info {
    background-color: #ffffff;
    padding: 20px 25px;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.product-info h4 {
    margin: 0 0 10px 0;
    color: #027b47;
    font-size: 1.3em;
    font-weight: 600;
}

.product-info p {
    margin: 6px 0;
    line-height: 1.5;
    color: #333;
}

.product-info p strong {
    color: #555;
}

.product-info .popup-instruction {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
    margin-top: 12px;
}

/* =================================================================
   PRICING TABLE
   ================================================================= */

.pricing-table-container {
    padding: 20px 25px;
    max-height: 400px;
    overflow-y: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

/* Table Header */
.pricing-table thead {
    background-color: #f5f5f5;
}

.pricing-table th {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
    text-transform: uppercase;
    border: 1px solid #ddd;
    width: 50%;
}

/* Table Body */
.pricing-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid #ddd;
}

.pricing-table tbody tr:hover {
    background-color: #f0f0f0;
}

.pricing-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 0.95em;
    width: 50%;
}

/* Quantity Column Styling */
.pricing-table td:first-child {
    font-weight: 600;
    color: #333;
}

/* Price Column Styling */
.pricing-table td:last-child {
    font-weight: 600;
    color: #333;
}

/* =================================================================
   POPUP FOOTER
   ================================================================= */

.popup-footer {
    padding: 15px 25px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
}

.popup-note {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #555;
}

.popup-note strong {
    color: #333;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* Mobile Styles */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 2% auto;
    }

    .popup-header {
        padding: 15px 18px;
        font-size: 1.1em;
    }

    .product-info {
        padding: 15px 20px;
    }

    .pricing-table-container {
        padding: 15px 20px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 8px;
        font-size: 0.85em;
    }

    .popup-footer {
        padding: 12px 20px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .popup-content {
        width: 98%;
        margin: 1% auto;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 6px;
    }
}
