.kmoc-logo-chat-group {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	vertical-align: middle;
}

.kmoc-header-fallback {
	display: inline-flex;
	align-items: center;
	position: fixed;
	top: 86px;
	right: 20px;
	z-index: 9998;
	vertical-align: middle;
}

.kmoc-header-fallback.is-mounted {
	display: inline-flex;
	position: static;
	margin-left: 12px;
}

.kmoc-header-fallback.is-visible {
	display: inline-flex;
}

.kmoc-logo-chat-group .custom-logo-link {
	display: inline-block;
}

.kmoc-launcher,
.kmoc-send-button,
.kmoc-refresh,
.kmoc-close {
	font: inherit;
}

.kmoc-launcher {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 15px;
	border: 0;
	border-radius: 999px;
	background: #173f35;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(23, 63, 53, .18);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.kmoc-launcher:hover,
.kmoc-launcher:focus-visible {
	background: #c97a25;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 11px 24px rgba(23, 63, 53, .24);
}

.kmoc-launcher-icon {
	font-size: 18px;
	line-height: 1;
}

.kmoc-unread-badge,
.kmoc-thread-unread {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #d94b3e;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
}

.kmoc-home-widget {
	position: relative;
	z-index: 9997;
}

.kmoc-home-widget > .kmoc-launcher {
	position: fixed;
	top: 86px;
	right: 20px;
	z-index: 9998;
}

.kmoc-panel {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #dbe2da;
	border-radius: 20px;
	background: #fff;
	color: #173f35;
	box-shadow: 0 18px 55px rgba(18, 48, 39, .16);
	overflow: hidden;
}

.kmoc-panel[hidden] {
	display: none !important;
}

.kmoc-panel--inline {
	max-width: 1100px;
	margin: 24px auto;
}

.kmoc-panel--floating {
	position: fixed;
	top: 140px;
	right: 20px;
	width: min(920px, calc(100vw - 40px));
	max-height: calc(100vh - 165px);
	z-index: 9999;
	overflow: auto;
}

.kmoc-panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 24px 17px;
	background: linear-gradient(135deg, #173f35, #285b4b);
	color: #fff;
}

.kmoc-panel-header h2,
.kmoc-section-heading h3 {
	margin: 0;
	font-size: 21px;
	line-height: 1.15;
	color: inherit;
}

.kmoc-eyebrow {
	margin: 0 0 6px;
	color: #c97a25;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .13em;
	line-height: 1.25;
	text-transform: uppercase;
}

.kmoc-panel-header .kmoc-eyebrow {
	color: #f8c982;
}

.kmoc-close {
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.kmoc-close:hover,
.kmoc-close:focus-visible {
	background: rgba(255, 255, 255, .16);
}

.kmoc-retention-note {
	margin: 0;
	padding: 11px 24px;
	border-bottom: 1px solid #e6ece5;
	background: #f7faf6;
	color: #587068;
	font-size: 12px;
	line-height: 1.5;
}

.kmoc-panel-grid {
	display: grid;
	grid-template-columns: minmax(280px, .92fr) minmax(340px, 1.08fr);
	min-height: 430px;
}

.kmoc-status-pane,
.kmoc-chat-pane {
	min-width: 0;
	padding: 24px;
}

.kmoc-status-pane {
	border-right: 1px solid #e6ece5;
	background: #fbfcfa;
}

.kmoc-chat-pane {
	display: flex;
	flex-direction: column;
}

.kmoc-section-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 16px;
}

.kmoc-section-heading h3 {
	color: #173f35;
	font-size: 18px;
}

.kmoc-refresh {
	padding: 6px 10px;
	border: 1px solid #c9d8cc;
	border-radius: 8px;
	background: #fff;
	color: #285b4b;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.kmoc-refresh:hover,
.kmoc-refresh:focus-visible {
	border-color: #c97a25;
	color: #a65e16;
}

.kmoc-status-list {
	display: grid;
	gap: 12px;
}

.kmoc-status-card {
	padding: 15px;
	border: 1px solid #dce8dc;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 5px 13px rgba(28, 72, 53, .05);
}

.kmoc-status-card.is-selected {
	border-color: #c97a25;
	box-shadow: 0 0 0 2px rgba(201, 122, 37, .12);
}

.kmoc-status-order {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 11px;
}

.kmoc-status-order strong {
	font-size: 16px;
	color: #173f35;
}

.kmoc-status-date {
	display: block;
	margin-top: 3px;
	color: #789087;
	font-size: 11px;
}

.kmoc-status-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 8px;
	border-radius: 999px;
	background: #e9f2e9;
	color: #285b4b;
	font-size: 10px;
	font-weight: 900;
	line-height: 1.1;
	text-align: right;
}

.kmoc-status-pill--approved,
.kmoc-status-pill--dispatched,
.kmoc-status-pill--material_reached,
.kmoc-status-pill--completed {
	background: #e2f1e3;
	color: #217041;
}

.kmoc-status-pill--approval_pending,
.kmoc-status-pill--hold,
.kmoc-status-pill--cancelled {
	background: #fff2dd;
	color: #a65e16;
}

.kmoc-status-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 13px;
	margin: 0;
}

