/* KiloWheelz Support widget — black & gold */

#kws-widget-root {
	--kws-gold: #e8b64c;
	--kws-gold-dark: #c98f2b;
	--kws-black: #111111;
	--kws-ink: #222222;
	position: fixed;
	z-index: 999999;
	right: 24px;
	bottom: 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

#kws-widget-root *,
#kws-widget-root *::before,
#kws-widget-root *::after {
	box-sizing: border-box;
}

/* Launcher ----------------------------------------------------------- */

#kws-launcher {
	position: relative;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: 2px solid var(--kws-gold);
	background: linear-gradient(135deg, #1c1c1c, #000);
	color: var(--kws-gold);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	float: right;
}

#kws-launcher:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 22px rgba(232, 182, 76, 0.35);
}

#kws-launcher .kws-ic-close { display: none; }
.kws-open #kws-launcher .kws-ic-chat { display: none; }
.kws-open #kws-launcher .kws-ic-close { display: block; }

.kws-preview-tag {
	position: absolute;
	top: -8px;
	right: -6px;
	background: #d63638;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 2px 5px;
	border-radius: 8px;
}

/* Panel --------------------------------------------------------------- */

#kws-panel {
	display: none;
	position: absolute;
	right: 0;
	bottom: 74px;
	width: 380px;
	max-width: calc(100vw - 32px);
	height: 560px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	flex-direction: column;
}

.kws-open #kws-panel { display: flex; }

@media (max-width: 480px) {
	#kws-widget-root { right: 12px; bottom: 12px; }
	#kws-panel {
		position: fixed;
		inset: 12px;
		width: auto;
		height: auto;
		max-height: none;
		bottom: 84px;
	}
}

/* Header */

