/* ==========================================================================
   Chatbeton Chat — BEM, prefix cbc-
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

.cbc {
	/* Dark theme (default from Figma) */
	--cbc-bg: #151925;
	--cbc-bg-messages: #151925;
	--cbc-surface: #151925;
	--cbc-border: #151925;
	--cbc-bubble: #2B313C;
	--cbc-text: #F8F8F8;
	--cbc-title: #E6EAF2;
	--cbc-text-secondary: #A1A7B2;
	--cbc-text-muted: #A1A7B2;
	--cbc-primary: #8A94FF;
	--cbc-primary-hover: #7C3AED;
	--cbc-user-bg: #2B313C;
	--cbc-user-text: #F8F8F8;
	--cbc-bot-bg: #2B313C;
	--cbc-bot-text: #F8F8F8;
	--cbc-error-bg: #2B313C;
	--cbc-error-icon-bg: #C5221F;
	--cbc-error-text: #F8F8F8;
	--cbc-success: #22C55E;
	--cbc-radius: 6px;
	--cbc-radius-sm: 6px;
	--cbc-radius-lg: 6px;
	--cbc-bubble-radius: 6;
	--cbc-bubble-tail: 4px;
	--cbc-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	--cbc-header-height: 56px;
	--cbc-input-min-height: 44px;
	--cbc-font: "Inter", system-ui, -apple-system, sans-serif;
	--cbc-font-size: 15px;
	--cbc-line-height: 1.45;
	box-sizing: border-box;
	width: 100%;
	max-width: calc(982px - 64px);
	padding: 32px;
	margin: 0 auto;
	background: var(--cbc-bg);
	border: 1px solid var(--cbc-border);
	border-radius: var(--cbc-radius-lg);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	font-family: var(--cbc-font);
	font-size: var(--cbc-font-size);
	line-height: var(--cbc-line-height);
	color: var(--cbc-text);
}

.cbc *,
.cbc *::before,
.cbc *::after {
	box-sizing: inherit;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */
.cbc__header {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: var(--cbc-header-height);
	padding: 0 16px;
	background: var(--cbc-surface);
	border-bottom: 1px solid var(--cbc-border);
	flex-shrink: 0;
}

.cbc__header-icon {
	display: none;
}

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

.cbc__title {
	margin: 0;
	font-weight: 400;
	font-size: 24px;
	line-height: 30px;
	color: var(--cbc-title);
}

.cbc__subtitle {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--cbc-text-secondary);
	font-weight: 400;
}

/* -------------------------------------------------------------------------- */
/* Messages area                                                              */
/* -------------------------------------------------------------------------- */
.cbc__messages {
	min-height: 600px;
	max-height: 420px;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--cbc-bg-messages);
	-webkit-overflow-scrolling: touch;
	justify-content: center;
}

.cbc__messages::-webkit-scrollbar {
	width: 2px;
}

.cbc__messages::-webkit-scrollbar-track {
	background-color: #5a607517
}

.cbc__messages::-webkit-scrollbar-thumb {
	background-color: #0b1022
}


/* Date separator */
.cbc__date-sep {
	text-align: center;
	font-size: 13px;
	color: var(--cbc-text-secondary);
	margin: 8px 0;
}

/* History loading — spinner + text while conversation loads */
.cbc__history-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 32px 24px;
	gap: 16px;
}

.cbc__history-loading-spinner {
	display: block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.12);
	border-top-color: var(--cbc-primary, #6366f1);
	animation: cbc-history-spin 0.8s linear infinite;
}

.cbc__history-loading-text {
	font-size: 14px;
	color: var(--cbc-text-secondary);
}

@keyframes cbc-history-spin {
	to { transform: rotate(360deg); }
}

/* Empty state — "CAN I HELP YOU WITH ANYTHING?" */
.cbc__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 32px 24px;
	text-align: center;
}

