/* CPAP Prescription Upload Styles */

.cpap-prescription-container {

    padding: 0;
    width: 100%;
    margin-top:10px;
    order: 999;
}
.cart.sticky .cpap-prescription-container {
    display:none!important;
}
.cpap-prescription-input {
    display: block;
}

/* Upload button label */
.cpap-upload-label {
    display: block;
    color: #8cc63f;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
   
    text-align: left;
}

.cpap-upload-label:hover {
    text-decoration: underline;
}

/* Hide upload label when file is selected */
.cpap-prescription-container.has-file .cpap-upload-label {
    display: none;
}

/* Hide the actual file input */
.cpap-prescription-input input[type="file"] {
    display: none;
}

/* File display area - shows filename and remove link after upload */
.cpap-prescription-display {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin: 15px 0;
}

.cpap-prescription-display.active {
    display: flex;
}

.cpap-prescription-label {
    color: #8cc63f;
    font-weight: 500;
}

.cpap-file-name {
    color: #8cc63f;
    font-weight: 500;
}

.cpap-remove-prescription {
    color: #dc3545 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    font-size: 16px !important;
    text-decoration: none !important;
    font-weight: 500;
}

.cpap-remove-prescription:hover {
    text-decoration: underline !important;
    color: #c82333 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cpap-prescription-display {
        flex-wrap: wrap;
    }
    
    .cpap-prescription-display.active {
        font-size: 14px;
    }
}

/* Prescription Order Meta Box Styles */
.cpap-prescription-order-info {
    max-height: 300px;
    overflow-y: auto;
}

.cpap-prescription-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cpap-prescription-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
