/* Zbotic Support Portal — Frontend Styles */

/* Layout */
.zbotic-sp-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 12px;
}

.zbotic-sp-header h2 {
	margin: 0;
	font-size: 1.5em;
	font-weight: 600;
}

.zbotic-sp-header-actions {
	display: flex;
	gap: 8px;
}

/* Buttons.
   The height/line-height/text-transform resets matter: XStore applies
   `form button { height: var(--et_inputs-height); line-height: 1;
   text-transform: uppercase; }`, which collapses any multi-line button
   inside our forms. */
.zbotic-sp-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	border: none;
	height: auto;
	min-height: 0;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: normal;
	transition: opacity 0.2s;
}

.zbotic-sp-btn:hover {
	opacity: 0.85;
}

.zbotic-sp-btn-primary {
	background-color: #222;
	color: #fff;
}

.zbotic-sp-btn-primary:hover {
	background-color: #222;
	color: #fff;
}

.zbotic-sp-btn-secondary {
	background-color: #f5f5f5;
	color: #333;
	border: 1px solid #ddd;
}

.zbotic-sp-btn-secondary:hover {
	background-color: #ececec;
	color: #333;
}

.zbotic-sp-btn-submit {
	min-width: 140px;
	background-color: #222;
	color: #fff;
}

.zbotic-sp-btn-submit:hover {
	background-color: #222;
	color: #fff;
}

.zbotic-sp-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Filter tabs */
.zbotic-sp-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-bottom: 20px;
	border-bottom: 2px solid #eee;
	padding-bottom: 0;
}

.zbotic-sp-tab {
	padding: 10px 16px;
	color: #666;
	text-decoration: none;
	font-size: 14px;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.2s, border-color 0.2s;
}

.zbotic-sp-tab:hover {
	color: #222;
}

.zbotic-sp-tab.active {
	color: #222;
	font-weight: 600;
	border-bottom-color: #222;
}

.zbotic-sp-count {
	color: #999;
	font-weight: 400;
	font-size: 0.9em;
}

/* Table */
.zbotic-sp-table-wrap {
	overflow-x: auto;
}

.zbotic-sp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.zbotic-sp-table thead th {
	background: #f9f9f9;
	padding: 12px 14px;
	text-align: left;
	font-weight: 600;
	color: #555;
	border-bottom: 2px solid #eee;
	white-space: nowrap;
}

.zbotic-sp-table tbody td {
	padding: 12px 14px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
}

.zbotic-sp-table tbody tr:hover {
	background: #fafafa;
}

.zbotic-sp-table a {
	color: #222;
	text-decoration: none;
	font-weight: 500;
}

.zbotic-sp-table a:hover {
	text-decoration: underline;
}

.zbotic-sp-td-id {
	color: #999;
	font-family: monospace;
}

/* Status badge */
.zbotic-sp-status-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

/* Notice */
.zbotic-sp-notice {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 20px;
	text-align: center;
}

.zbotic-sp-notice a {
	font-weight: 600;
}

.zbotic-sp-empty {
	color: #999;
	text-align: center;
	padding: 40px 20px;
}

/* Forms */
.zbotic-sp-form {
	max-width: 700px;
}

.zbotic-sp-form-row {
	margin-bottom: 20px;
}

.zbotic-sp-form-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.zbotic-sp-form-row input[type="text"],
.zbotic-sp-form-row input[type="email"],
.zbotic-sp-form-row select,
.zbotic-sp-form-row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s;
}

.zbotic-sp-form-row input:focus,
.zbotic-sp-form-row select:focus,
.zbotic-sp-form-row textarea:focus {
	border-color: #222;
	outline: none;
}

.zbotic-sp-form-row textarea {
	resize: vertical;
	min-height: 100px;
}

.zbotic-sp-form-row-half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.zbotic-sp-optional {
	font-weight: 400;
	color: #999;
	font-size: 13px;
}

.zbotic-sp-form-info {
	color: #666;
	font-size: 13px;
}

.zbotic-sp-form-message {
	margin-left: 10px;
	font-size: 14px;
}

