/* ITSB Hosts & Ticket Queries (My Account) */
.itsbh, .itsbq { --itsbh-line: rgba(0,0,0,.1); --itsbh-soft: rgba(0,0,0,.035); --itsbh-muted: rgba(0,0,0,.55); }

.itsbh-note, .itsbh-small { color: var(--itsbh-muted); }
.itsbh-small { font-size: .85em; }
.itsbh-h { margin: 28px 0 10px; font-size: 1.1em; }
.itsbh-h small { font-weight: normal; color: var(--itsbh-muted); }
.itsbh-title, .itsbq-title { margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.itsbh-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.itsbh-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.itsbh-table th, .itsbh-table td { padding: 9px 10px; border-bottom: 1px solid var(--itsbh-line); text-align: left; vertical-align: top; }
.itsbh-table th { font-size: .78em; text-transform: uppercase; letter-spacing: .04em; color: var(--itsbh-muted); font-weight: 600; white-space: nowrap; }
.itsbh-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.itsbh-actions { text-align: right; white-space: nowrap; }

.itsbh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.itsbh-tile { background: var(--itsbh-soft); border-radius: 10px; padding: 14px 16px; }
.itsbh-tile span { display: block; font-size: .8em; color: var(--itsbh-muted); }
.itsbh-tile strong { display: block; font-size: 1.5em; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.itsbh-tile small { font-size: .55em; font-weight: normal; color: var(--itsbh-muted); }

.itsbh-pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78em; font-weight: 600; background: var(--itsbh-soft); white-space: nowrap; }
.itsbh-pill.is-yes, .itsbh-pill.is-answered { background: #e3f4e8; color: #1c6b37; }
.itsbh-pill.is-open { background: #fff1d6; color: #8a5300; }
.itsbh-pill.is-closed { background: #ececec; color: #555; }

.itsbh-att-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.itsbh-search { width: 100%; max-width: 360px; margin: 4px 0 10px; }
.itsbh-datefilter { margin: 10px 0; }

/* Messages */
.itsbq-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.itsbq-top p { margin: 0; }
.itsbq-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; align-items: center; }
.itsbq-filters a { padding: 4px 12px; border-radius: 99px; border: 1px solid var(--itsbh-line); text-decoration: none; font-size: .88em; }
.itsbq-filters a.is-on { background: #111; color: #fff; border-color: #111; }
.itsbq-sep { width: 1px; height: 20px; background: var(--itsbh-line); margin: 0 6px; }
.itsbq-rows tr.is-unread td { font-weight: 600; }
.itsbq-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d94b2b; margin-right: 6px; vertical-align: middle; }

.itsbq-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 8px 0 18px; font-size: .92em; }
.itsbq-meta dt { font-size: .78em; text-transform: uppercase; letter-spacing: .04em; color: var(--itsbh-muted); margin: 0; }
.itsbq-meta dd { margin: 0; }

.itsbq-thread { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.itsbq-msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; background: var(--itsbh-soft); }
.itsbq-msg.is-mine { align-self: flex-end; background: #eef3fb; }
.itsbq-who { font-size: .8em; font-weight: 600; margin-bottom: 4px; }
.itsbq-who span, .itsbq-sys span { font-weight: normal; color: var(--itsbh-muted); margin-left: 4px; }
.itsbq-body { white-space: normal; overflow-wrap: anywhere; }
.itsbq-sys { align-self: center; font-size: .82em; color: var(--itsbh-muted); text-align: center; }

.itsbq-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.itsbq-form select, .itsbq-form textarea, .itsbq-form input[type=text] { width: 100%; max-width: 640px; box-sizing: border-box; }
.itsbq-route { display: block; margin-top: 6px; font-size: .88em; color: var(--itsbh-muted); }
.itsbq-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.itsbq-actions form { margin: 0; }

/* Small screens: stack table rows */
@media (max-width: 640px) {
	.itsbq-msg { max-width: 100%; }
	.itsbh-table thead { display: none; }
	.itsbh-table, .itsbh-table tbody, .itsbh-table tr, .itsbh-table td { display: block; width: 100%; }
	.itsbh-table tr { border-bottom: 1px solid var(--itsbh-line); padding: 8px 0; }
	.itsbh-table td { border: 0; padding: 3px 0; text-align: left !important; }
	.itsbh-table td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 110px; font-size: .78em; text-transform: uppercase; letter-spacing: .04em; color: var(--itsbh-muted); }
	.itsbh-actions { text-align: left; padding-top: 6px !important; }
}

.itsbh-tile .woocommerce-Price-amount, .itsbh-table .woocommerce-Price-amount { white-space: nowrap; }