.kws-header {
	background: linear-gradient(135deg, #1c1c1c, #000);
	border-bottom: 3px solid var(--kws-gold);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.kws-header-text { flex: 1; min-width: 0; }

.kws-title {
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.5px;
	color: var(--kws-gold);
	font-size: 16px;
}

.kws-sub { font-size: 12px; color: #ccc; margin-top: 2px; }

.kws-back,
.kws-x {
	background: none;
	border: 0;
	color: #bbb;
	font-size: 20px;
	cursor: pointer;
	padding: 2px 6px;
	line-height: 1;
	flex-shrink: 0;
}

.kws-back:hover, .kws-x:hover { color: var(--kws-gold); }

/* Body */

.kws-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #fafafa;
}

.kws-footer {
	flex-shrink: 0;
	text-align: center;
	font-size: 10px;
	color: #999;
	padding: 6px;
	background: #f1f1f1;
	letter-spacing: 0.4px;
}

/* Badges & chips */

.kws-badge {
	display: inline-block;
	background: linear-gradient(135deg, var(--kws-gold), var(--kws-gold-dark));
	color: #111;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 8px;
	border-radius: 10px;
	vertical-align: middle;
}

.kws-chip {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 10px;
	background: #eee;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.kws-chip-new      { background: #fff3cd; color: #8a6100; }
.kws-chip-open     { background: #d9ecff; color: #0b5394; }
.kws-chip-awaiting { background: #ffe8cc; color: #a05a00; }
.kws-chip-resolved { background: #d9f2d9; color: #1e7b1e; }
.kws-chip-closed   { background: #e8e8e8; color: #777; }

/* Home */

.kws-search input {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #ddd;
	border-radius: 10px;
	font-size: 14px;
	outline: none;
}

.kws-search input:focus { border-color: var(--kws-gold); }

.kws-section-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #888;
	margin: 14px 0 6px;
}

.kws-topic {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 6px;
	cursor: pointer;
	font-size: 13.5px;
	color: var(--kws-ink);
	transition: border-color 0.12s ease;
}

.kws-topic:hover { border-color: var(--kws-gold); }
.kws-topic span { color: var(--kws-gold-dark); font-size: 16px; }

.kws-cta {
	display: block;
	width: 100%;
	margin-top: 14px;
	background: linear-gradient(135deg, var(--kws-gold), var(--kws-gold-dark));
	color: #111;
	font-weight: 800;
	font-size: 14px;
	border: 0;
	border-radius: 24px;
	padding: 13px;
	cursor: pointer;
	transition: filter 0.12s ease;
}

.kws-cta:hover { filter: brightness(1.08); }
.kws-cta:disabled { opacity: 0.6; cursor: wait; }

.kws-cta-secondary {
	background: #fff;
	border: 1.5px solid var(--kws-gold);
	color: var(--kws-ink);
	font-weight: 600;
}

/* Article */

.kws-article h3 { margin: 4px 0 10px; font-size: 17px; color: var(--kws-ink); }
.kws-article-body { font-size: 13.5px; color: #333; }
.kws-article-body a { color: var(--kws-gold-dark); }
.kws-article-body ol, .kws-article-body ul { padding-left: 20px; }
.kws-article-feedback { margin-top: 18px; border-top: 1px solid #eee; padding-top: 10px; }

.kws-btn {
	background: linear-gradient(135deg, var(--kws-gold), var(--kws-gold-dark));
	border: 0;
	color: #111;
	font-weight: 700;
	padding: 9px 16px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 13px;
	margin-top: 6px;
}

.kws-btn-ghost {
	background: #fff;
	border: 1.5px solid #ddd;
	color: var(--kws-ink);
	font-weight: 600;
}

.kws-btn-ghost:hover { border-color: var(--kws-gold); }

/* Form */

.kws-account-strip {
	background: #111;
	color: #eee;
	font-size: 12.5px;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 10px;
}

.kws-row { margin-bottom: 10px; }

.kws-row label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #555;
}

.kws-row input[type="text"],
.kws-row input[type="email"],
.kws-row select,
.kws-row textarea {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 9px 12px;
	border: 1.5px solid #ddd;
	border-radius: 8px;
	font-size: 13.5px;
	font-family: inherit;
	background: #fff;
	color: var(--kws-ink);
	outline: none;
}

.kws-row input:focus,
.kws-row select:focus,
.kws-row textarea:focus { border-color: var(--kws-gold); }

.kws-file-label {
	cursor: pointer;
	color: var(--kws-gold-dark) !important;
}

.kws-file-label input[type="file"] { display: none; }

.kws-file-chip {
	display: inline-block;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	font-size: 11.5px;
	padding: 3px 8px;
	margin: 4px 4px 0 0;
	color: #444;
}

.kws-file-chip button {
	background: none;
	border: 0;
	color: #c00;
	cursor: pointer;
	font-size: 13px;
	padding: 0 0 0 4px;
}

.kws-hp { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }

.kws-deflect-box {
	background: #fff8e6;
	border: 1px solid #f0d9a0;
	border-radius: 10px;
	padding: 8px 10px 4px;
	margin-bottom: 10px;
}

.kws-error {
	background: #fdecec;
	border: 1px solid #f5b5b5;
	color: #a00;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 12.5px;
	margin-bottom: 8px;
}

/* Success */

.kws-success { text-align: center; padding: 24px 10px; }
.kws-success-ic { font-size: 44px; }
.kws-success h3 { margin: 10px 0 6px; font-size: 18px; }
.kws-success .kws-muted { font-size: 12.5px; }

/* Tickets */

.kws-ticket-row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 6px;
	cursor: pointer;
	font-size: 13px;
}

.kws-ticket-row:hover { border-color: var(--kws-gold); }
.kws-ticket-num { font-weight: 700; color: var(--kws-gold-dark); white-space: nowrap; }
.kws-ticket-subj { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kws-ink); }

/* Thread */

.kws-thread-head { font-size: 13px; margin-bottom: 10px; color: var(--kws-ink); }

.kws-bubble {
	border-radius: 12px;
	padding: 10px 13px;
	margin-bottom: 8px;
	font-size: 13.5px;
	max-width: 92%;
	white-space: normal;
	word-wrap: break-word;
}

.kws-bubble-meta { font-size: 10.5px; font-weight: 700; color: #888; margin-bottom: 3px; }

.kws-bubble-you {
	background: #fff;
	border: 1px solid #e5e5e5;
	margin-left: auto;
}

.kws-bubble-agent {
	background: #111;
	color: #f2f2f2;
	border: 1px solid #000;
}

.kws-bubble-agent .kws-bubble-meta { color: var(--kws-gold); }

.kws-muted { color: #999; }

.kws-linklike {
	background: none;
	border: 0;
	color: var(--kws-gold-dark);
	text-decoration: underline;
	cursor: pointer;
	font-size: inherit;
	padding: 0;
}

/* My Account table chip reuse */

.kws-account .kws-chip { font-size: 11px; }
.kws-account-member-badge {
	background: linear-gradient(135deg, #fff8e6, #fdf1d3);
	border: 1px solid #e8b64c;
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 600;
}


/* --- v1.0.1: harden against theme/Elementor global styles --- */
#kws-widget-root .kws-body { overflow-x: hidden; }
#kws-widget-root button { font-family: inherit; text-transform: none; letter-spacing: 0; }
#kws-widget-root .kws-topic { color: #222 !important; background: #fff !important; }
#kws-widget-root .kws-topic:hover { border-color: #e8b64c !important; }
#kws-widget-root .kws-topic span { color: #c98f2b !important; }
#kws-widget-root .kws-cta, #kws-widget-root .kws-btn { color: #111 !important; }
#kws-widget-root .kws-cta-secondary, #kws-widget-root .kws-btn-ghost { color: #222 !important; background: #fff !important; }
#kws-widget-root .kws-back, #kws-widget-root .kws-x { color: #bbb !important; background: transparent !important; border: 0 !important; }
#kws-widget-root .kws-back:hover, #kws-widget-root .kws-x:hover { color: #e8b64c !important; }
#kws-widget-root .kws-linklike { color: #c98f2b !important; background: none !important; }
#kws-widget-root .kws-file-chip button { color: #c00 !important; background: none !important; }
#kws-widget-root .kws-ticket-row { color: #222 !important; background: #fff !important; }
#kws-widget-root .kws-file-label { background: transparent !important; }
