/**
 * 文件上传样式
 */

.upload-your-prescription {
    margin: 16px auto;
    max-width: 720px;
    padding: 16px;
    background-color: var(--ep-bg);
    border-radius: var(--ep-radius);
    border: 1px solid var(--ep-border);
}

.upload-prescription-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.upload-prescription-checkbox input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--ep-brand);
}

.upload-prescription-checkbox label {
    font-weight: 600;
    color: var(--ep-ink);
    cursor: pointer;
}

.upload-prescription-field {
    padding: 14px;
    background-color: var(--ep-surface);
    border-radius: var(--ep-radius-sm);
    border: 1px dashed var(--ep-border-strong);
    margin-top: 8px;
}

.prescription-file-input {
    width: 100%;
    padding: 8px 0;
    font-size: 14px;
}

.upload-prescription-note,
.upload-prescription-tips {
    margin-top: 6px;
    font-size: 13px;
    color: var(--ep-text);
}

.upload-prescription-tips {
    background-color: var(--ep-brand-softer);
    padding: 8px 12px;
    border-radius: var(--ep-radius-sm);
    border-left: 3px solid var(--ep-brand);
    margin-bottom: 10px;
}

.prescription-file-preview {
    margin-top: 15px;
    max-width: 100%;
    text-align: center;
    display: none;
}

.prescription-file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--ep-radius-sm);
    box-shadow: var(--ep-shadow-sm);
}

.prescription-file-preview .pdf-preview {
    padding: 15px;
    background-color: var(--ep-bg);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    color: var(--ep-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prescription-file-preview .pdf-preview svg {
    color: var(--ep-danger);
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.prescription-file-preview .file-name {
    margin-top: 5px;
    font-size: 12px;
    color: var(--ep-muted);
    word-break: break-all;
}

.clear-file-button {
    background-color: var(--ep-danger);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: -10px;
    right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ep-transition);
}

.clear-file-button:hover {
    background-color: #b91c1c;
    transform: scale(1.1);
}

.preview-container {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

/* 购物车中的处方文件显示 */
.ep-prescription-uploaded-file {
    margin: 15px 0;
    padding: 12px;
    background-color: var(--ep-brand-softer);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
}

.ep-uploaded-file-info {
    margin-bottom: 10px;
    font-size: 14px;
}

.ep-uploaded-file-preview {
    text-align: center;
    margin: 10px 0;
}

.ep-prescription-preview-img {
    max-width: 100%;
    max-height: 150px;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    box-shadow: var(--ep-shadow-sm);
}

.ep-uploaded-pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--ep-bg);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-sm);
    color: var(--ep-text);
    margin: 10px 0;
}

.ep-uploaded-pdf-icon svg {
    margin-right: 10px;
}

/* 用户留言部分 */
.user-note-section {
    margin: 16px auto;
    max-width: 720px;
    padding: 16px;
    background-color: var(--ep-bg);
    border-radius: var(--ep-radius);
    border: 1px solid var(--ep-border);
}

.user-note-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-note-checkbox input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--ep-brand);
}

.user-note-checkbox label {
    font-weight: 600;
    color: var(--ep-ink);
    cursor: pointer;
}

.user-note-field {
    padding: 12px;
    background-color: var(--ep-surface);
    border-radius: var(--ep-radius-sm);
    border: 1px dashed var(--ep-border-strong);
    margin-top: 8px;
}

.user-note-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ep-border-strong);
    border-radius: var(--ep-radius-sm);
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ep-ink);
}

.user-note-textarea:focus {
    outline: none;
    border-color: var(--ep-brand);
    box-shadow: var(--ep-ring);
}

.user-note-tips {
    margin-top: 6px;
    font-size: 13px;
    color: var(--ep-text);
    background-color: var(--ep-brand-softer);
    padding: 8px 12px;
    border-radius: var(--ep-radius-sm);
    border-left: 3px solid var(--ep-brand);
}

/* 购物车和订单中的留言显示 */
.ep-user-note {
    margin-top: 12px;
    padding: 10px 12px;
    background-color: var(--ep-accent-soft);
    border-left: 3px solid var(--ep-accent);
    border-radius: 0 var(--ep-radius-sm) var(--ep-radius-sm) 0;
}

.ep-user-note-title {
    font-weight: 600;
    color: var(--ep-accent-deep);
    margin-bottom: 5px;
}

.ep-user-note-content {
    color: var(--ep-text);
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
}
