/* ==========================================================================
   WC Prescription Upload — Checkout Styles
   ========================================================================== */

.wcpu-upload-section {
    margin: 24px 0;
    padding: 20px 24px;
    background: #f8fbff;
    border: 1px solid #c7ddf5;
    border-radius: 8px;
}

.wcpu-section-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #1a3c5e;
    margin: 0 0 6px;
}

.wcpu-section-desc {
    color: #555;
    font-size: .9em;
    margin: 0 0 18px;
}

.wcpu-field-wrap {
    margin-bottom: 20px;
}

.wcpu-field-wrap label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* Drag & drop zone */
.wcpu-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 20px;
    background: #fff;
    border: 2px dashed #a0c0e8;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    text-align: center;
}

.wcpu-dropzone:hover,
.wcpu-dropzone.wcpu-drag-over {
    border-color: #2271b1;
    background: #eef5fb;
}

.wcpu-dropzone.wcpu-has-file {
    border-color: #00a046;
    background: #f0fff6;
}

.wcpu-icon {
    font-size: 2em;
    line-height: 1;
}

.wcpu-label-text {
    font-size: .9em;
    color: #555;
}

.wcpu-browse {
    color: #2271b1;
    text-decoration: underline;
    cursor: pointer;
}

.wcpu-file-info {
    font-size: .8em;
    color: #2271b1;
    font-weight: 600;
    display: none;
}

/* Hide default input */
.wcpu-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.wcpu-hint {
    display: block;
    font-size: .78em;
    color: #888;
    margin-top: 5px;
}

/* Photo preview */
.wcpu-preview-wrap {
    margin-top: 10px;
}

.wcpu-preview-wrap img {
    max-width: 130px;
    max-height: 130px;
    border-radius: 6px;
    border: 2px solid #ddd;
    display: block;
}

/* Uploading state */
.wcpu-dropzone.wcpu-uploading-state {
    border-color: #f0a500;
    background: #fffbf0;
}

.wcpu-uploading {
    font-size: .85em;
    color: #f0a500;
    font-weight: 600;
}

/* Validation error highlight */
.wcpu-error .wcpu-dropzone,
.wcpu-dropzone.wcpu-error {
    border-color: #cc1818;
    background: #fff5f5;
}
