/* SCRIPT PRO 1.16: contained message controls and isolated inbox layout. */
.sp-messages-shell,.sp-message-compose{--sp-msg-accent:#2196f3;--sp-msg-border:#dbe4f0;--sp-msg-ink:#1e2d45;--sp-msg-muted:#64748b;}
.sp-message-compose,.sp-message-compose *,.sp-messages-shell,.sp-messages-shell *{box-sizing:border-box;min-width:0;}
.sp-message-compose{width:100%;max-width:100%;display:flow-root;overflow-wrap:anywhere;}
.sp-message-form{display:flex!important;flex-direction:column!important;gap:12px;width:100%!important;max-width:100%!important;margin:0;float:none!important;}
.sp-message-form label{display:block;float:none!important;width:auto!important;margin:0;font-size:14px;font-weight:600;color:var(--sp-msg-ink,#1e2d45);}
.sp-message-form input:not([type=checkbox]):not([type=hidden]),.sp-message-form select,.sp-message-form textarea{display:block!important;float:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0;padding:11px 12px;border:1px solid var(--sp-msg-border,#dbe4f0);border-radius:9px;background:#fff;box-shadow:none;font:inherit;font-size:14px;line-height:1.5;color:#253247;}
.sp-message-form textarea,.ts_author_contact_box textarea,.tp_vendor_msg textarea,.sp-discussion-page textarea,.ts_contact_form textarea,.tp_contact_form textarea{width:100%!important;max-width:100%!important;min-width:0!important;min-height:120px;max-height:320px!important;resize:vertical!important;box-sizing:border-box!important;overflow:auto!important;word-break:break-word;}
.sp-message-form input:focus,.sp-message-form textarea:focus,.sp-message-form select:focus{outline:2px solid #97cfff;outline-offset:2px;}
.sp-message-form :disabled{cursor:wait;opacity:.72;}
.sp-message-form button,.sp-message-filter button,.sp-message-read button{align-self:flex-start;min-height:40px;max-width:100%;padding:10px 17px;border:1px solid transparent;border-radius:9px;background:var(--sp-msg-accent,#2196f3);color:#fff;font:inherit;font-size:14px;font-weight:600;line-height:1.4;white-space:normal;text-transform:none;cursor:pointer;float:none!important;margin:0!important;}
.sp-message-form button:hover,.sp-message-filter button:hover{filter:brightness(.96);}
.sp-message-form button:focus-visible,.sp-message-open:focus-visible,.sp-message-nav a:focus-visible{outline:3px solid #98cafa;outline-offset:2px;}
.sp-message-hint{margin:0 0 12px;font-size:13px;line-height:1.65;color:var(--sp-msg-muted,#64748b);font-weight:400;text-transform:none!important;}
.sp-message-form .sp-message-hint{margin:0;}
.sp-message-status{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:14px;color:#1c684a;}
.sp-message-status:empty{display:none;}.sp-message-status.is-error{color:#b32424;}
.sp-message-result{display:flex;flex-direction:column;gap:12px;padding:14px;background:#f0f8ff;border:1px solid #d1e8fc;border-radius:10px;}
.sp-message-result[hidden],.sp-message-fresh[hidden],.sp-message-badge[hidden]{display:none!important;}
.sp-message-history-link{display:inline-flex;align-items:center;gap:6px;margin-top:18px;font-size:14px;}
.sp-message-badge{display:inline-flex!important;align-items:center;justify-content:center;vertical-align:middle;background:#ed5d49!important;color:#fff!important;border-radius:20px;min-width:21px;height:21px;padding:0 6px!important;margin-left:5px!important;font:600 11px/1 Arial,sans-serif!important;white-space:nowrap;box-shadow:none!important;float:none!important;}
.sp-messages-shell{width:min(1160px,100%);max-width:100%;margin:0 auto;padding:48px 22px 64px;clear:both;color:var(--sp-msg-ink);}
.sp-admin .sp-messages-shell{padding-top:32px;}
.sp-messages-heading{display:block;margin:0 0 24px;}.sp-messages-eyebrow{font-size:12px;font-weight:700;color:#6380a6;letter-spacing:.08em;text-transform:uppercase;}
.sp-messages-heading h1{font-size:28px;line-height:1.3;font-weight:700;margin:9px 0 8px;text-transform:none;}
.sp-messages-heading p{font-size:14px;line-height:1.6;color:var(--sp-msg-muted);margin:0;}
.sp-message-nav{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--sp-msg-border);}
.sp-message-nav a{display:inline-flex;align-items:center;flex-wrap:wrap;gap:2px;padding:10px 14px;background:#fff;border:1px solid var(--sp-msg-border);border-radius:10px;color:#334861;font-size:13px;text-decoration:none;line-height:1.5;}
.sp-message-nav a.is-active{color:#126bc0;border-color:#8cc3f5;background:#edf7ff;}
.sp-message-filter{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px 18px;margin:0 0 20px;background:#fff;border:1px solid var(--sp-msg-border);border-radius:12px;}
.sp-message-filter select,.sp-message-process select{width:auto;max-width:100%;min-height:40px;border:1px solid var(--sp-msg-border);padding:7px 30px 7px 10px;border-radius:8px;background:#fff;}
.sp-message-filter label{font-size:14px;margin:0;font-weight:600;}.sp-message-filter span{font-size:13px;color:var(--sp-msg-muted);margin-left:auto;}
.sp-message-list{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;}
.sp-message-list-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;padding:22px;background:#fff;border:1px solid var(--sp-msg-border);border-radius:15px;box-shadow:0 4px 16px rgba(32,52,82,.035);overflow-wrap:anywhere;}
.sp-message-list-item.is-unread{border-left:4px solid var(--sp-msg-accent);background:#fbfdff;padding-left:19px;}
.sp-message-item-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-bottom:10px;}
.sp-message-kind{font-size:12px;color:#426ba0;font-weight:600;}.sp-message-item-top time,.sp-message-post time{font-size:12px;color:var(--sp-msg-muted);}
.sp-message-list-item h2{font-size:18px;font-weight:650;line-height:1.45;text-transform:none!important;margin:0 0 10px;}
.sp-message-list-item h2 a{color:var(--sp-msg-ink);text-decoration:none;}
.sp-message-meta{font-size:13px;line-height:1.65;margin:5px 0;color:var(--sp-msg-muted);text-transform:none!important;}.sp-message-meta strong{font-weight:600;color:#374e6a;}
.sp-message-excerpt{font-size:14px;line-height:1.65;margin:10px 0 0;color:#4d607a;}
.sp-message-list-side{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:12px;}
.sp-message-state,.sp-message-new{display:inline-block;align-self:flex-start;background:#f0f4f9;border-radius:6px;padding:4px 9px;font-size:12px;line-height:1.5;white-space:normal;color:#526681;}
.sp-message-state.is-processed{background:#edf8f2;color:#267450;}.sp-message-new{background:#e7f3ff;color:#126dc0;}
.sp-message-open{font-size:14px;font-weight:600;line-height:1.5;display:inline-block;color:#167ed0;}
.sp-message-summary{background:#fff;padding:24px;border:1px solid var(--sp-msg-border);border-radius:15px;margin-bottom:22px;}
.sp-message-summary h2,.sp-message-reply h2{font-size:20px;line-height:1.5;margin:0 0 18px;text-transform:none;}
.sp-message-summary dl{margin:0;display:grid;gap:9px;}.sp-message-summary dl>div{display:grid;grid-template-columns:165px minmax(0,1fr);gap:14px;}
.sp-message-summary dt,.sp-message-summary dd{float:none!important;width:auto!important;margin:0!important;text-align:left;font-size:14px;font-weight:400;line-height:1.6;text-transform:none!important;overflow-wrap:anywhere;}.sp-message-summary dt{color:var(--sp-msg-muted);}
.sp-message-form.sp-message-process{flex-direction:row!important;align-items:center;flex-wrap:wrap;padding-top:18px;margin-top:18px;border-top:1px solid #e5ebf2;}
.sp-message-form.sp-message-process select{width:auto!important;}.sp-message-process .sp-message-status{flex-basis:100%;}
.sp-message-form .sp-message-check{display:inline-flex!important;align-items:center;gap:10px;cursor:pointer;}.sp-message-check input[type=checkbox]{position:static!important;appearance:auto!important;opacity:1!important;width:18px!important;height:18px!important;display:inline-block!important;margin:0!important;accent-color:var(--sp-msg-accent);}
.sp-message-timeline{display:grid;gap:16px;}.sp-message-post{background:#fff;padding:22px 24px;border:1px solid var(--sp-msg-border);border-radius:14px;overflow-wrap:anywhere;}.sp-message-post.is-staff{background:#f1f7ff;border-color:#d6e7fb;}
.sp-message-post header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-bottom:14px;}.sp-message-post strong{font-size:14px;font-weight:600;}.sp-message-post p{margin:0;font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;}
.sp-message-reply{background:#fff;padding:24px;border:1px solid var(--sp-msg-border);border-radius:15px;margin-top:24px;}.sp-message-read{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0;}.sp-message-read button{padding:6px 10px;min-height:30px;background:#edf3fa;color:#496587;font-size:12px;}
.sp-message-pages{display:flex;justify-content:center;flex-wrap:wrap;gap:22px;margin:22px 0;font-size:14px;}.sp-message-empty{background:#fff;border:1px solid var(--sp-msg-border);border-radius:14px;padding:36px 26px;margin:20px 0;}.sp-message-empty h2{font-size:20px;margin:0 0 12px;}.sp-message-empty p{font-size:14px;line-height:1.7;color:var(--sp-msg-muted);margin:0 0 10px;}
.sp-message-stars{color:#dd9d19;font-size:20px;letter-spacing:3px;}.sp-message-fresh{padding:16px;margin:18px 0;border:1px solid #badbf4;background:#eaf6ff;border-radius:10px;line-height:1.6;font-size:14px;}
.sp-message-guest{max-width:680px;padding-top:70px;}
.sp-has-inbox,.ts_vendor_menu>ul.sp-has-inbox{display:flex!important;flex-wrap:wrap!important;gap:0;}.sp-has-inbox>li,.ts_3_menu.sp-has-inbox>li{width:auto!important;flex:1 1 auto;float:none!important;}.ts_vendor_menu .sp-message-badge{position:static!important;}
@media(max-width:767px){.sp-messages-shell{padding:28px 15px 42px;}.sp-messages-heading h1{font-size:23px;}.sp-message-nav a{font-size:12px;padding:9px 11px;}.sp-message-list-item{grid-template-columns:minmax(0,1fr);gap:14px;padding:18px;}.sp-message-list-item.is-unread{padding-left:15px;}.sp-message-list-side{align-items:flex-start;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;}.sp-message-summary,.sp-message-reply,.sp-message-post{padding:18px;}.sp-message-summary dl>div{grid-template-columns:minmax(0,1fr);gap:2px;}.sp-message-filter{padding:14px;}.sp-message-filter span{margin-left:0;}.sp-message-filter select{flex:1;}.sp-message-form button{width:100%;}.sp-message-form.sp-message-process button{width:auto;}.sp-message-hint{font-size:12px;}.sp-message-post p{font-size:14px;}}

/* Do not inherit positioning intended for the shopping-cart counter. */
.sp-message-badge{position:static!important;inset:auto!important;transform:none!important;flex:0 0 auto!important;}
.sp-message-header-link{display:inline-flex!important;align-items:center!important;gap:4px;white-space:nowrap;}
#message-seller.sp-message-compose{padding:20px;background:#fff;border:1px solid #e2e8f0;border-top:0;border-radius:0 0 12px 12px;}
