/* 메인·서브페이지 공통 퀵메뉴 */
@font-face { font-family: "Pretendard27"; font-weight: 600; src: url("../fonts/Pretendard-SemiBold.ttf") format("truetype"); font-display: swap; }

.m27-qm {
    --m27-header-height: 88px;
    --orange: #f06e01;
    --ink: #1b1f2e;
    font-family: "Pretendard27", "Pretendard", sans-serif;
    letter-spacing: 0;
    color: var(--ink);
    position: fixed;
    right: 40px;
    top: calc(50% + var(--m27-header-height) / 2);
    transform: translateY(-50%);
    z-index: 9999;
    background: #fff;
    border-radius: 100px;
    padding: 14px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.m27-qm a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; font-size: 13px; font-weight: 600; color: var(--ink); border-radius: 40px; text-decoration: none; transition: background .2s; }
.m27-qm a:hover { background: #fff3e8; }
.m27-qm a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.m27-qm img { display: block; width: 26px; height: 26px; }

@media screen and (max-width: 1250px) {
    .m27-qm { right: 16px; }
}
@media screen and (max-width: 960px) {
    .m27-qm { --m27-header-height: 70px; top: auto; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; padding: 10px 6px; gap: 2px; border-radius: 40px; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
    .m27-qm a { gap: 4px; padding: 8px 6px; font-size: 11px; line-height: 14px; }
    .m27-qm img { width: 22px; height: 22px; }
    body:has(header.on) .m27-qm { display: none; }
}
@media screen and (max-width: 650px) {
    .m27-qm { right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 8px 4px; }
    .m27-qm a { padding: 7px 5px; font-size: 10px; line-height: 13px; }
    .m27-qm img { width: 20px; height: 20px; }
}
