/* Tiridro Smart Invitations — widget styling. Scoped under .tin- to avoid
   clashing with the theme/Elementor styles. */

.tin-widget {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
}

.tin-picker {
	text-align: center;
	padding: 32px 16px;
}

.tin-picker-title {
	font-weight: 600;
	font-size: 18px;
	margin-bottom: 16px;
}

.tin-picker-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.tin-log {
	flex: 1;
	overflow-y: auto;
	max-height: 360px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	border: 1px solid #e5e5e5;
	border-radius: 14px 14px 0 0;
	border-bottom: none;
	background: #fbfbfc;
	min-height: 120px;
}

.tin-bubble {
	max-width: 82%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
}

.tin-bubble-assistant {
	background: #f2f3f5;
	color: #1a1a1a;
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}

.tin-bubble-assistant-note {
	background: transparent;
	color: #777;
	font-size: 12.5px;
	align-self: center;
	text-align: center;
	max-width: 100%;
}

.tin-bubble-user {
	background: #1a73e8;
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}

.tin-composer {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px;
	border: 1px solid #e5e5e5;
	border-radius: 0 0 14px 14px;
	background: #fff;
}

.tin-input {
	flex: 1;
	resize: none;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	max-height: 90px;
	font-family: inherit;
}

.tin-btn {
	border: none;
	border-radius: 10px;
	padding: 10px 16px;
	font-size: 14px;
	cursor: pointer;
	font-weight: 600;
	white-space: nowrap;
}

.tin-btn-primary {
	background: #1a73e8;
	color: #fff;
}

.tin-btn-primary:disabled {
	opacity: 0.6;
	cursor: default;
}

.tin-btn-ghost {
	background: #eef0f3;
	color: #1a1a1a;
}

.tin-busy .tin-log {
	opacity: 0.85;
}

.tin-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 12px 0;
}

.tin-canvas {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 10px 34px rgba( 0, 0, 0, 0.18 );
}

.tin-preview-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

@media ( max-width: 480px ) {
	.tin-bubble {
		max-width: 92%;
	}
}
