/* Ask chat dock — bottom-left, never cover sticky ATC */
.pt-ask {
	--pt-ask-w: min(360px, calc(100vw - 1.5rem));
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 99980; /* below sticky ATC (10050–100000) */
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Sit clear above sticky ATC dock on PDP (real dock ~100–120px, not the 48px token). */
body.single-product .pt-ask,
body.pt-sticky-atc-on .pt-ask {
	bottom: calc(var(--pt-ask-atc-clearance, var(--picturestees-atc-height, 120px)) + 16px);
}

.pt-ask__fab {
	display: none;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1rem;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	color: #fff;
	background: #121212;
	font: 600 13px/1.2 inherit;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pt-ask.is-min .pt-ask__fab {
	display: inline-flex;
}

.pt-ask.is-min .pt-ask__panel {
	display: none;
}

.pt-ask__fab-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #dd9933;
	box-shadow: 0 0 0 3px rgba(247, 146, 31, 0.25);
}

.pt-ask__fab:hover {
	background: #1c1c1c;
}

.pt-ask__panel {
	width: var(--pt-ask-w);
	display: flex;
	flex-direction: column;
	max-height: min(520px, calc(100vh - 2rem));
	border-radius: 14px;
	overflow: hidden;
	background: #141414;
	color: #f5f5f5;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.pt-ask__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.75rem 0.85rem;
	background: #1a1a1a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pt-ask__title {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.pt-ask__title strong {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.pt-ask__status {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.55);
}

.pt-ask.is-running .pt-ask__status {
	color: #dd9933;
}

.pt-ask__head-actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}

.pt-ask__supporter {
	border: 0;
	border-radius: 999px;
	padding: 0.35rem 0.65rem;
	font: 600 11px/1.2 inherit;
	cursor: pointer;
	color: #121212;
	background: #dd9933;
	white-space: nowrap;
}

.pt-ask__supporter:hover:not(:disabled) {
	filter: brightness(1.05);
}

.pt-ask__supporter:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	background: #666;
	color: #ddd;
}

.pt-ask__icon {
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	font-size: 12px;
	line-height: 1;
}

.pt-ask__icon:hover {
	background: rgba(255, 255, 255, 0.14);
}

.pt-ask__msgs {
	flex: 1;
	overflow-y: auto;
	padding: 0.85rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	min-height: 180px;
	background: linear-gradient(180deg, #171717 0%, #121212 100%);
}

.pt-ask__row {
	display: flex;
}

.pt-ask__row--user {
	justify-content: flex-end;
}

.pt-ask__row--bot {
	justify-content: flex-start;
}

.pt-ask__bubble {
	max-width: 92%;
	padding: 0.55rem 0.7rem;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-break: break-word;
}

.pt-ask__row--user .pt-ask__bubble {
	background: #dd9933;
	color: #121212;
	border-bottom-right-radius: 4px;
}

.pt-ask__row--bot .pt-ask__bubble {
	background: rgba(255, 255, 255, 0.08);
	color: #f0f0f0;
	border-bottom-left-radius: 4px;
}

.pt-ask__form {
	display: flex;
	gap: 0.4rem;
	padding: 0.65rem 0.75rem 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: #1a1a1a;
}

.pt-ask__input {
	flex: 1;
	min-width: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 0.55rem 0.7rem;
	font: 400 13px/1.3 inherit;
	color: #141414;
	background: #fff;
}

.pt-ask__input:focus {
	outline: none;
	border-color: #dd9933;
	box-shadow: 0 0 0 2px rgba(247, 146, 31, 0.25);
}

.pt-ask__input:disabled {
	opacity: 0.6;
}

.pt-ask__send,
.pt-ask__stop {
	border: 0;
	border-radius: 10px;
	padding: 0 0.85rem;
	font: 600 12px/1 inherit;
	cursor: pointer;
	white-space: nowrap;
}

.pt-ask__send {
	color: #121212;
	background: #dd9933;
}

.pt-ask__send:hover:not(:disabled) {
	filter: brightness(1.05);
}

.pt-ask__stop {
	color: #fff;
	background: #c62828;
}

@media (max-width: 600px) {
	.pt-ask {
		left: 0.75rem;
		bottom: 0.75rem;
	}
	body.single-product .pt-ask,
body.pt-sticky-atc-on .pt-ask {
		bottom: calc(var(--pt-ask-atc-clearance, var(--picturestees-atc-height, 130px)) + 14px);
	}
}
