/**
 * My Prescription 模态窗口样式
 */

/* My Prescription 按钮 */
.ep-my-prescription {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;          /* 不再被 flex 拉伸占满整行，改为右对齐 */
    margin: 0 24px 12px 0;         /* 右侧与内容内边距(24px)对齐 */
    padding: 6px 12px;
    background-color: var(--ep-brand-softer);
    color: var(--ep-brand-dark);
    border: 1px solid var(--ep-border);
    border-radius: 999px;          /* 胶囊形小按钮 */
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: all var(--ep-transition);
}

.ep-my-prescription:hover {
    background-color: var(--ep-brand-soft);
    border-color: var(--ep-brand);
}

/* 遮罩层 */
.ep-my-prescription-overlay {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* 模态窗口容器 */
#ep-my-prescription-modal.ep-custom-modal {
    display: none;
    position: fixed;
    z-index: 1000001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 24px;
    box-sizing: border-box;
}

/* 模态窗口内容 */
.ep-my-prescription-content {
    background-color: var(--ep-surface);
    margin: 5% auto;
    padding: 24px;
    width: 100%;
    max-width: 640px;
    border-radius: var(--ep-radius-lg);
    box-shadow: var(--ep-shadow-lg);
    position: relative;
}

/* 关闭按钮 */
.ep-my-prescription-close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    color: var(--ep-muted);
    line-height: 1;
    transition: color var(--ep-transition);
}

.ep-my-prescription-close:hover {
    color: var(--ep-ink);
}

/* 模态窗口内容区域 */
.ep-my-prescription-body {
    margin-top: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.ep-my-prescription-content h3 {
    margin: 0;
    padding-right: 28px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ep-ink);
}

body.ep-modal-my-prescription-open {
    overflow: hidden;
}
