/* The AI helper's panel. Colours and fonts come from the PS Computers theme (its custom properties),
   with the same values as fallbacks. Full screen on a phone, a centred panel on a desktop. */
.psc-ai { position: fixed; inset: 0; z-index: 200; --c-cyan: var(--cyan, #00acec); --c-blue: var(--blue, #00648c); --c-navy: var(--navy, #04263a); --c-line: var(--line, #e2eaf0); --c-muted: var(--muted, #5b6b78); --c-ink: var(--ink, #0b1b26); --c-grad: var(--grad, linear-gradient(135deg, #00acec, #00648c)); --c-ease: var(--ease, cubic-bezier(.2, .8, .2, 1)); }
.psc-ai[hidden] { display: none; }
.psc-ai__backdrop { position: absolute; inset: 0; background: rgba(4, 38, 58, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.psc-ai__panel { position: absolute; left: 50%; top: 50%; width: min(860px, calc(100vw - 40px)); height: min(88vh, 900px); display: flex; flex-direction: column; background: #f6fafc; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 90px rgba(4, 38, 58, .35); transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .38s var(--c-ease), opacity .3s; }
.psc-ai.is-open .psc-ai__backdrop { opacity: 1; }
.psc-ai.is-open .psc-ai__panel { transform: translate(-50%, -50%); opacity: 1; }
@media (max-width: 899px) {
	.psc-ai__panel { left: 0; top: auto; bottom: 0; width: 100%; height: 94vh; height: 94dvh; border-radius: 22px 22px 0 0; transform: translateY(104%); }
	.psc-ai.is-open .psc-ai__panel { transform: none; }
}
.psc-ai__head { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--grad-dark, linear-gradient(160deg, #04263a, #073550 55%, #004a6b)); color: #fff; overflow: hidden; }
.psc-ai__head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 30px 30px, linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 30px 30px; pointer-events: none; }
.psc-ai__orb { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--c-grad); box-shadow: 0 0 0 4px rgba(0, 172, 236, .18), 0 8px 20px rgba(0, 172, 236, .45); animation: psc-ai-breathe 3.6s ease-in-out infinite; }
.psc-ai__orb .psc-i { width: 22px; height: 22px; }
@keyframes psc-ai-breathe { 50% { box-shadow: 0 0 0 9px rgba(0, 172, 236, .08), 0 8px 26px rgba(0, 172, 236, .55); } }
.psc-ai__title { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.psc-ai__title strong { font: 700 17px var(--f-display, sans-serif); }
.psc-ai__title span { font-size: 13px; color: #a9cfe0; }
.psc-ai__x { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .2s; }
.psc-ai__x:hover { background: rgba(255, 255, 255, .14); }
.psc-ai__log { flex: 1; overflow: auto; padding: 18px 18px 8px; overscroll-behavior: contain; scroll-behavior: smooth; }
.psc-ai__welcome { animation: psc-ai-up .4s var(--c-ease); }
.psc-ai__hello { margin: 4px 0 14px; font-size: 15.5px; color: var(--c-ink); line-height: 1.55; }
.psc-ai__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.psc-ai__chips.is-follow { margin-top: 14px; }
.psc-ai__chip { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink); font: 500 13.5px var(--f-body, sans-serif); cursor: pointer; text-align: left; transition: border-color .2s, transform .2s var(--c-ease), background .2s; animation: psc-ai-up .35s var(--c-ease) both; }
.psc-ai__chip:nth-child(2) { animation-delay: .04s; } .psc-ai__chip:nth-child(3) { animation-delay: .08s; } .psc-ai__chip:nth-child(4) { animation-delay: .12s; } .psc-ai__chip:nth-child(5) { animation-delay: .16s; } .psc-ai__chip:nth-child(6) { animation-delay: .2s; }
.psc-ai__chip:hover { border-color: var(--c-cyan); background: #effafe; transform: translateY(-1px); }
@keyframes psc-ai-up { from { opacity: 0; transform: translateY(8px); } }
.psc-ai__msg { margin-bottom: 14px; animation: psc-ai-up .32s var(--c-ease); }
.psc-ai__msg--you { margin-left: auto; width: fit-content; max-width: 82%; padding: 10px 15px; border-radius: 16px 16px 4px 16px; background: var(--c-navy); color: #fff; font-size: 15px; }
.psc-ai__msg--bot { padding: 16px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid var(--c-line); box-shadow: 0 6px 20px rgba(4, 38, 58, .05); }
.psc-ai__intro { margin: 0 0 12px; font-size: 15.5px; line-height: 1.55; color: var(--c-ink); }
.psc-ai__crit { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; color: var(--c-muted); }
.psc-ai__crit .psc-i { width: 15px; height: 15px; color: var(--c-cyan); }
/* Waiting: a scan line and the step names */
.psc-ai__thinking { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--c-blue); font-weight: 600; font-size: 14px; }
.psc-ai__scan { position: relative; width: 26px; height: 26px; border-radius: 8px; background: var(--c-grad); overflow: hidden; }
.psc-ai__scan::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; background: rgba(255, 255, 255, .8); animation: psc-ai-scan 1.1s ease-in-out infinite; }
@keyframes psc-ai-scan { 0% { top: -30%; } 100% { top: 100%; } }
.psc-ai__step.is-in { animation: psc-ai-up .3s var(--c-ease); }
.psc-ai__skeleton { display: grid; gap: 10px; }
.psc-ai__skeleton i { display: block; height: 74px; border-radius: 14px; background: linear-gradient(90deg, #eef4f8 25%, #f8fbfd 50%, #eef4f8 75%) 0 0 / 200% 100%; animation: psc-ai-shimmer 1.3s linear infinite; }
.psc-ai__skeleton i:nth-child(2) { opacity: .7; } .psc-ai__skeleton i:nth-child(3) { opacity: .45; }
@keyframes psc-ai-shimmer { to { background-position: -200% 0; } }
/* Product cards */
.psc-ai__items { display: grid; gap: 10px; }
.psc-ai__item { position: relative; display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line); animation: psc-ai-up .38s var(--c-ease) both; animation-delay: calc(var(--i) * 60ms); transition: border-color .2s, box-shadow .25s, transform .25s var(--c-ease); }
.psc-ai__item:hover { border-color: rgba(0, 172, 236, .45); box-shadow: 0 10px 26px rgba(4, 38, 58, .1); transform: translateY(-1px); }
.psc-ai__media { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 12px; background: #fff; overflow: hidden; }
.psc-ai__media img { width: 100%; height: 100%; object-fit: contain; }
.psc-ai__ph { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 12px; background: linear-gradient(140deg, #f3f9fc, #e6f2f8); color: rgba(0, 100, 140, .45); }
.psc-ai__ph .psc-i { width: 34px; height: 34px; }
.psc-ai__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.psc-ai__role { font: 700 11px var(--f-body, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-d, #0092c9); }
.psc-ai__name { color: var(--c-ink) !important; font-weight: 600; font-size: 14.5px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.psc-ai__name:hover { color: var(--c-blue) !important; }
.psc-ai__reason { margin: 0; font-size: 13.5px; color: var(--c-muted); line-height: 1.45; }
.psc-ai__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.psc-ai__price { font: 700 17px var(--f-display, sans-serif); color: var(--c-blue); display: flex; gap: 8px; align-items: baseline; }
.psc-ai__price del { font-size: 12.5px; color: var(--c-muted); font-weight: 600; }
.psc-ai__add, .psc-ai__btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--c-grad); color: #fff !important; font: 600 13.5px var(--f-body, sans-serif); text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 172, 236, .3); transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.psc-ai__add:hover, .psc-ai__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 172, 236, .4); }
.psc-ai__add:active, .psc-ai__btn:active { transform: scale(.96); }
.psc-ai__add .psc-i, .psc-ai__btn .psc-i { width: 18px; height: 18px; }
.psc-ai__add.is-ghost, .psc-ai__btn:not(.is-primary) { background: #fff; color: var(--c-ink) !important; border: 1.5px solid var(--c-line); box-shadow: none; }
.psc-ai__add.is-loading, .psc-ai__btn.is-loading { pointer-events: none; opacity: .75; }
.psc-ai__add.is-loading .psc-i { animation: psc-ai-spin .8s linear infinite; }
.psc-ai__add.is-added, .psc-ai__btn.is-added { background: var(--ok, #129b52); box-shadow: 0 6px 16px rgba(18, 155, 82, .3); }
@keyframes psc-ai-spin { to { transform: rotate(360deg); } }
/* The score ring fills when the answer arrives */
.psc-ai__score { position: relative; display: grid; place-items: center; width: 52px; height: 52px; }
.psc-ai__score svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.psc-ai__score circle { fill: none; stroke: #e6f0f5; stroke-width: 3.2; }
.psc-ai__score circle.is-val { stroke: var(--c-cyan); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; transition: stroke-dashoffset 1s var(--c-ease); }
.psc-ai__score.is-in circle.is-val { stroke-dashoffset: calc(97.4 - 97.4 * var(--s) / 100); }
.psc-ai__score b { font: 700 14px var(--f-display, sans-serif); color: var(--c-ink); }
/* Build total, service */
.psc-ai__total { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--c-navy); color: #cfe3ee; }
.psc-ai__total > div { display: flex; flex-direction: column; gap: 2px; }
.psc-ai__total span { font-size: 13px; }
.psc-ai__total strong { font: 700 22px var(--f-display, sans-serif); color: #fff; }
.psc-ai__total small { font-size: 12.5px; color: #9fc1d2; }
.psc-ai__service { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, #04263a, #073550); color: #cfe3ee; margin-bottom: 10px; }
.psc-ai__service strong { color: #fff; font: 700 16px var(--f-display, sans-serif); }
.psc-ai__service p { margin: 6px 0 12px; font-size: 14px; line-height: 1.5; }
.psc-ai__service-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--c-grad); color: #fff; }
.psc-ai__service-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.psc-ai__service-hint { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13.5px; color: var(--c-muted); }
.psc-ai__service-hint .psc-i { width: 16px; height: 16px; color: var(--c-blue); }
/* Composer */
.psc-ai__form { display: flex; align-items: flex-end; gap: 8px; margin: 0 14px; padding: 8px; border-radius: 18px; background: #fff; border: 2px solid var(--c-line); transition: border-color .2s, box-shadow .2s; }
.psc-ai__form:focus-within { border-color: var(--c-cyan); box-shadow: 0 0 0 5px rgba(0, 172, 236, .14); }
.psc-ai__form textarea { flex: 1; min-height: 42px !important; max-height: 140px; padding: 10px 8px !important; border: 0 !important; box-shadow: none !important; resize: none; outline: none; font: 500 16px/1.4 var(--f-body, sans-serif); color: var(--c-ink); background: none !important; }
.psc-ai__send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; border: 0; background: var(--c-grad); color: #fff; cursor: pointer; transition: transform .15s; }
.psc-ai__send:active { transform: scale(.92); }
.psc-ai__send:disabled { opacity: .5; }
.psc-ai__note { margin: 8px 18px 12px; font-size: 11.5px; color: var(--c-muted); text-align: center; padding-bottom: env(safe-area-inset-bottom); }
.psc-ai__note a { color: var(--c-blue); }
@media (max-width: 599px) {
	.psc-ai__item { grid-template-columns: 64px 1fr; gap: 12px; }
	.psc-ai__media { width: 64px; height: 64px; }
	.psc-ai__score { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; }
	.psc-ai__score b { font-size: 12px; }
	.psc-ai__name { padding-right: 40px; }
	.psc-ai__total { flex-direction: column; align-items: stretch; }
	.psc-ai__log { padding: 14px 12px 6px; }
	.psc-ai__form { margin: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .psc-ai *, .psc-ai { animation: none !important; transition: none !important; } }
/* Custom order ("Comandă specială"): the offer card and its form */
.psc-ai__order { display: flex; gap: 14px; margin-top: 12px; padding: 16px; border-radius: 16px; background: #effafe; border: 1.5px dashed rgba(0, 172, 236, .55); animation: psc-ai-up .35s var(--c-ease); }
.psc-ai__order strong { font: 700 15.5px var(--f-display, sans-serif); color: var(--c-ink); }
.psc-ai__order p { margin: 6px 0 12px; font-size: 14px; color: var(--c-muted); line-height: 1.5; }
.psc-ai__order.is-done { background: #e9f8ef; border: 1.5px solid rgba(18, 155, 82, .35); }
.psc-ai__order.is-done p { margin-bottom: 0; }
.psc-ai__order-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--c-grad); color: #fff; }
.psc-ai__order.is-done .psc-ai__order-icon { background: var(--ok, #129b52); }
.psc-ai__orderform { display: grid; gap: 10px; margin-top: 4px; animation: psc-ai-up .3s var(--c-ease); }
.psc-ai__orderform-title { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 16px var(--f-display, sans-serif); color: var(--c-ink); }
.psc-ai__orderform-title .psc-i { color: var(--c-blue); }
.psc-ai__orderform label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--c-ink); }
.psc-ai__orderform input:not([type="checkbox"]), .psc-ai__orderform textarea { width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 11px; border: 1.5px solid var(--line-2, #d3dfe7); font: 500 16px var(--f-body, sans-serif); background: #fff; color: var(--c-ink); }
.psc-ai__orderform input:focus, .psc-ai__orderform textarea:focus { outline: none; border-color: var(--c-cyan); box-shadow: 0 0 0 4px rgba(0, 172, 236, .14); }
.psc-ai__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.psc-ai__consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px !important; font-weight: 500 !important; color: var(--c-muted) !important; line-height: 1.45; }
.psc-ai__consent input { margin-top: 3px; }
.psc-ai__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.psc-ai__orderform-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #b42318; font-size: 13.5px; }
.psc-ai__orderform .psc-ai__btn { justify-self: start; min-height: 46px; padding: 0 18px; }
.psc-ai__ts:empty { display: none; }
.psc-ai__ts { margin: 0 14px 8px; }
@media (max-width: 599px) { .psc-ai__grid2 { grid-template-columns: 1fr; } .psc-ai__orderform .psc-ai__btn { justify-self: stretch; } }

/* While a custom-order form is open, it is the only thing to fill in */
.psc-ai.is-ordering .psc-ai__form, .psc-ai.is-ordering .psc-ai__note { display: none; }
.psc-ai.is-ordering .psc-ai__log { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.psc-ai__orderform-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.psc-ai__cancel { border: 0; background: none; padding: 6px 2px; color: var(--c-muted); font: 600 14px var(--f-body, sans-serif); text-decoration: underline; cursor: pointer; }
@media (max-width: 899px) {
	.psc-ai__panel { height: calc(100dvh - 44px); }
	.psc-ai__head { padding: 12px 14px; }
	.psc-ai__title span { font-size: 12px; }
	.psc-ai__note { margin: 6px 14px calc(10px + env(safe-area-inset-bottom)); font-size: 11px; }
	.psc-ai__note .is-long { display: none; }
	.psc-ai__form { margin-bottom: 0; }
	.psc-ai__orderform .psc-ai__btn { flex: 1; }
}

.psc-ai__privacy { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--c-line); font-size: 12.5px; line-height: 1.45; color: var(--c-muted); }
.psc-ai__privacy .psc-i { width: 16px; height: 16px; flex: none; color: var(--c-blue); margin-top: 1px; }
.psc-ai__privacy a { color: var(--c-blue); }
