/* MJPLOY guest comparison tray and side-by-side product view. */
.mj-compare-tray[hidden],.mj-compare-feedback[hidden]{display:none!important}
.mj-compare-tray{position:fixed;z-index:70;left:0;right:0;bottom:0;padding:10px max(15px,env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));background:#0b2c46;color:#f1f8fc;box-shadow:0 -8px 32px #0b1e3440;border-top:2px solid #dcb77d;font-family:'Noto Sans Thai',system-ui,sans-serif}
.mj-compare-tray-inner{display:flex;gap:14px;align-items:center;justify-content:space-between;max-width:1290px;margin-inline:auto;min-width:0}
.mj-compare-tray-summary{min-width:0;flex:0 0 auto;display:grid;gap:3px}
.mj-compare-tray-summary strong{font-size:14px;line-height:1.35;font-weight:850;color:#ffe0a0;white-space:nowrap}
.mj-compare-tray-hint{font-size:10px;line-height:1.45;color:#b8cfdd;white-space:nowrap}
.mj-compare-tray-picks{display:flex;flex:1;min-width:0;align-items:center;gap:7px;overflow:hidden}
.mj-compare-chip{font-size:11px;line-height:1.35;max-width:185px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#ffffff16;border:1px solid #ffffff27;border-radius:6px;padding:9px 10px;color:white}
.mj-compare-tray-actions{display:flex;flex:0 0 auto;align-items:center;gap:9px}
.mj-compare-tray-open{display:inline-flex;min-height:43px;align-items:center;justify-content:center;padding:9px 18px;border-radius:7px;background:#e8c483;color:#0c2c45!important;font-size:13px;font-weight:850;text-decoration:none;white-space:nowrap}
.mj-compare-tray-open:hover{background:#ffdfab}
.mj-compare-tray-clear{font-size:12px;min-height:43px;cursor:pointer;font-weight:750;white-space:nowrap;color:#d9e6ed;padding:9px 5px}
.mj-compare-tray-clear:hover{color:#fff}
.mj-compare-feedback{position:absolute;right:12px;bottom:calc(100% + 6px);background:#fff;color:#16435f;font-size:12px;border:1px solid #e1e8ef;box-shadow:0 4px 17px #10243a27;padding:8px 12px;border-radius:8px;max-width:min(340px,calc(100vw - 24px));line-height:1.5}
[data-compare-toggle]{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;width:100%;font-family:inherit;font-size:12px;font-weight:750;line-height:1.5;background:#f8fbfd;color:#1e5a7d;border:1px solid #bed3e1;border-radius:7px;padding:8px 11px;cursor:pointer;transition:background-color .15s ease}
[data-compare-toggle]:hover{background:#e9f3fa;border-color:#77a8c6}
[data-compare-toggle][aria-pressed=true]{background:#e4f5ee;color:#1c7053;border-color:#86bea8}
[data-compare-toggle]:focus-visible,[data-compare-clear]:focus-visible,[data-compare-open]:focus-visible,[data-compare-cart]:focus-visible,[data-compare-remove]:focus-visible,[data-compare-share]:focus-visible{outline:3px solid #ebc884;outline-offset:2px}
@media(max-width:760px){
  .mj-compare-tray{padding:8px 12px calc(8px + env(safe-area-inset-bottom))}
  .mj-compare-tray-inner{gap:7px;flex-wrap:wrap}
  .mj-compare-tray-summary{flex:1;gap:0}
  .mj-compare-tray-summary strong{font-size:13px}
  .mj-compare-tray-hint{font-size:10px}
  .mj-compare-tray-picks{order:3;flex-basis:100%;overflow-x:auto;scrollbar-width:thin}
  .mj-compare-chip{flex:0 0 auto;max-width:150px;padding:5px 7px;font-size:10px}
  .mj-compare-tray-actions{gap:8px}
  .mj-compare-tray-open{padding:9px 13px;min-height:40px;font-size:12px}
  .mj-compare-tray-clear{min-height:40px;padding:7px 1px;font-size:11px}
  body:has(.mobile-purchase-bar) .mj-compare-tray{bottom:66px}
}
@media(max-width:365px){
 .mj-compare-tray-hint{font-size:9px}
 .mj-compare-tray-picks{gap:4px}
 .mj-compare-tray-actions{gap:5px}
 .mj-compare-tray-open{padding:9px 10px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){[data-compare-toggle]{transition:none}}
/* Standalone compare page. Mobile comparison is intentionally scrollable; labels stay visible. */
.mj-compare-page{--mj-ink:#102f4e;--mj-muted:#5f768a;background:#f5f8fb;color:var(--mj-ink)}
.mj-compare-wrap{max-width:1280px;margin:0 auto;padding:27px 20px 63px}
.mj-compare-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:19px}
.mj-compare-eyebrow{font-weight:850;letter-spacing:.17em;color:#9c7540;font-size:11px;line-height:1.5}
.mj-compare-title{font-family:'Noto Serif Thai',Georgia,serif;color:#133b57;font-size:clamp(27px,3.5vw,41px);line-height:1.35;font-weight:750;margin:8px 0}
.mj-compare-intro{color:#577387;font-size:14px;line-height:1.9;max-width:820px}
.mj-compare-head-actions{display:flex;flex-wrap:wrap;gap:8px}
.mj-compare-outline-btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:9px 16px;border:1px solid #b8cfe0;border-radius:7px;color:#0d4e78;background:#fff;text-decoration:none;font-size:13px;font-weight:800;cursor:pointer}
.mj-compare-outline-btn:hover{background:#eaf3fa}
.mj-compare-empty{margin:35px 0;padding:45px 18px;background:#fff;border:1px solid #dce7f0;border-radius:12px;text-align:center}
.mj-compare-empty p{margin:0 auto 22px;max-width:540px;color:#526c7f;line-height:1.8}
.mj-compare-empty .mj-compare-outline-btn{background:#0d4772;color:#fff}
.mj-compare-scroll{max-width:100%;border:1px solid #d7e3ec;border-radius:12px;background:#fff;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#9eb7c9 transparent}
.mj-compare-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;line-height:1.55}
.mj-compare-table th,.mj-compare-table td{border-bottom:1px solid #e5ecf1;border-right:1px solid #e5ecf1;vertical-align:top;padding:15px 13px;font-size:13px}
.mj-compare-table tr>:last-child{border-right:0}
.mj-compare-table tbody tr:last-child>*{border-bottom:0}
.mj-compare-table thead th{background:#f0f6fa;text-align:left;font-size:13px;color:#173d57}
.mj-compare-table thead th:first-child,.mj-compare-table tbody th{position:sticky;left:0;z-index:1;background:#f6f9fb;box-shadow:2px 0 5px #1338530a;width:145px;color:#466880;font-size:12px;font-weight:850;text-align:left}
.mj-compare-table thead th:first-child{z-index:2;background:#eaf2f7}
.mj-compare-product{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.mj-compare-product img{width:100%;height:205px;max-width:225px;border-radius:8px;object-fit:contain;background:#f5f9fc;border:1px solid #edf0f2}
.mj-compare-product strong{display:block;font-weight:850;color:#113b5a;font-size:15px}
.mj-compare-stock{display:inline-flex;align-items:center;border-radius:30px;padding:4px 9px;background:#e8f5ec;color:#177049;font-weight:850;font-size:10px;letter-spacing:.035em}
.mj-compare-stock[aria-disabled=true]{background:#f6ecef;color:#9a5368}
.mj-compare-remove{display:inline-flex;padding:7px 9px;border:1px solid #d3e0e9;color:#a24b63;border-radius:6px;background:#fff;font-size:11px;font-weight:800;cursor:pointer}
.mj-compare-value{color:#2b4d64;font-size:13px}
.mj-compare-value strong{color:#103b5c}
.mj-compare-price{font-weight:900;color:#123955;font-size:18px}
.mj-compare-missing{color:#94a2ad}
.mj-compare-buy{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.mj-compare-cart{background:#0d4b78;color:#fff;border:1px solid #0d4b78;padding:10px 12px;font-size:12px;border-radius:7px;min-height:41px;font-weight:850;cursor:pointer}
.mj-compare-cart:hover{background:#176390}
.mj-compare-detail{display:inline-flex;justify-content:center;align-items:center;border:1px solid #bed3e2;color:#0d527f;padding:10px 12px;text-decoration:none;border-radius:7px;min-height:41px;font-size:12px;font-weight:750;background:#fff}
.mj-compare-note{display:block;margin-top:13px;color:#5c788b;font-size:12px;line-height:1.8}
.mj-compare-page-status{display:block;min-height:22px;margin-top:12px;font-size:12px;color:#147456;font-weight:700}
.mj-compare-bottom{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px;align-items:center;justify-content:space-between}
.mj-compare-contact{display:inline-flex;align-items:center;justify-content:center;min-height:47px;padding:11px 18px;background:#dcb679;color:#153750;text-decoration:none;font-size:13px;font-weight:900;border-radius:8px}
.mj-compare-contact:hover{background:#f0cf93}
.mj-compare-browse{color:#0e507a;font-size:13px;font-weight:800;text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){
 .mj-compare-wrap{padding:22px 13px 65px}
 .mj-compare-title{font-size:29px}
 .mj-compare-intro{font-size:13px}
 .mj-compare-head-actions{width:100%}
 .mj-compare-head-actions>*{flex:1}
 .mj-compare-table th,.mj-compare-table td{padding:12px 10px;font-size:12px}
 .mj-compare-table thead th:first-child,.mj-compare-table tbody th{width:108px;font-size:11px}
 .mj-compare-product img{height:150px}
 .mj-compare-product strong{font-size:13px}
 .mj-compare-price{font-size:15px}
 .mj-compare-cart,.mj-compare-detail{font-size:11px;min-height:43px}
 .mj-compare-bottom{align-items:stretch}
 .mj-compare-contact,.mj-compare-browse{width:100%;text-align:center;justify-content:center}
}