.zbotic-sp-form-message.success {
	color: #36a148;
}

.zbotic-sp-form-message.error {
	color: #dc3545;
}

/* Spinner */
.zbotic-sp-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #ddd;
	border-top-color: #222;
	border-radius: 50%;
	animation: zbotic-sp-spin 0.6s linear infinite;
	vertical-align: middle;
	margin-left: 10px;
}

@keyframes zbotic-sp-spin {
	to { transform: rotate(360deg); }
}

/* Ticket view - thread */
.zbotic-sp-ticket-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #eee;
}

.zbotic-sp-ticket-header h2 {
	margin: 0 0 12px 0;
	font-size: 1.4em;
}

.zbotic-sp-ticket-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	font-size: 14px;
	color: #666;
}

.zbotic-sp-meta-item strong {
	color: #333;
}

.zbotic-sp-thread {
	margin-bottom: 32px;
}

.zbotic-sp-post {
	border: 1px solid #eee;
	border-radius: 6px;
	margin-bottom: 16px;
	overflow: hidden;
}

.zbotic-sp-post-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: #f9f9f9;
	font-size: 13px;
	border-bottom: 1px solid #eee;
}

.zbotic-sp-post-author {
	font-weight: 600;
	color: #333;
}

.zbotic-sp-post-date {
	color: #999;
}

.zbotic-sp-staff-badge {
	display: inline-block;
	background: #4eafcb;
	color: #fff;
	padding: 1px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	margin-left: 6px;
	vertical-align: middle;
}

.zbotic-sp-post-staff .zbotic-sp-post-header {
	background: #f0f7fa;
}

.zbotic-sp-post-content {
	padding: 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
}

.zbotic-sp-post-content img {
	max-width: 100%;
	height: auto;
}

.zbotic-sp-post-attachments {
	padding: 10px 16px;
	border-top: 1px solid #eee;
	background: #fafafa;
	font-size: 13px;
}

.zbotic-sp-attachment-link {
	display: inline-block;
	margin-left: 8px;
	color: #4eafcb;
	text-decoration: none;
}

.zbotic-sp-attachment-link:hover {
	text-decoration: underline;
}

.zbotic-sp-att-size {
	color: #999;
}

/* Closed ticket notice */
.zbotic-sp-closed-notice {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 16px 20px;
	text-align: center;
	color: #666;
}

/* Reply form */
.zbotic-sp-reply-form-wrap {
	border-top: 2px solid #eee;
	padding-top: 24px;
}

.zbotic-sp-reply-form-wrap h3 {
	margin: 0 0 16px 0;
	font-size: 1.1em;
}

/* Knowledge Base */
.zbotic-sp-kb-categories {
	display: grid;
	gap: 24px;
}

.zbotic-sp-kb-category {
	border: 1px solid #eee;
	border-radius: 6px;
	overflow: hidden;
}

.zbotic-sp-kb-cat-title {
	margin: 0;
	padding: 16px 20px;
	background: #f9f9f9;
	font-size: 1.1em;
	border-bottom: 1px solid #eee;
}

.zbotic-sp-kb-article-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.zbotic-sp-kb-article-list li {
	border-bottom: 1px solid #f5f5f5;
}

.zbotic-sp-kb-article-list li:last-child {
	border-bottom: none;
}

.zbotic-sp-kb-article-list a {
	display: block;
	padding: 12px 20px;
	color: #333;
	text-decoration: none;
	transition: background 0.15s;
}

.zbotic-sp-kb-article-list a:hover {
	background: #fafafa;
	color: #222;
}

.zbotic-sp-kb-footer {
	margin-top: 32px;
	text-align: center;
	color: #666;
}

/* Article */
.zbotic-sp-article-content h2 {
	margin-top: 0;
	font-size: 1.5em;
}

.zbotic-sp-article-meta {
	color: #999;
	font-size: 13px;
	margin-bottom: 24px;
	display: flex;
	gap: 16px;
}

.zbotic-sp-article-body {
	font-size: 15px;
	line-height: 1.7;
	color: #333;
}