.cbc__empty-title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
	color: var(--cbc-text);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.3;

	font-family: Inter;
	font-weight: 500;
	font-style: Medium;
	font-size: 44px;
	leading-trim: NONE;
	line-height: 52px;
	letter-spacing: 0%;
	text-align: center;
	text-transform: uppercase;

}

.cbc__empty-text {
	margin: 0;
	font-size: 14px;
	color: var(--cbc-text-secondary);
	max-width: 260px;
	line-height: 1.5;

	font-family: Inter;
	font-weight: 400;
	font-style: Regular;
	font-size: 16px;
	leading-trim: NONE;
	line-height: 20px;
	letter-spacing: 0%;
	text-align: center;

}

.cbc__empty-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	opacity: 0.4;
}

/* -------------------------------------------------------------------------- */
/* Message bubble (user & bot same bg #2B313C, alignment differs)             */
/* -------------------------------------------------------------------------- */
.cbc__msg {
	max-width: 82%;
	padding: 20px;
	border-radius: 6px;
	word-wrap: break-word;
	position: relative;
	background: #1A1F2E;
	font-weight: 400;
	font-style: Regular;
	font-size: 16px;
	leading-trim: NONE;
	line-height: 20px;
	letter-spacing: 0%;
	color: #E6EAF2;
	border: 1px solid #232838;
	box-shadow: 0px 0px 12px 0px #878B9F0F;


}

.cbc__msg--user {
	align-self: flex-end;
	border-bottom-right-radius: var(--cbc-bubble-tail);
}

.cbc__msg--bot {
	align-self: flex-start;
	border-bottom-left-radius: var(--cbc-bubble-tail);
}

.cbc__msg--error {
	align-self: center;
	background: var(--cbc-error-bg);
	color: var(--cbc-error-text);
	font-size: 14px;
	border-radius: var(--cbc-radius);
	padding: 10px 14px;
}

.cbc__msg--system {
	align-self: center;
	color: var(--cbc-text-secondary);
	font-size: 13px;
	background: transparent;
	box-shadow: none;
}

/* Message content: text and attachments as separate blocks (Figma) */
.cbc__msg-body {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

.cbc__msg-body + .cbc__msg-att,
.cbc__msg-body + .cbc__msg-att-list {
	margin-top: 12px;
}

.cbc__msg-att + .cbc__msg-att {
	margin-top: 12px;
}

.cbc__msg-att-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cbc__msg-att-list:first-child {
	margin-top: 0;
}

.cbc__msg-body p {
	margin: 0 0 0.5em;
}

.cbc__msg-body p:first-child { margin-top: 0; }
.cbc__msg-body p:last-child { margin-bottom: 0; }
.cbc__msg-body a {
	color: var(--cbc-primary);
	text-decoration: none;
}
.cbc__msg-body a:hover { text-decoration: underline; }
.cbc__msg-body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--cbc-radius-sm);
	vertical-align: middle;
}

/* Timestamp inside bubble */
.cbc__msg-time {
	display: block;
	margin-top: 6px;
	color: var(--cbc-text-secondary);

	font-weight: 400;
	font-style: Regular;
	font-size: 14px;
	leading-trim: NONE;
	line-height: 16px;
	text-align: right;

}

.cbc__msg--bot .cbc__msg-time {
	text-align: right;
}

/* Each attachment = one block (image or file card) */
.cbc__msg-att {
	display: block;
}

/* Image in bubble: 420×420px, rounded (as on screenshot) */
.cbc__msg-att img {
	display: block;
	width: 420px;
	height: 420px;
	max-width: 100%;
	object-fit: cover;
	border-radius: 10px;
	vertical-align: middle;
}

.cbc__msg.cbc__msg--has-img {
	max-width: 85%;
	position: relative;
	padding: 0;
}

.cbc__msg.cbc__msg--has-img .cbc__msg-time {
	position: absolute;
	right: 10px;
	bottom: 10px;
	background: #15222133;
	font-weight: 400;
	font-style: Regular;
	font-size: 14px;
	leading-trim: NONE;
	line-height: 16px;
	letter-spacing: 0%;
	text-align: right;
	color: #FFFFFF;
	padding: 5px;
	border-radius: 40px;

}