.kmoc-status-details div {
	min-width: 0;
}

.kmoc-status-details dt {
	margin-bottom: 2px;
	color: #789087;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.kmoc-status-details dd {
	margin: 0;
	color: #24483e;
	font-size: 12px;
	font-weight: 700;
	word-break: break-word;
}

.kmoc-material-reached {
	grid-column: 1 / -1;
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px dashed #d5e0d6;
	color: #217041;
	font-size: 12px;
	font-weight: 800;
}

.kmoc-loading,
.kmoc-empty {
	margin: 0;
	padding: 20px 4px;
	color: #789087;
	font-size: 13px;
	line-height: 1.55;
}

.kmoc-private-label {
	color: #587068;
	font-size: 11px;
	font-weight: 800;
}

.kmoc-message-list {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	min-height: 200px;
	max-height: 350px;
	margin-bottom: 16px;
	padding: 5px 3px 8px;
	overflow-y: auto;
}

.kmoc-message {
	max-width: 86%;
	padding: 10px 12px;
	border-radius: 13px;
	background: #edf5ee;
	color: #24483e;
	font-size: 13px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

.kmoc-message--user {
	align-self: flex-end;
	border-bottom-right-radius: 4px;
	background: #173f35;
	color: #fff;
}

.kmoc-message--admin {
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}

.kmoc-message-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
	font-size: 10px;
	opacity: .7;
}

.kmoc-message--user .kmoc-message-meta {
	color: #e9f5ec;
}

.kmoc-message-order {
	margin-bottom: 5px;
	font-size: 10px;
	font-weight: 800;
	opacity: .78;
}

.kmoc-message-form {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #e6ece5;
}

.kmoc-message-form > label {
	display: block;
	margin-bottom: 5px;
	color: #587068;
	font-size: 11px;
	font-weight: 800;
}

.kmoc-message-form select,
.kmoc-message-form textarea {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #cbdacc;
	border-radius: 9px;
	background: #fff;
	color: #173f35;
	font: inherit;
	font-size: 13px;
}

.kmoc-message-form select {
	min-height: 36px;
	margin-bottom: 8px;
	padding: 7px 9px;
	font-size: 12px;
}

.kmoc-message-form textarea {
	min-height: 74px;
	padding: 10px;
	resize: vertical;
}

.kmoc-message-form select:focus,
.kmoc-message-form textarea:focus {
	border-color: #c97a25;
	box-shadow: 0 0 0 2px rgba(201, 122, 37, .14);
	outline: none;
}

.kmoc-form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 9px;
}

.kmoc-form-status {
	color: #587068;
	font-size: 11px;
}