.zbotic-sp-article-body img {
	max-width: 100%;
	height: auto;
}

/* Login prompt */
.zbotic-sp-login-prompt {
	text-align: center;
	padding: 40px 20px;
}

/* Responsive */
@media (max-width: 768px) {
	.zbotic-sp-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.zbotic-sp-filter-tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.zbotic-sp-form-row-half {
		grid-template-columns: 1fr;
	}

	.zbotic-sp-ticket-meta {
		flex-direction: column;
		gap: 8px;
	}

	.zbotic-sp-table thead th,
	.zbotic-sp-table tbody td {
		padding: 8px 10px;
	}

	.zbotic-sp-post-header {
		flex-direction: column;
		gap: 4px;
		align-items: flex-start;
	}
}

/* ==========================================================================
   Odoo-backed portal (v2.0.0)
   Extends the v1 styles above; palette and spacing follow the same scale.
   ========================================================================== */

.zbotic-sp-ticket-list,
.zbotic-sp-ticket-create,
.zbotic-sp-ticket-view,
.zbotic-sp-guest {
	--zbsp-line: #e3e6ea;
	--zbsp-muted: #6b7280;
	--zbsp-ink: #1f2937;
	--zbsp-accent: #4eafcb;
	--zbsp-bg-soft: #f7f9fa;
}

.is-hidden {
	display: none !important;
}

/* Undo the theme's fixed-height uppercase button treatment for every
   tile-style button in the portal — these are content cards, not CTAs.
   font-size counters the theme's `form button { font-size: .85rem }`,
   which children would otherwise inherit. */
.zbotic-sp-category-tile,
.zbotic-sp-order-card,
.zbotic-sp-linkbtn,
.zbotic-sp-star {
	height: auto;
	min-height: 0;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: normal;
	font-size: 14px;
	font-weight: 400;
}

/* The theme also paints `form button:hover` solid navy; every portal button
   hover must re-declare its own background to stay legible. */
.zbotic-sp-linkbtn:hover,
.zbotic-sp-star:hover {
	background: none;
}

