/* SCRIPT PRO 1.23 — scoped trade review, manual payment and arbitration UI. */
.sp-trade-form{position:relative;isolation:isolate;max-width:100%;min-width:0}
.sp-trade-form label{display:block;line-height:1.5;margin:0 0 14px;max-width:100%}
.sp-trade-form input,.sp-trade-form select,.sp-trade-form textarea{box-sizing:border-box;max-width:100%;min-width:0}
.sp-trade-form input:not([type=checkbox]):not([type=hidden]),.sp-trade-form select{width:100%}
.sp-trade-form textarea{display:block;width:100%!important;min-width:0!important;max-width:100%!important;resize:vertical!important;min-height:130px;max-height:320px;overflow:auto;padding:12px;border:1px solid #cbd8ed;border-radius:10px;background:#fff}
.sp-trade-form .sp-check{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid #ccd9ee;background:#f6f8ff;border-radius:10px}
.sp-trade-form .sp-check input{flex:0 0 auto;width:18px;height:18px;margin-top:3px}
.sp-trade-busy{position:absolute;inset:0;z-index:5;background:rgba(245,248,255,.94);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;border:1px solid #cbd8ed;border-radius:12px;color:#1846a2;font-weight:600;text-align:center;padding:20px;pointer-events:auto}
.sp-trade-busy[hidden]{display:none!important}.sp-trade-busy:before{content:"";width:30px;height:30px;border:3px solid #ccd9ee;border-top-color:#2d62d4;border-radius:50%;animation:sp-trade-spin .9s linear infinite}
@keyframes sp-trade-spin{to{transform:rotate(360deg)}}
.sp-trade-filter{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin:16px 0}.sp-trade-filter label{flex:1 1 160px;margin:0}.sp-trade-filter input,.sp-trade-filter select{display:block;width:100%;min-height:40px;padding:8px;box-sizing:border-box;border:1px solid #ccd9ee;border-radius:8px}.sp-trade-filter .sp-btn{flex:0 0 auto;margin:0}
.sp-trade-table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e0e7f4;border-radius:12px;margin:16px 0}.sp-trade-table .sp-table{margin:0;min-width:640px}.sp-trade-table td{vertical-align:top;overflow-wrap:anywhere}.sp-trade-table small{display:block;margin-top:6px;color:#5c6f88;line-height:1.5}.sp-trade-table code{overflow-wrap:anywhere;white-space:normal}
.sp-trade-tabs{justify-content:center;gap:10px}.sp-trade-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:8px;background:#eaf1ff;border:1px solid #d3dff6;color:#174b93;font-size:13px;line-height:1.4;font-weight:600;max-width:100%;overflow-wrap:anywhere}
.sp-trade-pill.is-open,.sp-trade-pill.is-disputed,.sp-trade-pill.is-review{background:#fff4dd;border-color:#f0d498;color:#80500e}.sp-trade-pill.is-released,.sp-trade-pill.is-seller,.sp-trade-pill.is-accepted,.sp-trade-pill.is-paid{background:#edf9f0;border-color:#b7dfc1;color:#18613a}.sp-trade-pill.is-refunded,.sp-trade-pill.is-rejected{background:#f9edf0;border-color:#e5c3cc;color:#84283c}.sp-trade-pill.is-refund_pending,.sp-trade-pill.is-pending{background:#fff7e7;border-color:#efd298;color:#805519}
.sp-trade-notice,.sp-trade-policy{padding:16px 18px;background:#f4f7ff;border:1px solid #d0ddf4;border-radius:12px;margin:16px 0;line-height:1.65;color:#253f62;overflow-wrap:anywhere}.sp-trade-notice h2,.sp-trade-policy h2{font-size:18px;line-height:1.5;margin:0 0 8px}.sp-trade-notice p:last-child,.sp-trade-policy p:last-child{margin-bottom:0}
.sp-trade-deals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));gap:20px}.sp-trade-deals>.sp-card{margin:0}.sp-trade-hold h3{line-height:1.5;font-size:19px;overflow-wrap:anywhere;margin:0 0 12px}.sp-trade-hold p{line-height:1.65}.sp-trade-hold .sp-quote{grid-template-columns:1fr 1fr}.sp-trade-secondary{background:#fff!important;color:#2453bd!important;border:1px solid #cbd8ed!important}.sp-trade-deadline{font-weight:600;color:#1e4d92}
.sp-trade-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px;margin:16px 0}.sp-trade-metrics>div{background:#f4f7fd;border:1px solid #dee7f6;border-radius:12px;padding:14px}.sp-trade-metrics span,.sp-trade-metrics strong{display:block}.sp-trade-metrics strong{font-size:22px;line-height:1.5;margin-top:6px;overflow-wrap:anywhere}.sp-trade-balance h2{font-size:21px}.sp-trade-balance p{line-height:1.65}
.sp-trade-conversation{display:flex;flex-direction:column;gap:16px;max-width:100%;margin:18px 0}.sp-trade-post{padding:18px;background:#f7f9fe;border:1px solid #dbe5f4;border-radius:14px;min-width:0}.sp-trade-post.is-mine{background:#eef5ff;border-color:#c9dcf5}.sp-trade-post header{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;border-bottom:1px solid #dae4f2;padding-bottom:10px;margin-bottom:12px}.sp-trade-post time{color:#60748d;font-size:12px}.sp-trade-post p,.sp-trade-decision p{white-space:normal;overflow-wrap:anywhere;line-height:1.65}.sp-trade-evidence{display:inline-flex;align-items:center;flex-direction:column;gap:8px;max-width:100%;padding:10px;border:1px solid #cbd8ed;border-radius:10px;background:white}.sp-trade-evidence img{width:200px;max-width:100%;max-height:150px;height:auto;object-fit:contain;border-radius:6px}.sp-trade-upload small{display:block;color:#61728c;margin-top:8px;line-height:1.5}.sp-trade-upload input[type=file]{padding:12px;border:1px dashed #baccea;background:#f6f9ff;border-radius:10px}
.sp-payment-report{border:1px solid #dbe4f3;border-radius:12px;padding:16px;margin:14px 0;background:#f8faff}.sp-payment-report p{overflow-wrap:anywhere}.sp-payment-report details{margin-top:12px}.sp-payment-report summary{cursor:pointer;color:#864146;padding:10px 0}.sp-trade-unread{display:block;margin-top:6px;color:#a55012;font-weight:600;font-size:12px}
.sp-attention-badge{display:inline-flex!important;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;box-sizing:border-box;border-radius:7px;background:#f89c33;color:#251601;font-weight:700;font-size:12px;line-height:22px;vertical-align:middle;margin-left:6px;flex-shrink:0}.sp-attention-badge[hidden]{display:none!important}
.sp-admin-attention{background:#fff;border:1px solid #dce5f6;border-radius:14px;padding:20px;margin:0 0 24px;clear:both}.sp-admin-attention h2{margin:0 0 16px;font-size:21px;line-height:1.4}.sp-admin-attention>p{margin:14px 0 0;font-size:13px;color:#61748e}.sp-attention-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sp-attention-tile{display:flex;flex-direction:column;gap:10px;justify-content:space-between;background:#f5f8ff;border:1px solid #d9e5fa;border-radius:12px;padding:16px;color:#264968!important;text-decoration:none!important;min-height:104px;min-width:0}.sp-attention-tile span{line-height:1.5}.sp-attention-tile strong{font-size:26px;color:#2159ac;line-height:1.2}.sp-attention-tile:hover{border-color:#6695e9;background:#edf4ff}.sp-attention-tile:focus-visible,.sp-trade-form button:focus-visible{outline:3px solid #6695e9;outline-offset:3px}
.sp-admin .th_menu_container .sp-admin-menu>li>a{white-space:normal;display:flex;align-items:center;gap:3px;line-height:1.5;padding:13px 30px 13px 14px}.sp-admin .th_menu_container .sp-admin-menu>li>a>span:first-child{flex:1;min-width:0}.sp-admin .th_menu_container .sp-admin-menu>li.sp-admin-category{margin:4px 6px;border:1px solid rgba(194,212,248,.11);border-radius:9px;overflow:hidden}.sp-admin .th_menu_container .sp-admin-menu>li.sp-open>a{background:rgba(85,133,220,.2)}.sp-admin .th_menu_container .sp-admin-menu>li>ul>li>a{padding:9px 12px 9px 18px;line-height:1.5;font-size:12px;white-space:normal;overflow-wrap:anywhere}.sp-admin .th_menu_container .sp-admin-menu a[aria-current=page]{background:rgba(70,131,230,.24);color:#fff}.sp-admin .th_menu_container .sp-admin-menu>li>ul{background:rgba(0,0,0,.12)}.sp-admin .th_menu_container .sp-admin-menu .sp-attention-badge{min-width:20px;height:20px;line-height:20px;font-size:11px;margin-left:4px}.sp-admin .th_menu_container{overflow-y:auto;overscroll-behavior:contain}
.sp-trade-purchase-link{display:block;margin:12px 0;padding:12px;border:1px solid #d8e3f7;border-radius:10px;background:#f4f8ff;line-height:1.6}
@media(max-width:1000px){.sp-attention-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.sp-attention-grid{grid-template-columns:1fr 1fr;gap:8px}.sp-attention-tile{padding:12px;font-size:12px;min-height:108px}.sp-trade-deals{grid-template-columns:1fr}.sp-trade-hold .sp-quote{grid-template-columns:1fr}.sp-trade-form .sp-btn{width:100%}.sp-trade-tabs>a{white-space:normal;text-align:center}.sp-trade-filter{display:block}.sp-trade-filter label,.sp-trade-filter button{margin:0 0 12px!important;width:100%}.sp-trade-post{padding:12px}.sp-trade-form input[type=file]{font-size:12px}.sp-admin-attention{padding:14px}.sp-trade-table{margin:12px 0}}
@media(prefers-reduced-motion:reduce){.sp-trade-busy:before{animation:none}.sp-attention-badge{animation:none}}

.sp-trade-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:14px}.sp-trade-card-head>div{min-width:0;flex:1 1 180px}.sp-trade-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.sp-trade-code{overflow-wrap:anywhere}.sp-trade-busy{margin:0!important}.sp-trade-deals .sp-card{height:auto!important}

.sp-trade-facts{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,1.6fr);gap:10px 18px;line-height:1.6;margin:18px 0}.sp-trade-facts dt,.sp-trade-facts dd{margin:0;min-width:0;overflow-wrap:anywhere}.sp-trade-facts dt{font-weight:600}.sp-trade-filter .sp-btn{width:auto}.sp-proof-item header{display:flex;gap:10px;align-items:center;flex-wrap:wrap}@media(max-width:600px){.sp-trade-facts{grid-template-columns:1fr;gap:5px}.sp-trade-facts dd{margin-bottom:10px}}
/* Keep the new review link and old purchase code inside themeone's mobile purchase card. */
.sp-trade-purchases{max-width:100%;min-width:0}.sp-trade-purchases .table{width:100%;table-layout:fixed}.sp-trade-purchases .table td{overflow-wrap:anywhere}.sp-trade-purchases .table td p,.sp-trade-purchases .table td h4,.sp-trade-purchases .table td a{line-height:1.6}.sp-trade-purchases .table td .sp-trade-purchase-link{display:block;text-align:left;color:#2453bd;margin-top:12px}
@media(max-width:600px){.sp-trade-purchases .table,.sp-trade-purchases .table tbody{display:block;width:100%;max-width:100%}.sp-trade-purchases .table tr{display:block;width:100%;box-sizing:border-box;border:1px solid #d5e0f2;border-radius:12px;padding:10px;margin:0 0 16px;background:#fff}.sp-trade-purchases .table tr:first-child{display:none}.sp-trade-purchases .table tr td{float:none;display:block;width:100%;max-width:100%;box-sizing:border-box;padding:10px 8px;border:0;text-align:left}.sp-trade-purchases .table tr td p,.sp-trade-purchases .table tr td span,.sp-trade-purchases .table tr td h4,.sp-trade-purchases .table tr td a{float:none;width:auto;max-width:100%;line-height:1.6;overflow-wrap:anywhere}.sp-trade-purchases .table tr td:before{position:static;display:block;width:auto;padding:0;margin-bottom:6px;font-size:12px;color:#667b98;white-space:normal}.sp-trade-purchases .table tr td:nth-of-type(1):before{content:"Изображение"}.sp-trade-purchases .table tr td:nth-of-type(2):before{content:"Товар"}.sp-trade-purchases .table tr td:nth-of-type(3):before{content:"Дата покупки"}.sp-trade-purchases .table tr td:nth-of-type(4):before{content:"Код покупки"}.sp-trade-purchases .table tr td:nth-of-type(5):before{content:"Скачивание и проверка"}.sp-trade-purchases .table td .sp-trade-purchase-link{width:100%;box-sizing:border-box}}


/* 1.24 button polish for review/arbitration links */
.sp-btn-small{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 14px;min-height:38px;font-size:14px;line-height:1.35;text-decoration:none!important;white-space:normal;text-align:center}
.sp-trade-warning{background:#fff3e4!important;color:#9b4d06!important;border:1px solid #efc386!important}
.sp-trade-warning:hover{background:#ffe9cc!important}
.sp-order-open-link{margin-top:8px}
.sp-trade-tabs{margin-top:2px}
.sp-trade-tabs .sp-account-nav__link{min-width:210px}
.sp-trade-details{margin-top:12px}.sp-trade-details summary{list-style:none}.sp-trade-details summary::-webkit-details-marker{display:none}
.sp-download-cell{min-width:230px}.sp-download-action{display:flex;flex-direction:column;align-items:stretch;gap:10px;max-width:100%}.sp-download-btn{width:100%}.sp-download-password{padding:10px 12px;border:1px dashed #c6d4ec;border-radius:10px;background:#f8fbff;font-size:13px;line-height:1.55;color:#28405f;overflow-wrap:anywhere}.sp-download-unavailable{display:inline-flex;align-items:center;gap:8px;color:#7b879a}
.sp-trade-purchase-link{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0;padding:12px;border:1px solid #d8e3f7;border-radius:12px;background:#f4f8ff;line-height:1.55;color:#213a63;text-decoration:none!important}.sp-trade-purchase-link .sp-trade-pill{align-self:flex-start}.sp-purchase-review-status{display:flex;justify-content:flex-start}.sp-purchase-review-meta{font-size:13px;color:#385171;line-height:1.55}
@media(max-width:600px){.sp-trade-tabs .sp-account-nav__link{min-width:0;flex:1 1 100%}.sp-download-cell{min-width:0}.sp-download-action{gap:8px}.sp-trade-purchase-link{padding:10px}}