.cbc__msg-att a {
	display: inline-block;
	/* margin-top: 6px; */
	font-size: 13px;
	color: var(--cbc-primary);
}

/* File card in chat (after send) — icon left, name+type, download icon + time right */
.cbc__file-card {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width:  300px;
	/* padding: 10px 12px; */
	/* background: #2C2C35; */
	/* border-radius: 8px; */
	/* margin-top: 8px; */
	/* border: 1px solid rgba(255, 255, 255, 0.06); */
	/* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); */
}

.cbc__file-card-icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 6px;
	background: #8A94FF33;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cbc__file-card-icon svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
}

.cbc__file-card-body {
	flex: 1;
	min-width: 0;
}

.cbc__file-card-name {
	display: block;
	font-size: 14px;
	color: var(--cbc-text);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cbc__file-card-type {
	display: block;
	font-size: 12px;
	color: var(--cbc-text-secondary);
	margin-top: 2px;
}

.cbc__file-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	color: var(--cbc-text-secondary);
	font-size: 12px;
	bottom: -9px;
	position: relative;
}

.cbc__icon-download {
	display: block;
	width: 16px;
	height: 16px;
	background-image: url("../images/download.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.cbc__file-card-meta svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
}

/* Image file card: thumbnail in icon area, clickable for lightbox */
.cbc__file-card--image .cbc__file-card-icon {
	padding: 0;
	overflow: hidden;
}

.cbc__file-card-thumb {
	width: 40px;
	height: 40px;
	object-fit: cover;
	display: block;
	border-radius: 6px;
}

.cbc__file-card--image {
	cursor: pointer;
}

/* Lightbox: full-screen image view with close */
.cbc__lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.cbc__lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	cursor: pointer;
}

.cbc__lightbox-content {
	position: relative;
	z-index: 1;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cbc__lightbox-img {
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	border-radius: 4px;
	pointer-events: none;
}

.cbc__lightbox-close {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	color: #fff;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	transition: background 0.15s ease;
	z-index: 1000000;
}

.cbc__lightbox-close:hover {
	background: rgba(255, 255, 255, 0.15);
}

.cbc__lightbox-close svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	fill: none;
}

/* Bot message footer: votes + issue (icons grey #A1A7B2) */
.cbc__msg-footer {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-top: 8px;
	padding-top: 8px;
	/* border-top: 1px solid rgba(255, 255, 255, 0.08); */
	position: absolute;
	bottom: -40px;
	right: 0;
}

.cbc__vote-btn,
.cbc__issue-btn,
.cbc__msg-footer .cbc__download-img-btn {
	background: none;
	border: none;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	color: var(--cbc-text-secondary);
	opacity: 0.9;
	transition: opacity 0.15s ease, color 0.15s ease;
}

.cbc__msg-footer .cbc__download-img-btn svg {
	display: block;
	width: 21px;
	height: 21px;
}

.cbc__vote-btn:hover,
.cbc__issue-btn:hover,
.cbc__msg-footer .cbc__download-img-btn:hover {
	opacity: 1;
	color: var(--cbc-text);
}

.cbc__vote-btn.is-active {
	opacity: 1;
}

.cbc__vote-btn[data-vote="like"].is-active {
	color: var(--cbc-success);
}

.cbc__vote-btn[data-vote="dislike"].is-active {
	color: #EF4444;
}

.cbc__msg-footer--voted .cbc__vote-btn {
	opacity: 0.5;
	pointer-events: none;
	cursor: default;
}

.cbc__msg-footer--voted .cbc__vote-btn.is-active {
	opacity: 0.85;
}

.cbc__issue-btn {
	font-size: 13px;
	margin-left: 2px;
}

