*{box-sizing:border-box}
body{margin:0;background:#f5f6f8;color:#1f2937;font-family:Arial,sans-serif}
.tp-request-wrap{max-width:1080px;margin:30px auto;padding:18px}
.tp-request-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:24px;box-shadow:0 10px 30px rgba(0,0,0,.05)}
.tp-request-card h1{margin-top:0}
.tp-request-meta{color:#667085;margin-bottom:20px}
.tp-request-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:15px}
.tp-request-back{display:inline-block;color:#cc6600;text-decoration:none}
.tp-request-title-row{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.tp-request-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tp-field{display:flex;flex-direction:column;gap:6px}
.tp-field-full{grid-column:1/-1}
.tp-field input,.tp-field select,.tp-field textarea{width:100%;padding:11px;border:1px solid #cfd6de;border-radius:8px;font:inherit}
.tp-field textarea{min-height:130px;resize:vertical}
.tp-request-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:16px}
.tp-request-actions form{margin:0}
.tp-request-button{display:inline-block;background:#cc6600;color:#fff!important;border:0;border-radius:8px;padding:13px 20px;font-weight:bold;cursor:pointer;text-decoration:none}
.tp-request-button-secondary{background:#374151}
.tp-request-button-danger{background:#b91c1c}
.tp-request-table-wrap{overflow:auto}
.tp-request-tiers{width:100%;border-collapse:collapse;margin:18px 0;min-width:720px}
.tp-request-tiers th,.tp-request-tiers td{padding:10px;border-bottom:1px solid #eceff2;text-align:left;vertical-align:top}
.tp-request-tiers th{background:#f8fafc;font-size:13px;color:#475467}
.tp-request-tiers small{display:block;color:#667085;margin-top:4px}
.tp-request-row-unread{background:#fffdf5}
.tp-request-unread{display:inline-block;margin-top:6px;padding:3px 7px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:bold}
.tp-request-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.tp-request-filters a{padding:7px 11px;border:1px solid #d7dce2;border-radius:999px;background:#fff;color:#374151;text-decoration:none;font-size:13px}
.tp-request-filters a.active{background:#374151;color:#fff}
.tp-request-filters strong{margin-left:4px}
.tp-request-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin:20px 0 0}
.tp-request-pagination a{padding:8px 12px;border:1px solid #d7dce2;border-radius:8px;background:#fff;color:#374151;text-decoration:none}
.tp-request-pagination span{color:#667085}
.tp-request-error{background:#fff1f2;border:1px solid #fecdd3;color:#991b1b;border-radius:8px;padding:16px;margin-bottom:16px}
.tp-request-error a{color:inherit;font-weight:bold}
.tp-request-success{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;padding:18px;margin-bottom:16px}
.tp-consent{display:flex;align-items:flex-start;gap:8px}.tp-consent input{width:auto;margin-top:3px}
.tp-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important}
.tp-conversation-message{padding:14px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;margin:12px 0}
.tp-conversation-message.buyer{background:#eff6ff;border-color:#bfdbfe}
.tp-conversation-message.seller{background:#fff7ed;border-color:#fed7aa}
.tp-conversation-message p{white-space:normal;overflow-wrap:anywhere}
.tp-conversation-message small{color:#667085}
.tp-request-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.tp-request-summary>div{padding:12px;border:1px solid #e5e7eb;border-radius:9px;background:#f8fafc}
.tp-request-summary span{display:block;color:#667085;font-size:12px;margin-bottom:4px}
.tp-request-summary strong{overflow-wrap:anywhere}
.tp-status{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:bold;background:#e5e7eb;color:#374151;white-space:nowrap}
.tp-status-new,.tp-status-seller_review,.tp-status-buyer_reply,.tp-status-negotiating{background:#fef3c7;color:#92400e}
.tp-status-quoted{background:#dbeafe;color:#1d4ed8}
.tp-status-accepted,.tp-status-converted{background:#dcfce7;color:#166534}
.tp-status-rejected,.tp-status-expired,.tp-status-cancelled{background:#fee2e2;color:#991b1b}
.tp-order-pending,.tp-order-draft{background:#fef3c7;color:#92400e}
.tp-order-paid,.tp-order-confirmed,.tp-order-delivered{background:#dcfce7;color:#166534}
.tp-order-processing{background:#e0e7ff;color:#3730a3}
.tp-order-shipped{background:#dbeafe;color:#1d4ed8}
.tp-order-cancelled,.tp-order-error,.tp-order-refunded{background:#fee2e2;color:#991b1b}
.tp-order-statuses{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.tp-dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0 24px}
.tp-dashboard-stats a{padding:15px;border:1px solid #e5e7eb;border-radius:10px;background:#f8fafc;color:#1f2937;text-decoration:none}
.tp-dashboard-stats a:hover{border-color:#f0b37c;background:#fffaf5}
.tp-dashboard-stats span{display:block;color:#667085;font-size:12px}
.tp-dashboard-stats strong{display:block;font-size:25px;margin-top:6px}
.tp-dashboard-grid,.tp-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.tp-dashboard-card{border:1px solid #e5e7eb;border-radius:12px;padding:18px;background:#fff}
.tp-dashboard-card h2{margin-top:0}.tp-dashboard-card p{color:#475467;line-height:1.5}
.tp-order-timeline{border-left:2px solid #e5e7eb;margin:18px 0 0 8px;padding-left:20px}
.tp-order-event{position:relative;padding:0 0 18px}
.tp-order-event:before{content:'';position:absolute;left:-27px;top:3px;width:12px;height:12px;border-radius:50%;background:#cc6600;border:3px solid #fff;box-shadow:0 0 0 1px #d1d5db}
.tp-order-event strong{display:block}.tp-order-event span,.tp-order-event small{display:block;color:#667085;font-size:12px;margin-top:3px}.tp-order-event p{margin:6px 0 0;color:#475467}
.tp-danger-zone{margin-top:28px;padding-top:18px;border-top:1px solid #e5e7eb}
.tp-danger-zone summary{cursor:pointer;color:#991b1b;font-weight:bold;margin-bottom:14px}
.tp-store-filter-form{margin:22px 0;padding:16px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc}
.tp-store-list{display:grid;gap:14px;margin-top:18px}
.tp-store-card{display:grid;grid-template-columns:86px minmax(0,1fr);gap:16px;padding:18px;border:1px solid #e5e7eb;border-radius:13px;background:#fff}
.tp-store-card-logo{width:86px;height:86px;display:flex;align-items:center;justify-content:center;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;overflow:hidden;color:#cc6600;font-size:28px;font-weight:bold}
.tp-store-card-logo img{width:100%;height:100%;object-fit:contain;padding:8px;background:#fff}
.tp-store-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.tp-store-card-heading h2{margin:0 0 5px;font-size:20px}
.tp-store-card-heading p,.tp-store-card-copy>p{margin:0;color:#667085;line-height:1.5}
.tp-store-card-copy>p{margin-top:10px}
.tp-store-status-approved{background:#dcfce7;color:#166534}
.tp-store-status-pending{background:#fef3c7;color:#92400e}
.tp-store-status-rejected,.tp-store-status-suspended,.tp-store-status-revoked{background:#fee2e2;color:#991b1b}
.tp-store-status-none{background:#e5e7eb;color:#374151}
.tp-store-conditions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.tp-store-conditions span{padding:10px;border:1px solid #e5e7eb;border-radius:9px;background:#f8fafc;color:#667085;font-size:12px}
.tp-store-conditions strong{display:block;margin-top:4px;color:#1f2937;font-size:14px}
.tp-store-waiting{color:#667085;font-size:13px}
.tp-store-empty{padding:28px;border:1px dashed #cfd6de;border-radius:12px;text-align:center;color:#667085;background:#f8fafc}
body.tp-request-embedded{background:transparent}
.tp-request-embedded .tp-request-wrap{max-width:none;margin:0;padding:0}
.tp-request-embedded .tp-request-card{border:0;border-radius:0;box-shadow:none;padding:22px}
.tp-request-embedded .tp-request-card h1{font-size:24px;margin-bottom:14px}
.tp-request-embedded .tp-request-meta{margin-bottom:14px}
.tp-request-embedded .tp-request-tiers{min-width:0;font-size:13px;margin:14px 0}
.tp-request-embedded .tp-request-tiers th,.tp-request-embedded .tp-request-tiers td{padding:9px 10px}
.tp-request-embedded .tp-field textarea{min-height:112px}
@media(max-width:850px){.tp-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.tp-request-grid{grid-template-columns:1fr}.tp-field-full{grid-column:auto}.tp-request-tiers{font-size:13px}.tp-request-toolbar,.tp-request-title-row,.tp-store-card-heading{align-items:flex-start;flex-direction:column}.tp-request-summary,.tp-dashboard-stats,.tp-dashboard-grid,.tp-order-grid,.tp-store-conditions{grid-template-columns:1fr}.tp-order-statuses{justify-content:flex-start}.tp-store-card{grid-template-columns:1fr}.tp-store-card-logo{width:76px;height:76px}.tp-request-embedded .tp-request-card{padding:16px}.tp-request-embedded .tp-request-tiers{display:block;overflow-x:auto}}
