/* Price Breakdown Iframe Styles */
.price-breakdown-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.price-breakdown-container h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.price-breakdown-container iframe {
    background: white;
    transition: box-shadow 0.3s ease;
}

.price-breakdown-container iframe:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Mobile Price Breakdown Styles */
.price-breakdown-container-mobile {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.price-breakdown-container-mobile h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.price-breakdown-container-mobile iframe {
    background: white;
    transition: box-shadow 0.3s ease;
}

.price-breakdown-container-mobile iframe:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

/* Responsive iframe adjustments */
@media (max-width: 768px) {
    .price-breakdown-container,
    .price-breakdown-container-mobile {
        margin: 10px 0;
        padding: 8px;
    }
    
    .price-breakdown-container h4,
    .price-breakdown-container-mobile h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

/* Prescription Review Modal Styles */

/* Modal Overlay */
#rx-review-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow: auto;
}

#rx-review-overlay > div {
    background-color: white;
    margin: 50px auto;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Validation Errors */
#rx-validation-errors {
    display: none;
    margin: 15px 0;
    padding: 10px;
    background-color: #fff4f4;
    border: 1px solid #ffd6d6;
    border-radius: 5px;
}

#rx-validation-errors ul {
    margin: 0;
    padding-left: 20px;
    color: #d80000;
}

/* Sign Highlighting */
.rx-sign-highlight-plus {
    color: #0066cc;
    font-weight: bold;
}

.rx-sign-highlight-minus {
    color: #cc0000;
    font-weight: bold;
    font-size: 120%; /* Make minus sign larger */
}

/* Animated attention circle */
#attention-circle {
    width: 24px;
    height: 24px;
    background-color: #ff3333;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
}

#attention-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 51, 51, 0.6);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Buttons */
#rx-review-edit, #rx-review-confirm {
    padding: 8px 15px;
    margin-left: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

#rx-review-edit {
    background-color: #f2f2f2;
    color: #333;
}

#rx-review-edit:hover {
    background-color: #e6e6e6;
}

#rx-review-confirm {
    background-color: #4CAF50;
    color: white;
}

#rx-review-confirm:hover {
    background-color: #45a049;
}

#rx-review-confirm:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #rx-review-overlay > div {
        margin: 30px auto;
        width: 95%;
        padding: 15px;
    }
    
    #rx-review-content table {
        font-size: 14px;
    }
}



/* Price Update Animations */
.price-updated {
    animation: priceUpdatePulse 0.6s ease-in-out;
}

@keyframes priceUpdatePulse {
    0% {
        background-color: transparent;
        transform: scale(1);
    }
    50% {
        background-color: #fff3cd;
        transform: scale(1.05);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}



/* Mobile Total Top Styling */
.mobile-total-top {
    background-color: #e7f3ff;
    border-left: 4px solid #007bff;
    padding-left: 10px;
    margin-bottom: 15px;
}