/* -------------------------------------------------------------------------- */
/* Insufficient funds warning (above input)                                   */
/* -------------------------------------------------------------------------- */
.cbc__balance-warning {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	margin: 0 16px 12px;
	background: var(--cbc-bubble);
	border-radius: var(--cbc-radius);
	border: 1px solid rgba(197, 34, 31, 0.3);
}

.cbc__balance-warning--hidden {
	display: none !important;
}

.cbc__balance-warning-icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--cbc-error-icon-bg);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.cbc__balance-warning-text {
	flex: 1;
	min-width: 0;
}

.cbc__balance-warning-title {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--cbc-text);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.cbc__balance-warning-desc {
	margin: 0;
	font-size: 13px;
	color: var(--cbc-text-secondary);
	line-height: 1.4;
}

.cbc__balance-warning-btn {
	padding: 8px 16px;
	background: var(--cbc-primary);
	color: #fff;
	border: none;
	border-radius: var(--cbc-radius-sm);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}

.cbc__balance-warning-btn:hover {
	background: var(--cbc-primary-hover);
}

/* -------------------------------------------------------------------------- */
/* Typing indicator (three dots)                                              */
/* -------------------------------------------------------------------------- */
.cbc__typing {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 20px;
	background: #1a1f2e;
	margin: 0 16px 12px;
	border-radius: var(--cbc-bubble-radius);
	border-bottom-left-radius: var(--cbc-bubble-tail);
	max-width: 72px;
	box-shadow: var(--cbc-shadow);
}

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

.cbc__typing-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cbc-text-secondary);
	animation: cbc-typing 1.2s ease-in-out infinite;
}

.cbc__typing-dot:nth-child(2) { animation-delay: 0.15s; }
.cbc__typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes cbc-typing {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30% { transform: translateY(-4px); opacity: 1; }
}

/* -------------------------------------------------------------------------- */
/* Compose bar (dark grey #2B313C, purple send button)                        */
/* -------------------------------------------------------------------------- */
.cbc__compose {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px;
	background: #111420;
	margin-top: 32px;
	/* background: var(--cbc-surface); */
	/* border-top: 1px solid var(--cbc-border); */
	border: solid 1px #232838;
	border-radius: 6px;
	flex-shrink: 0;
	align-content: center;
	flex-direction: row;
	flex-wrap: wrap;
}

.cbc__input-wrap {
	flex: 1;
	min-width: 0;
}

.cbc__input {
	width: 100%;
	padding: 12px 16px;
	border: none;
	/* border-radius: 22px; */
	font: inherit;
	font-size: 15px;
	resize: none;
	background: transparent;
	color: var(--cbc-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;

	font-weight: 400;
	font-style: Regular;
	font-size: 16px;
	leading-trim: NONE;
	line-height: 20px;
	letter-spacing: 0%;

}

.cbc__input::placeholder {
	color: var(--cbc-text-secondary);
}

.cbc__input:focus {
	outline: none;
	border-color: var(--cbc-primary);
	box-shadow: unset;
}

.cbc__btn {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border: none;
	/* border-radius: 50%; */
	background: #1B2032;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.1s ease;
	color: var(--cbc-text-secondary);
	border: solid 1px transparent;
}

.cbc__btn:hover {
	background: var(--cbc-border);
	color: var(--cbc-text);
}

.cbc__btn:active {
	transform: scale(0.96);
}

.cbc__btn--attach {
	border-color: #232838;
}

.cbc__btn--attach[aria-expanded="true"] {
	border-color: var(--cbc-primary);
	background: rgba(139, 92, 246, 0.2);
	color: var(--cbc-primary);
}

.cbc__btn--attach svg {
	width: 24px;
	height: 24px;
	object-fit: cover;
}

.cbc__attach-wrap {
	position: relative;
	flex-shrink: 0;
}

.cbc__attach-dropdown {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 0;
	min-width: 200px;
	padding: 6px 0;
	background: var(--cbc-bubble);
	border: 1px solid var(--cbc-border);
	border-radius: var(--cbc-radius);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	z-index: 100;
	list-style: none;
	margin: 0;
	background: #1A1F2E;
	border: 1px solid #232838;
	/* display: flex; */
	/* flex-direction: column; */
}

.cbc__attach-dropdown--hidden {
	display: none !important;
}

.cbc__attach-dropdown-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 16px 24px;
	border: none;
	background: none;
	color: var(--cbc-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 0.12s ease;
	font-family: Inter;
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	color: #E6EAF2;
}

.cbc__attach-dropdown-item:hover {
	background: rgba(255, 255, 255, 0.08);
}

.cbc__attach-dropdown-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--cbc-text-secondary);
}