/* Keyboard focus: the theme kills the default outline on form buttons. */
.zbotic-sp-btn:focus-visible,
.zbotic-sp-category-tile:focus-visible,
.zbotic-sp-order-card:focus-visible,
.zbotic-sp-linkbtn:focus-visible,
.zbotic-sp-star:focus-visible {
	outline: 2px solid var(--zbsp-accent, #4eafcb);
	outline-offset: 2px;
}

.zbotic-sp-hint {
	color: #6b7280;
	font-size: 13px;
	margin: 6px 0 0;
}

.zbotic-sp-linkbtn {
	background: none;
	border: 0;
	padding: 0;
	color: #4eafcb;
	cursor: pointer;
	font-size: 14px;
	text-decoration: underline;
}

.zbotic-sp-linkbtn:hover {
	color: #2f8ba6;
}

.zbotic-sp-chip {
	background: #f1f4f6;
	border-radius: 12px;
	color: #4b5563;
	display: inline-block;
	font-size: 12px;
	padding: 2px 10px;
}

.zbotic-sp-submit-row {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-top: 20px;
}

/* Status badges -------------------------------------------------------- */

.zbotic-sp-status-badge.is-open { background: #4eafcb; }
.zbotic-sp-status-badge.is-pending { background: #e0af2a; }
.zbotic-sp-status-badge.is-waiting { background: #e07a2a; }
.zbotic-sp-status-badge.is-solved { background: #36a148; }
.zbotic-sp-status-badge.is-closed { background: #8a94a0; }

/* Ticket list ---------------------------------------------------------- */

.zbotic-sp-search {
	margin-left: auto;
}

.zbotic-sp-search input[type="search"] {
	border: 1px solid var(--zbsp-line);
	border-radius: 6px;
	font-size: 14px;
	padding: 7px 12px;
	min-width: 220px;
}

.zbotic-sp-cards {
	list-style: none;
	margin: 0;
	padding: 0;
}

.zbotic-sp-card {
	border: 1px solid var(--zbsp-line);
	border-radius: 8px;
	margin-bottom: 10px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.zbotic-sp-card:hover {
	border-color: var(--zbsp-accent);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.zbotic-sp-card.has-unread {
	border-left: 3px solid #dc3545;
}

.zbotic-sp-card-main {
	color: inherit;
	display: block;
	padding: 14px 16px;
	text-decoration: none;
}

.zbotic-sp-card-main:hover {
	text-decoration: none;
}

.zbotic-sp-card-top {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 6px;
}

.zbotic-sp-card-ref {
	color: var(--zbsp-muted);
	font-size: 13px;
	font-weight: 600;
}

.zbotic-sp-card-subject {
	color: var(--zbsp-ink);
	display: block;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
}

.zbotic-sp-card-meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.zbotic-sp-card-date {
	color: var(--zbsp-muted);
	font-size: 13px;
	margin-left: auto;
}

.zbotic-sp-new-pill {
	background: #dc3545;
	border-radius: 10px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	text-transform: uppercase;
}

.zbotic-sp-list-footer {
	border-top: 1px solid var(--zbsp-line);
	color: var(--zbsp-muted);
	margin-top: 24px;
	padding-top: 16px;
}

/* Create flow ---------------------------------------------------------- */

.zbotic-sp-step {
	border-top: 1px solid var(--zbsp-line);
	margin-top: 24px;
	padding-top: 24px;
}

.zbotic-sp-step:first-of-type {
	border-top: 0;
	margin-top: 0;
	padding-top: 0;
}

.zbotic-sp-step-title {
	font-size: 17px;
	margin: 0 0 14px;
}

.zbotic-sp-category-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.zbotic-sp-category-tile {
	background: #fff;
	border: 1px solid var(--zbsp-line);
	border-radius: 8px;
	cursor: pointer;
	display: block;
	padding: 14px;
	text-align: left;
	transition: border-color .15s ease, background .15s ease;
	width: 100%;
}

.zbotic-sp-category-tile:hover {
	background: var(--zbsp-bg-soft);
	border-color: var(--zbsp-accent);
}

.zbotic-sp-category-tile.is-selected {
	background: #eef7fa;
	border-color: var(--zbsp-accent);
	box-shadow: inset 0 0 0 1px var(--zbsp-accent);
}

.zbotic-sp-category-icon {
	display: block;
	font-size: 22px;
	margin-bottom: 6px;
}

.zbotic-sp-category-name {
	color: var(--zbsp-ink);
	display: block;
	font-weight: 600;
	line-height: 1.3;
}

.zbotic-sp-category-desc {
	color: var(--zbsp-muted);
	display: block;
	font-size: 13px;
	margin-top: 4px;
}

/* Order picker */

.zbotic-sp-order-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.zbotic-sp-order-card {
	align-items: center;
	background: #fff;
	border: 1px solid var(--zbsp-line);
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	gap: 12px;
	padding: 10px;
	text-align: left;
	width: 100%;
}

.zbotic-sp-order-card:hover {
	background: var(--zbsp-bg-soft);
	border-color: var(--zbsp-accent);
}

.zbotic-sp-order-card.is-selected {
	background: #eef7fa;
	border-color: var(--zbsp-accent);
	box-shadow: inset 0 0 0 1px var(--zbsp-accent);
}

.zbotic-sp-order-thumb img {
	border-radius: 4px;
	height: 48px;
	object-fit: cover;
	width: 48px;
}

.zbotic-sp-order-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.zbotic-sp-order-number {
	color: var(--zbsp-ink);
	font-weight: 600;
}

.zbotic-sp-order-date,
.zbotic-sp-order-total {
	color: var(--zbsp-muted);
	font-size: 13px;
}

/* Product picker */

.zbotic-sp-product-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.zbotic-sp-product-tile {
	align-items: center;
	border: 1px solid var(--zbsp-line);
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	position: relative;
	text-align: center;
}

.zbotic-sp-product-tile input[type="checkbox"] {
	accent-color: var(--zbsp-accent);
	height: 18px;
	margin: 0;
	position: absolute;
	right: 8px;
	top: 8px;
	width: 18px;
}

.zbotic-sp-product-tile:has(input:checked) {
	background: #eef7fa;
	border-color: var(--zbsp-accent);
}

.zbotic-sp-product-thumb img {
	border-radius: 4px;
	height: 64px;
	object-fit: cover;
	width: 64px;
}

.zbotic-sp-product-noimg {
	background: var(--zbsp-bg-soft);
	border-radius: 4px;
	display: block;
	height: 64px;
	width: 64px;
}

.zbotic-sp-product-name {
	color: var(--zbsp-ink);
	font-size: 13px;
	line-height: 1.3;
}

/* Deflection + guided questions */

.zbotic-sp-deflect-card {
	background: var(--zbsp-bg-soft);
	border: 1px solid var(--zbsp-line);
	border-left: 3px solid var(--zbsp-accent);
	border-radius: 6px;
	padding: 16px;
}

.zbotic-sp-deflect-card h4 {
	margin: 0 0 8px;
}

.zbotic-sp-deflect-card p {
	margin: 0 0 10px;
}

.zbotic-sp-track-row {
	background: #fff;
	border: 1px solid var(--zbsp-line);
	border-radius: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0 0 10px;
	padding: 10px 12px;
}

.zbotic-sp-track-carrier {
	font-weight: 600;
}

.zbotic-sp-track-no {
	font-family: monospace;
}

.zbotic-sp-deflect-actions {
	margin-top: 14px;
}

.zbotic-sp-kb-suggest {
	margin-top: 10px;
}

.zbotic-sp-kb-suggest ul {
	margin: 6px 0 0;
	padding-left: 18px;
}

.zbotic-sp-kb-title {
	color: var(--zbsp-muted);
	font-size: 13px;
	margin: 0;
}

.zbotic-sp-checkbox-row label {
	align-items: center;
	display: flex;
	gap: 8px;
}

/* Uploads */

.zbotic-sp-uploads {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.zbotic-sp-upload {
	background: var(--zbsp-bg-soft);
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 4px;
	padding: 6px 10px;
}

.zbotic-sp-upload.is-error {
	background: #fdecee;
	color: #a32430;
}

.zbotic-sp-upload.is-done {
	background: #eef7ef;
}

/* Ticket view ---------------------------------------------------------- */

.zbotic-sp-awaiting-note {
	background: #fff6e5;
	border-left: 3px solid #e0af2a;
	border-radius: 4px;
	margin-bottom: 12px;
	padding: 10px 14px;
}

.zbotic-sp-csat {
	border: 1px solid var(--zbsp-line);
	border-radius: 8px;
	margin-top: 24px;
	padding: 20px;
	text-align: center;
}

.zbotic-sp-csat h3 {
	margin: 0 0 12px;
}

.zbotic-sp-stars {
	display: inline-flex;
	gap: 4px;
}

.zbotic-sp-star {
	background: none;
	border: 0;
	color: #d5d9de;
	cursor: pointer;
	font-size: 30px;
	line-height: 1;
	padding: 0 2px;
	transition: color .12s ease;
}

.zbotic-sp-star:hover,
.zbotic-sp-star.is-lit {
	color: #f0b429;
}

.zbotic-sp-csat textarea {
	display: block;
	margin: 14px auto 0;
	max-width: 420px;
	width: 100%;
}

.zbotic-sp-csat-thanks {
	color: #36a148;
	font-weight: 600;
	margin: 0;
}

.zbotic-sp-reopen-box {
	margin-top: 12px;
}

.zbotic-sp-reopen-box textarea {
	margin-bottom: 10px;
	width: 100%;
}

/* Order page panel ----------------------------------------------------- */

.zbotic-sp-order-support {
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	margin: 28px 0;
	padding: 18px 20px;
}

.zbotic-sp-order-support-title {
	font-size: 17px;
	margin: 0 0 8px;
}

.zbotic-sp-order-support-intro {
	color: #6b7280;
	margin: 0 0 14px;
}

.zbotic-sp-order-ticket-list {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.zbotic-sp-order-ticket {
	align-items: center;
	border-top: 1px solid #eef0f2;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px 0;
}

.zbotic-sp-order-ticket:first-child {
	border-top: 0;
}

.zbotic-sp-order-ticket-link {
	color: inherit;
	flex: 1;
	min-width: 200px;
	text-decoration: none;
}

.zbotic-sp-order-ticket-ref {
	color: #6b7280;
	font-size: 13px;
	margin-right: 8px;
}

.zbotic-sp-order-ticket-subject {
	font-weight: 600;
}

.zbotic-sp-unread-dot {
	background: #dc3545;
	border-radius: 50%;
	display: inline-block;
	height: 9px;
	width: 9px;
}

.zbotic-sp-order-support-actions {
	margin: 0;
}

/* Guest verification --------------------------------------------------- */

.zbotic-sp-guest {
	margin: 0 auto;
	max-width: 460px;
}

.zbotic-sp-guest-intro {
	color: #6b7280;
}

.zbotic-sp-guest-divider {
	border-top: 1px solid #e3e6ea;
	margin: 24px 0;
	position: relative;
	text-align: center;
}

.zbotic-sp-guest-divider span {
	background: #fff;
	color: #6b7280;
	font-size: 13px;
	padding: 0 12px;
	position: relative;
	top: -10px;
}

.zbotic-sp-code-input {
	font-size: 22px;
	letter-spacing: 8px;
	max-width: 200px;
	text-align: center;
}

/* Notices + KB --------------------------------------------------------- */

.zbotic-sp-notice-error {
	background: #fdecee;
	border-left: 3px solid #dc3545;
}

.zbotic-sp-kb-redirect {
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	padding: 24px;
	text-align: center;
}

/* Mobile --------------------------------------------------------------- */

@media (max-width: 768px) {

	.zbotic-sp-search {
		flex-basis: 100%;
		margin-left: 0;
		margin-top: 8px;
		width: 100%;
	}

	.zbotic-sp-search input[type="search"] {
		min-width: 0;
		width: 100%;
	}

	.zbotic-sp-card-date {
		margin-left: 0;
	}

	.zbotic-sp-category-grid,
	.zbotic-sp-order-grid {
		grid-template-columns: 1fr;
	}

	.zbotic-sp-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.zbotic-sp-submit-row .zbotic-sp-btn-submit {
		width: 100%;
	}

	/* The theme squeezes the orders table on small screens; keep the row
	   actions (Pay / View / Cancel / Get help) compact so they wrap
	   instead of forcing a sideways scroll. Scoped under the account body
	   class to out-rank XStore's own button rules. */
	body.woocommerce-account td.woocommerce-orders-table__cell-order-actions .woocommerce-button {
		display: inline-block;
		font-size: 11px;
		height: auto;
		line-height: 1.4;
		margin: 2px 2px 2px 0;
		min-height: 0;
		padding: 6px 8px;
	}
}

/* WISMO order card on the ticket view — the ERP already knows the answer. */
.zbotic-sp-wismo-card {
	background: var(--zbsp-bg-soft);
	border: 1px solid var(--zbsp-line);
	border-left: 3px solid var(--zbsp-accent);
	border-radius: 6px;
	margin-bottom: 16px;
	padding: 16px;
}

.zbotic-sp-wismo-card h4 {
	margin: 0 0 10px;
}

.zbotic-sp-wismo-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 16px;
	margin: 0;
}

.zbotic-sp-wismo-grid dt {
	color: var(--zbsp-muted, #6a7280);
	font-weight: 400;
	margin: 0;
}

.zbotic-sp-wismo-grid dd {
	font-weight: 600;
	margin: 0;
}

.zbotic-sp-wismo-track {
	display: inline-block;
	margin-top: 12px;
}

@media (max-width: 480px) {
	.zbotic-sp-wismo-grid {
		grid-template-columns: 1fr;
		gap: 0 0;
	}

	.zbotic-sp-wismo-grid dd {
		margin-bottom: 8px;
	}
}
