/**
 * 自定义密码弹窗样式
 * (文件路径: /inc/custom-password-modal/modal-style.css)
 * [已添加居中样式]
 */

/* 1. 遮罩层样式 */
.password-modal-overlay {
    position: fixed; /* 固定定位，覆盖全屏 */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55); /* 半透明黑色背景 */
    z-index: 99998; /* 确保在最顶层 */
    
    /* 使用 Flex 居中弹窗 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 使用 backdrop-filter 来模糊背景 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* 兼容 Safari */
}

/* 2. 弹窗内容框 */
.password-modal-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px; /* 弹窗最大宽度 */
    text-align: center; /* << 确保表单等内容居中 */
    z-index: 99999;
    filter: none; 
}

/* 3. 图文提示区域 (已修改) */
.password-modal-prompt {
    /* [修复] 明确设置此容器内的所有内容都居中 */
    text-align: center; 
    margin-bottom: 1.5rem;
}

.password-prompt-image {
    max-width: 150px; /* 限制提示图片大小 */
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: inline-block; /* 确保图片可以被 text-align 居中 */
}

.password-prompt-text {
    font-size: 1.1rem;
    color: #333;
    /* 移除了多余的 margin-bottom，统一由父级 .password-modal-prompt 控制 */
}

/* 4. 表单样式 */
.password-modal-form p {
    margin-bottom: 1rem;
}

.password-modal-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box; 
}

.password-modal-submit {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background-color: #0073aa; /* WordPress 默认蓝色 */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.password-modal-submit:hover {
    background-color: #005a87;
}