.cbc__btn--send {
	background: transparant;
	color: #fff;
}

.cbc__btn--send:hover {
	background: transparent;
	color: #fff;
}

.cbc__btn--send svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.cbc__btn--send:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.cbc__file-input {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
	pointer-events: none;
}

/* Pending attachments preview — hidden until files added */
.cbc__preview {
	display: none;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px 16px 10px;
	width: 100%;
	order: -1;
}

.cbc__preview.cbc__preview--visible {
	display: flex;
}

/* Preview item: image = thumbnail, file = horizontal card */
.cbc__preview-item {
	position: relative;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #1A1F2E;
	border: 1px solid #232838;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cbc__preview-item:not(.cbc__preview-item--file) {
	width: 72px;
	height: 72px;
}

.cbc__preview-item__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	vertical-align: middle;
}

/* File card in preview (before send) — icon left, name+type, X right */
.cbc__preview-item--file {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 340px;
	min-width: 0;
	padding: 10px 44px 10px 10px;
}

.cbc__preview-item--file .cbc__preview-file-icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 6px;
	background: #8A94FF33;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cbc__preview-item--file .cbc__preview-file-icon svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
}

.cbc__preview-item--file .cbc__preview-file-info {
	flex: 1;
	min-width: 0;
}

.cbc__preview-item--file .cbc__preview-file-name {
	display: block;
	font-size: 14px;
	color: var(--cbc-text);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cbc__preview-item--file .cbc__preview-file-type {
	display: block;
	font-size: 12px;
	color: var(--cbc-text-secondary);
	margin-top: 2px;
}

.cbc__preview-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 18px;
	height: 18px;
	border: none;
	border-radius: 50%;
	background: #8A94FF33;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 1px 0 0 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.1s ease;
}

.cbc__preview-remove:hover {
	background: #505068;
	transform: scale(1.05);
}

.cbc__preview-remove::before {
	content: '×';
	font-weight: 300;
}

/* Loading state — spinning ring centered on thumbnail */
.cbc__preview-item--loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: var(--cbc-primary);
	animation: cbc-preview-spin 0.75s linear infinite;
	pointer-events: none;
	box-sizing: border-box;
}

/* Loading indicator for file (PDF) cards — centered on the icon area on the left */
.cbc__preview-item--file.cbc__preview-item--loading::after {
	left: 34px;
	top: 50%;
	margin-left: -14px;
	margin-top: -14px;
}

@keyframes cbc-preview-spin {
	to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------------------- */
/* Report issue modal (dark #1A1A1E)                                          */
/* -------------------------------------------------------------------------- */
.cbc__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 16px;
	animation: cbc-fadeIn 0.2s ease;
}

@keyframes cbc-fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.cbc__modal {
	background: #0B0E14;
	border-radius: var(--cbc-radius);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	max-width: 680px;
	width: 100%;
	padding: 32px;
	animation: cbc-scaleIn 0.2s ease;
	/* border: 1px solid #2D2D32; */
	box-shadow: 0px 8px 8px 0px #0000001F;
	border-radius:  6px;
}

@keyframes cbc-scaleIn {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: scale(1); }
}

.cbc__modal-close {
	position: absolute;
	top: 30px;
	right: 16px;
	width: 24px;
	height: 24px;
	border: none;
	background: none;
	color: #F0F0F0;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	padding: 0;
	opacity: 0.8;
	background-image: url('../images/close.svg');
	background-repeat: no-repeat;
	background-size: contain;
}