.kmoc-form-status.is-error {
	color: #b33e36;
}

.kmoc-send-button {
	padding: 9px 14px;
	border: 0;
	border-radius: 8px;
	background: #c97a25;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.kmoc-send-button:hover,
.kmoc-send-button:focus-visible {
	background: #a65e16;
}

.kmoc-send-button:disabled {
	opacity: .55;
	cursor: wait;
}

.kmoc-account-panel-wrap {
	margin-top: 30px;
}

.kmoc-account-heading {
	margin: 0 0 13px;
	color: #173f35;
	font-size: 24px;
}

.kmoc-login-notice {
	max-width: 680px;
	margin: 20px auto;
	padding: 22px;
	border: 1px solid #dbe2da;
	border-radius: 15px;
	background: #fbfcfa;
	color: #24483e;
	text-align: center;
}

.kmoc-login-notice p {
	margin: 7px 0 15px;
}

.kmoc-login-notice a {
	display: inline-block;
	padding: 9px 15px;
	border-radius: 8px;
	background: #173f35;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.kmoc-guest-panel {
	max-width: 650px;
	margin: 0 auto;
	padding: 42px 24px;
	color: #24483e;
	text-align: center;
}

.kmoc-guest-panel strong {
	display: block;
	color: #173f35;
	font-size: 20px;
}

.kmoc-guest-panel p {
	margin: 8px 0 18px;
	color: #587068;
	font-size: 13px;
	line-height: 1.6;
}

.kmoc-guest-panel a {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 8px;
	background: #173f35;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

@media (max-width: 820px) {
	.kmoc-panel-grid {
		grid-template-columns: 1fr;
	}

	.kmoc-status-pane {
		border-right: 0;
		border-bottom: 1px solid #e6ece5;
	}

	.kmoc-panel--floating {
		top: 75px;
		max-height: calc(100vh - 92px);
	}
}

@media (max-width: 560px) {
	.kmoc-logo-chat-group {
		gap: 7px;
	}

	.kmoc-logo-chat-group .kmoc-launcher {
		min-height: 35px;
		padding: 8px 10px;
	}

	.kmoc-logo-chat-group .kmoc-launcher-label {
		display: none;
	}

	.kmoc-home-widget > .kmoc-launcher {
		top: auto;
		right: 13px;
		bottom: 14px;
	}

	.kmoc-panel--floating {
		top: 12px;
		right: 12px;
		bottom: 12px;
		width: calc(100vw - 24px);
		max-height: none;
	}

	.kmoc-panel-header,
	.kmoc-status-pane,
	.kmoc-chat-pane {
		padding: 18px;
	}

	.kmoc-panel-header h2 {
		font-size: 18px;
	}

	.kmoc-status-details {
		grid-template-columns: 1fr;
	}

	.kmoc-material-reached {
		grid-column: auto;
	}

	.kmoc-message-list {
		max-height: 260px;
	}
}

/* v1.1 accordion and full-width presentation */
.kmoc-shortcode-shell,
.kmoc-account-panel-wrap {
	width: 100%;
	max-width: none;
}

.kmoc-panel--inline {
	width: 100%;
	max-width: none;
	margin: 24px 0;
}

.kmoc-panel--floating {
	top: 88px;
	left: 0;
	right: 0;
	width: 100vw;
	max-width: none;
	max-height: calc(100vh - 102px);
	border-right: 0;
	border-left: 0;
	border-radius: 0 0 20px 20px;
}

.kmoc-accordion {
	width: 100%;
	background: #fff;
}

.kmoc-accordion-item {
	border-top: 1px solid #e6ece5;
}

.kmoc-accordion-item:first-child {
	border-top: 0;
}

.kmoc-accordion-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	min-height: 76px;
	padding: 16px 24px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #173f35;
	text-align: left;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.kmoc-accordion-toggle:hover,
.kmoc-accordion-toggle:focus-visible,
.kmoc-accordion-toggle.is-open {
	background: #f4faf4;
	color: #173f35;
	outline: none;
}

.kmoc-accordion-toggle:focus-visible {
	box-shadow: inset 0 0 0 3px rgba(201, 122, 37, .2);
}

.kmoc-accordion-toggle-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kmoc-accordion-toggle-copy strong {
	font-size: 18px;
	line-height: 1.2;
}

.kmoc-accordion-kicker {
	color: #c97a25;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .13em;
	line-height: 1.2;
	text-transform: uppercase;
}

.kmoc-accordion-meta {
	display: inline-flex;
	align-items: center;
	gap: 16px;
}

.kmoc-accordion-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #c9d8cc;
	border-radius: 50%;
	background: #fff;
	color: #285b4b;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}

.kmoc-accordion-toggle.is-open .kmoc-accordion-icon {
	background: #173f35;
	color: #fff;
	transform: rotate(45deg);
}

.kmoc-accordion-content {
	border-top: 1px solid #eef3ed;
	background: #fbfcfa;
}

.kmoc-accordion-content[hidden] {
	display: none;
}

.kmoc-status-pane,
.kmoc-chat-pane {
	border: 0;
	background: transparent;
}

.kmoc-chat-pane {
	min-height: 360px;
}

.kmoc-completed-mark {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 0 0 15px;
	padding: 14px 16px;
	border: 2px solid #3a9b5e;
	border-radius: 14px;
	background: linear-gradient(135deg, #e7f8eb, #f8fff9);
	color: #176a38;
	box-shadow: 0 7px 18px rgba(58, 155, 94, .15);
}

.kmoc-completed-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #3a9b5e;
	color: #fff;
	font-size: 32px;
	font-weight: 900;
	line-height: 1;
}

.kmoc-completed-mark strong,
.kmoc-completed-mark small {
	display: block;
}

.kmoc-completed-mark strong {
	font-size: 21px;
	letter-spacing: .04em;
	line-height: 1.1;
}

.kmoc-completed-mark small {
	margin-top: 3px;
	color: #4e7d5d;
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 820px) {
	.kmoc-panel--floating {
		top: 68px;
		max-height: calc(100vh - 80px);
		border-radius: 0 0 16px 16px;
	}
}

@media (max-width: 560px) {
	.kmoc-header-fallback.is-visible {
		top: auto;
		right: 13px;
		bottom: 14px;
	}

	.kmoc-header-fallback:not(.is-mounted) {
		top: auto;
		right: 13px;
		bottom: 14px;
	}

	.kmoc-logo-chat-group {
		flex-wrap: wrap;
	}

	.kmoc-logo-chat-group .kmoc-launcher-label {
		display: inline;
		font-size: 10px;
	}

	.kmoc-logo-chat-group .kmoc-launcher {
		min-height: 34px;
		padding: 7px 9px;
	}

	.kmoc-panel--floating {
		top: 58px;
		bottom: 0;
		max-height: calc(100vh - 58px);
		border-radius: 0;
	}

	.kmoc-accordion-toggle {
		min-height: 66px;
		padding: 14px 16px;
	}

	.kmoc-accordion-toggle-copy strong {
		font-size: 16px;
	}

	.kmoc-accordion-meta {
		gap: 8px;
	}

	.kmoc-private-label {
		font-size: 10px;
	}

	.kmoc-status-pane,
	.kmoc-chat-pane {
		padding: 16px;
	}

	.kmoc-completed-mark strong {
		font-size: 18px;
	}
}

@media (max-width: 390px) {
	.kmoc-logo-chat-group .kmoc-launcher-label {
		display: inline;
		max-width: 88px;
		font-size: 9px;
		line-height: 1.1;
		white-space: normal;
		text-align: center;
	}

	.kmoc-logo-chat-group .kmoc-launcher {
		max-width: 108px;
		padding: 7px 8px;
	}

	.kmoc-private-label {
		display: none;
	}
}
