/* Floating WordPress plan library shared by the exact PC/mobile homepages. */
.dw-fab,
.dw-drawer,
.dw-drawer * { box-sizing: border-box; }
.dw-mask[hidden],
.dw-drawer[hidden],
.dw-empty[hidden],
.dw-item[hidden] { display: none !important; }

.dw-fab {
    position: fixed;
    left: 16px;
    top: calc(50% - 4.5cm);
    z-index: 1200;
    width: 70px;
    height: 142px;
    padding: 12px 10px;
    border: 1px solid rgba(37, 99, 235, .30);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(239, 246, 255, .94));
    box-shadow: 0 18px 46px rgba(37, 99, 235, .18), 0 14px 30px rgba(0, 0, 0, .10);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    user-select: none;
}
.dw-fab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 5px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(37, 99, 235, .85), rgba(16, 185, 129, .65));
}
.dw-fabEmoji {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(37, 99, 235, .10);
    font-size: 22px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.dw-fabText { color: #0f172a; font-size: 14px; font-weight: 900; letter-spacing: .2px; }
.dw-fabDot {
    position: absolute;
    right: 10px;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
    animation: dwPlanPulse 1.6s ease-in-out infinite;
}
.dw-fab:hover,
.dw-fab:focus-visible { box-shadow: 0 22px 52px rgba(37, 99, 235, .24), 0 16px 34px rgba(0, 0, 0, .12); outline: none; }
@keyframes dwPlanPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .55); }
    70% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.dw-mask {
    position: fixed;
    inset: 0;
    z-index: 1299;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(2px);
}
.dw-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1300;
    width: min(440px, 92vw);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: rgba(248, 250, 252, .97);
    border-left: 1px solid rgba(0, 0, 0, .10);
    box-shadow: -18px 0 50px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
    transform: translateX(105%);
    transition: transform .28s ease;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.dw-drawer.open { transform: translateX(0); }
.dw-drawer__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 16px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.dw-drawer__title { font-size: 18px; font-weight: 900; letter-spacing: .2px; }
.dw-drawer__sub { margin-top: 5px; color: #64748b; font-size: 12px; line-height: 1.5; }
.dw-x {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-size: 18px;
}
.dw-drawer__tools { padding: 12px 14px 8px; }
.dw-search {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
}
.dw-search:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.dw-list { flex: 1; padding: 2px 10px 18px; overflow: auto; overscroll-behavior: contain; }
.dw-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    margin: 6px 4px;
    padding: 11px 13px;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .035);
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.dw-item > div:first-child { min-width: 0; }
.dw-item:hover,
.dw-item:focus-visible { transform: translateY(-1px); border-color: rgba(37, 99, 235, .35); box-shadow: 0 10px 24px rgba(37, 99, 235, .09); outline: none; }
.dw-name { color: #2f3033; font-size: 14px; font-weight: 850; line-height: 1.35; }
.dw-meta { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 5px; color: #6b7280; font-size: 11.5px; line-height: 1.4; }
.dw-meta span:not(:last-child)::after { content: '｜'; margin: 0 5px; color: #94a3b8; }
.dw-go { flex: 0 0 auto; align-self: center; color: #64748b; font-size: 13px; white-space: nowrap; }
.dw-empty { padding: 22px 14px; color: #64748b; font-size: 14px; text-align: center; }
.dw-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 768px) {
    .dw-fab {
        left: 10px;
        top: auto;
        bottom: calc(92px + env(safe-area-inset-bottom, 0px));
        width: 58px;
        height: 112px;
        padding: 9px 7px;
        border-radius: 17px;
        gap: 7px;
    }
    .dw-fabEmoji { width: 34px; height: 34px; border-radius: 11px; font-size: 19px; }
    .dw-fabText { font-size: 12px; }
    .dw-fabDot { right: 8px; top: 9px; width: 8px; height: 8px; }
    .dw-drawer { width: min(430px, 94vw); }
    .dw-drawer__head { padding-top: max(15px, env(safe-area-inset-top, 0px)); }
    .dw-item { min-height: 68px; padding: 10px 11px; border-radius: 13px; }
    .dw-name { font-size: 13px; }
    .dw-meta { font-size: 11px; }
    .dw-go { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .dw-fabDot { animation: none; }
    .dw-drawer, .dw-item { transition: none; }
}