.cbc__modal-close:hover {
	opacity: 1;
}

.cbc__modal-title {
	margin: 0 0 20px;
	font-size: 16px;
	font-weight: 600;
	color: #E6EAF2;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-family: Inter;
	font-weight: 500;
	font-style: Medium;
	font-size: 44px;
	leading-trim: NONE;
	line-height: 52px;
	letter-spacing: 0%;
	text-transform: uppercase;
}

.cbc__modal-label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #F0F0F0;
	text-transform: uppercase;
	letter-spacing: 0.03em;

	font-family: Inter;
	font-weight: 400;
	font-style: Regular;
	font-size: 16px;
	leading-trim: NONE;
	line-height: 20px;
	letter-spacing: 0px;
	text-transform: uppercase;

}

.cbc__modal-textarea {
	border: 1px solid #32323C;
	border-radius: var(--cbc-radius-sm);
	font: inherit;
	font-size: 15px;
	resize: vertical;
	display: block;
	background: #2D2D32;
	color: #F8F8F8;
	disply: block;
	width:  calc(100% - 32px);
	height: 32px;
	border-radius: 6px;
	gap: 12px;
	angle: 0 deg;
	opacity: 1;
	border-width: 1px;
	padding: 20px;
	background-color: #111420;
	border: 1px solid #232838;
	padding: 16px 16px 6px 16px;
}

.cbc__modal-textarea::placeholder {
	color: #6C738A;
	font-family: Inter;
	font-weight: 400;
	font-style: Regular;
	font-size: 16px;
	leading-trim: NONE;
	line-height: 20px;
	letter-spacing: 0px;

}

.cbc__modal-textarea:focus {
	outline: none;
	border-color: var(--cbc-primary);
}

.cbc__modal-actions {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 20px;
	align-items: center;
	align-content: center;
}

.cbc__modal-cancel,
.cbc__modal-submit {
	padding: 20px;
	border-radius: var(--cbc-radius-sm);
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	transition: background 0.15s ease;
	width:  100%;

	font-family: Inter;
	font-weight: 500;
	font-style: Medium;
	font-size: 16px;
	leading-trim: NONE;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: center;


	/* display: none; */
}

.cbc__modal-cancel {
	display: none;
}

.cbc__modal-cancel {
	background: #2D2D32;
	color: #F0F0F0;
}

.cbc__modal-cancel:hover {
	background: #1d264b;
}

.cbc__modal-submit {
	background: #1B2032;
	color: #F0F0F0;
}

.cbc__modal-submit:hover {
	background: #111420;
}

.cbc__modal-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* -------------------------------------------------------------------------- */
/* Light theme (optional)                                                      */
/* -------------------------------------------------------------------------- */
.cbc--theme-light {
	--cbc-bg: #ffffff;
	--cbc-bg-messages: #f8f9fa;
	--cbc-surface: #ffffff;
	--cbc-border: #e8eaed;
	--cbc-bubble: #e8eaed;
	--cbc-text: #1a1a1a;
	--cbc-text-secondary: #5f6368;
	--cbc-text-muted: #80868b;
	--cbc-user-bg: #1a73e8;
	--cbc-user-text: #ffffff;
	--cbc-bot-bg: #e8eaed;
	--cbc-bot-text: #1a1a1a;
	--cbc-error-bg: #fce8e6;
	--cbc-error-icon-bg: #c5221f;
	--cbc-error-text: #c5221f;
}

.cbc--theme-light .cbc__balance-warning {
	background: #fef2f2;
	border-color: rgba(197, 34, 31, 0.2);
}

.cbc--theme-light .cbc__balance-warning-title,
.cbc--theme-light .cbc__balance-warning-desc {
	color: #1a1a1a;
}

.cbc--theme-light .cbc__balance-warning-desc {
	color: #5f6368;
}
