/* QZY V0.5.227：未完成测评入口及取消确认交互 */

/* 首页入口保持在 Logo 右侧，与主页按钮同一水平线，不挤占按钮位置。 */
.age-choice-header {
    gap: 8px;
}

.age-choice-header > img {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 46%;
}

.qzy-reservation-header-actions {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.qzy-reservation-entry,
.brand-head .top-icons .qzy-reservation-entry {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 33px;
    padding: 0 10px;
    border: 1px solid #c8d9f2;
    border-radius: 18px;
    color: #31588f;
    background: #f5f8ff;
    box-shadow: 0 2px 7px rgba(49, 88, 143, .07);
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.qzy-reservation-entry:active,
.brand-head .top-icons .qzy-reservation-entry:active {
    color: #264b80;
    background: #eaf2ff;
    border-color: #a9c2e7;
}

.qzy-reservation-entry span,
.brand-head .top-icons .qzy-reservation-entry span {
    display: inline-flex;
    flex: 0 0 17px;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    min-width: 17px;
    padding: 0;
    border-radius: 50%;
    color: #fff;
    background: #31588f;
    font-size: 10px;
    line-height: 17px;
    font-weight: 700;
}

.qzy-reservation-header-actions .age-choice-home {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
}

/* 取消按钮确保可点击，触屏时不被浏览器双击缩放或默认手势干扰。 */
.qzy-reservation-actions {
    position: relative;
    z-index: 1;
}

.qzy-reservation-actions button {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: rgba(179, 76, 76, .12);
}

/* 微信内置浏览器使用页面内确认框，不依赖 window.confirm。 */
.qzy-reservation-confirm-mask {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(23, 39, 62, .42);
    box-sizing: border-box;
}

.qzy-reservation-confirm-dialog {
    width: min(340px, 100%);
    margin: 0;
    padding: 22px 20px 18px;
    border: 1px solid #e4ebf5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(25, 49, 82, .2);
    box-sizing: border-box;
}

.qzy-reservation-confirm-dialog h3 {
    margin: 0 0 10px;
    color: #284b7e;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
}

.qzy-reservation-confirm-dialog > p:not(.qzy-reservation-confirm-error) {
    margin: 0;
    color: #687b95;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.qzy-reservation-confirm-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.qzy-reservation-confirm-actions button {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    box-sizing: border-box;
}

.qzy-reservation-confirm-actions button:disabled {
    opacity: .58;
    cursor: wait;
}

.qzy-reservation-confirm-later {
    color: #31588f;
    border-color: #c8d9f2 !important;
    background: #f5f8ff;
}

.qzy-reservation-confirm-submit {
    color: #fff;
    border-color: #b34c4c !important;
    background: #b34c4c;
}

.qzy-reservation-confirm-error {
    margin: 12px 0 0;
    color: #b43e3e;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 380px) {
    .qzy-reservation-header-actions {
        gap: 6px;
    }

    .qzy-reservation-entry,
    .brand-head .top-icons .qzy-reservation-entry {
        min-height: 31px;
        gap: 4px;
        padding: 0 7px;
        font-size: 11px;
    }

    .qzy-reservation-header-actions .age-choice-home {
        flex-basis: 34px;
        width: 34px;
        min-width: 34px;
    }
}
