.cmp-pick { display: none; }
.cmp-ready .cmp-pick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: flex-start;
    margin: 3px 16px 9px;
    padding: 4px 9px;
    min-height: 28px;
    width: fit-content;
    border: 1px solid #c9d6ec;
    border-radius: 20px;
    background: white;
    color: #264a81;
    line-height: 1.3;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.cmp-pick::before {
    content: '';
    width: 12px;
    height: 12px;
    background: linear-gradient(currentColor,currentColor) left bottom/3px 55%,
                linear-gradient(currentColor,currentColor) center bottom/3px 100%,
                linear-gradient(currentColor,currentColor) right bottom/3px 75%;
    background-repeat: no-repeat;
}
.pcard__buy .cmp-pick { margin: 10px 0 0; }
.cmp-pick:hover, .cmp-pick[aria-pressed=true] { background: #edf3ff; color: #194fb1; border-color: #8daee8; }
.cmp-pick:disabled { opacity: .65; cursor: default; }
@media (max-width: 700px) {
    .bmk-pc-outer .cmp-pick { margin: 3px 9px 9px; padding: 4px 6px; gap: 4px; font-size: 11px; }
}
body.cmp-active { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
#cmp-bar, #cmp-panel { font-family: system-ui,sans-serif; box-sizing: border-box; }
#cmp-bar:not([hidden]) {
    position: fixed;
    z-index: 900;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 8px 8px 18px;
    max-width: calc(100% - 20px);
    border-radius: 18px;
    background: #152849;
    color: white;
    box-shadow: 0 8px 32px #12274a45;
    white-space: nowrap;
}
#cmp-bar > strong { color: #fff; }
#cmp-count { margin-left: 6px; color: #b9d5ff; font-size: 13px; }
#cmp-open, #cmp-close, .cmp-action { border: 0; cursor: pointer; font: inherit; }
#cmp-open { color: white; background: #265ed2; border-radius: 12px; padding: 11px 18px; font-weight: 650; }
#cmp-open:hover { background: #1749b0; }
#cmp-panel {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(1060px, 95vw);
    max-width: none;
    max-height: 89vh;
    max-height: 89dvh;
    padding: 0;
    border: 1px solid #d4deed;
    border-radius: 22px;
    background: white;
    color: #182a44;
    box-shadow: 0 20px 80px #13223a45;
    overflow: hidden;
}
#cmp-panel[open] { display: flex; flex-direction: column; }
#cmp-panel::backdrop { background: rgb(15 30 52 / .62); }
html:has(#cmp-panel[open]) { overflow: hidden; }
.cmp-header, .cmp-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; }
.cmp-header { background: #f1f6ff; }
.cmp-header h2 { margin: 0; color: #162947; font: 700 clamp(21px,3vw,32px)/1.2 system-ui,sans-serif; }
#cmp-close { width: 40px; height: 40px; border-radius: 50%; color: #304867; background: white; font-size: 25px; }
.cmp-tools { border-bottom: 1px solid #dce3ec; font-size: 14px; }
.cmp-tools label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.cmp-tools input { width: 17px; height: 17px; accent-color: #245fcd; }
.cmp-tools a, #cmp-panel th a { color: #2057ad; }
#cmp-scroll { overflow: auto; overscroll-behavior: contain; }
#cmp-scroll table { width: 100%; table-layout: fixed; border-spacing: 0; font-size: 15px; line-height: 1.4; }
#cmp-scroll th, #cmp-scroll td { padding: 13px 18px; text-align: left; overflow-wrap: anywhere; border-bottom: 1px solid #e1e7f0; vertical-align: top; }
#cmp-scroll tr > :first-child { width: 21%; position: sticky; left: 0; background: #f5f8fc; color: #43536c; box-sizing: border-box; }
#cmp-scroll thead th { background: white; position: sticky; top: 0; z-index: 1; }
#cmp-scroll thead th:first-child { z-index: 2; vertical-align: bottom; }
#cmp-scroll thead img { display: block; width: 100%; height: clamp(54px,10vh,92px); object-fit: contain; margin-bottom: 8px; }
#cmp-scroll th a { display: block; text-decoration: none; }
#cmp-scroll th a:hover { text-decoration: underline; }
.cmp-action { display: block; padding: 8px 0; background: transparent; color: #526581; font-size: 13px; text-decoration: underline; }
.cmp-note { padding: 12px 24px; }
@media (max-width: 680px) {
    #cmp-panel { width: 100%; max-height: 95dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
    .cmp-header, .cmp-tools { padding: 12px 14px; }
    #cmp-scroll table { table-layout: auto; font-size: 14px; }
    #cmp-scroll th, #cmp-scroll td { padding: 10px; min-width: 128px; }
    #cmp-scroll tr > :first-child { width: 95px; min-width: 95px; max-width: 95px; font-size: 12px; }
    #cmp-scroll thead th:not(:first-child) { max-width: 180px; }
}
@media (max-height: 540px) {
    #cmp-scroll thead th { position: static; }
    #cmp-scroll thead img { display: none; }
}
