/* ============================================================
   Hobby Sapiens Cockpit 1.5.3 — CHAT
   Visual language matched to the site's MENU / SHOP controls.
   ============================================================ */

:root {
    --hs-navy-950:#081b2d;
    --hs-navy-900:#0c2339;
    --hs-navy-800:#123653;
    --hs-gold:#d0ad58;
    --hs-gold-light:#e5ca7c;
    --hs-ivory:#f7f2e8;
    --hs-paper:#fffdf8;
    --hs-ink:#22303b;
    --hs-muted:#747a80;
    --hs-line:rgba(25,43,58,.10);
}

#hs-cockpit-chat,
#hs-cockpit-chat * { box-sizing:border-box; }

#hs-cockpit-chat {
    position:fixed;
    z-index:2147482500;
    right:18px;
    bottom:calc(18px + env(safe-area-inset-bottom));
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    color-scheme:light;
    -webkit-font-smoothing:antialiased;
    visibility:visible !important;
    opacity:1 !important;
}

#hs-cockpit-chat [hidden] { display:none !important; }

/* MENU / SHOP language: navy circle + thin gold ring + diamond + serif label. */
.hs-cockpit-chat__launcher {
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    width:66px;
    height:66px;
    padding:0;
    border:2px solid rgba(214,181,96,.92);
    border-radius:50%;
    background:
        radial-gradient(circle at 31% 24%,rgba(255,255,255,.08),transparent 29%),
        linear-gradient(155deg,#173c5b 0%,#102f4a 52%,#0b243c 100%);
    color:#f5ead2;
    box-shadow:
        0 0 0 1px rgba(11,29,46,.30),
        0 12px 27px rgba(6,20,34,.24),
        inset 0 1px 0 rgba(255,255,255,.13),
        inset 0 -12px 20px rgba(0,0,0,.09);
    cursor:pointer;
    outline:none;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.hs-cockpit-chat__launcher::before {
    content:"";
    position:absolute;
    inset:4px;
    border:1px solid rgba(220,190,112,.32);
    border-radius:50%;
    pointer-events:none;
}

.hs-cockpit-chat__launcher::after { display:none !important; }

.hs-cockpit-chat__launcher:hover,
.hs-cockpit-chat__launcher:focus-visible {
    transform:translateY(-2px);
    border-color:rgba(229,202,124,1);
    box-shadow:
        0 0 0 1px rgba(11,29,46,.30),
        0 16px 31px rgba(6,20,34,.28),
        inset 0 1px 0 rgba(255,255,255,.16),
        inset 0 -12px 20px rgba(0,0,0,.10);
}

.hs-cockpit-chat__launcher-mark {
    display:block;
    width:7px;
    height:7px;
    border:2px solid var(--hs-gold-light);
    transform:rotate(45deg);
    opacity:.94;
}

.hs-cockpit-chat__launcher-label {
    display:block;
    margin:0;
    color:#f1e3c5;
    font-family:Georgia,"Times New Roman",serif;
    font-size:12px;
    font-weight:500;
    line-height:1;
    letter-spacing:1.35px;
    text-transform:uppercase;
}

.hs-cockpit-chat__badge {
    position:absolute;
    top:-2px;
    right:-2px;
    min-width:20px;
    height:20px;
    padding:0 5px;
    border:2px solid #f6edd9;
    border-radius:999px;
    background:linear-gradient(145deg,#dfc574,#bd9844);
    color:#0d2b46;
    box-shadow:0 7px 14px rgba(8,28,46,.18);
    font-size:9px;
    font-weight:900;
    line-height:16px;
    text-align:center;
}

/* Premium concierge panel: navy crown, warm paper body, restrained gold. */
.hs-cockpit-chat__panel {
    position:absolute;
    right:0;
    bottom:80px;
    width:min(420px,calc(100vw - 28px));
    height:min(650px,calc(100vh - 130px));
    overflow:hidden;
    border:1px solid rgba(160,123,44,.22);
    border-radius:22px;
    background:
        radial-gradient(circle at 90% 8%,rgba(217,184,100,.10),transparent 23%),
        linear-gradient(180deg,#fffdf8 0%,#f7f2e8 100%);
    box-shadow:0 30px 72px rgba(10,24,38,.23);
    isolation:isolate;
}

.hs-cockpit-chat__header {
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:96px;
    padding:16px 18px 15px 20px;
    border-bottom:1px solid rgba(221,190,112,.18);
    background:
        radial-gradient(circle at 18% 15%,rgba(255,255,255,.10),transparent 20%),
        linear-gradient(155deg,#173b59 0%,#0f2d49 56%,#0b243c 100%);
}

.hs-cockpit-chat__header::after {
    content:"";
    position:absolute;
    left:20px;
    right:74px;
    bottom:0;
    height:1px;
    background:linear-gradient(90deg,rgba(225,195,121,.64),rgba(225,195,121,0));
}

.hs-cockpit-chat__identity { min-width:0; }
.hs-cockpit-chat__eyebrow,
.hs-cockpit-chat__identity strong,
.hs-cockpit-chat__availability { display:block; }

.hs-cockpit-chat__eyebrow {
    margin-bottom:5px;
    color:#d7bb72;
    font-size:9px;
    font-weight:900;
    letter-spacing:1.55px;
    text-transform:uppercase;
}

.hs-cockpit-chat__identity strong {
    color:#fff4da;
    font-family:Georgia,"Times New Roman",serif;
    font-size:24px;
    font-weight:500;
    line-height:1.15;
    letter-spacing:-.15px;
}

.hs-cockpit-chat__availability {
    margin-top:7px;
    color:rgba(246,237,215,.70);
    font-size:11px;
    line-height:1.2;
}

.hs-cockpit-chat__availability i {
    display:inline-block;
    width:7px;
    height:7px;
    margin-right:6px;
    border-radius:50%;
    background:#83ba8d;
    box-shadow:0 0 0 4px rgba(131,186,141,.10);
    vertical-align:1px;
}

.hs-cockpit-chat__close {
    flex:0 0 auto;
    width:38px;
    height:38px;
    padding:0;
    border:1px solid rgba(224,194,120,.26);
    border-radius:50%;
    background:rgba(255,255,255,.07);
    color:#f4e9d0;
    cursor:pointer;
    font-size:24px;
    line-height:1;
}

.hs-cockpit-chat__messages {
    position:absolute;
    top:96px;
    right:0;
    bottom:116px;
    left:0;
    overflow-y:auto;
    padding:18px 16px;
    scroll-behavior:smooth;
}

.hs-cockpit-chat__messages::-webkit-scrollbar { width:7px; }
.hs-cockpit-chat__messages::-webkit-scrollbar-thumb {
    border-radius:999px;
    background:rgba(152,113,36,.18);
}

.hs-cockpit-chat__empty {
    position:absolute;
    top:96px;
    right:0;
    bottom:116px;
    left:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:34px;
    color:var(--hs-muted);
    text-align:center;
    pointer-events:none;
}

.hs-cockpit-chat__empty-mark {
    display:block;
    width:18px;
    height:18px;
    margin-bottom:16px;
    border:2px solid #b88f38;
    transform:rotate(45deg);
}

.hs-cockpit-chat__empty strong {
    display:block;
    color:#163550;
    font-family:Georgia,"Times New Roman",serif;
    font-size:28px;
    font-weight:500;
    line-height:1.2;
}

.hs-cockpit-chat__empty span:not(.hs-cockpit-chat__empty-mark) {
    display:block;
    max-width:300px;
    margin-top:11px;
    color:#697078;
    font-size:14px;
    line-height:1.7;
}

.hs-cockpit-chat__message { display:flex; margin:0 0 12px; }
.hs-cockpit-chat__message span {
    max-width:87%;
    padding:12px 14px;
    border-radius:17px;
    font-size:14px;
    line-height:1.65;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

.hs-cockpit-chat__message.is-admin { justify-content:flex-start; }
.hs-cockpit-chat__message.is-admin span {
    border:1px solid rgba(163,126,47,.18);
    border-bottom-left-radius:5px;
    background:linear-gradient(145deg,#fff4d6,#f8e8ba);
    color:#59461d;
    box-shadow:0 7px 16px rgba(133,98,30,.07);
}

.hs-cockpit-chat__message.is-visitor { justify-content:flex-end; }
.hs-cockpit-chat__message.is-visitor span {
    border:1px solid rgba(27,46,61,.08);
    border-bottom-right-radius:5px;
    background:#ffffff;
    color:#22323e;
    box-shadow:0 7px 16px rgba(26,38,47,.045);
}

.hs-cockpit-chat__form {
    position:absolute;
    right:0;
    bottom:0;
    left:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) 82px;
    gap:10px;
    min-height:116px;
    padding:12px 14px 14px;
    border-top:1px solid rgba(28,46,61,.08);
    background:linear-gradient(180deg,rgba(249,246,239,.94),#f3ede1);
}

.hs-cockpit-chat__composer {
    display:block;
    min-width:0;
    padding:9px 11px 10px;
    border:1px solid rgba(25,43,58,.11);
    border-radius:14px;
    background:#fffdfa;
    box-shadow:inset 0 1px 2px rgba(22,35,45,.03),0 1px 0 rgba(255,255,255,.8);
}

.hs-cockpit-chat__composer > span {
    display:block;
    margin-bottom:4px;
    color:#987426;
    font-size:8px;
    font-weight:900;
    letter-spacing:1.2px;
}

.hs-cockpit-chat__input {
    display:block;
    width:100%;
    height:58px;
    min-height:58px;
    padding:4px 2px 0;
    resize:none;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    color:#22323e !important;
    caret-color:#11314d;
    box-shadow:none !important;
    font:inherit;
    font-size:14px;
    line-height:1.55;
    -webkit-text-fill-color:#22323e !important;
}

.hs-cockpit-chat__input::placeholder { color:#a0a4a7; }

.hs-cockpit-chat__composer:focus-within {
    border-color:rgba(170,132,50,.36);
    box-shadow:0 0 0 4px rgba(208,173,88,.10);
}

.hs-cockpit-chat__send {
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:82px;
    padding:0;
    border:1px solid rgba(212,177,89,.62);
    border-radius:14px;
    background:
        radial-gradient(circle at 30% 22%,rgba(255,255,255,.10),transparent 27%),
        linear-gradient(155deg,#173b59,#0d2944);
    color:#f3e6c9;
    box-shadow:0 9px 20px rgba(10,34,55,.15),inset 0 1px 0 rgba(255,255,255,.10);
    cursor:pointer;
    transition:transform .16s ease,box-shadow .16s ease;
}

.hs-cockpit-chat__send span {
    font-family:Georgia,"Times New Roman",serif;
    font-size:13px;
    font-weight:500;
    letter-spacing:1px;
    text-transform:uppercase;
}

.hs-cockpit-chat__send i {
    display:flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    border:1px solid rgba(225,195,121,.42);
    border-radius:50%;
    color:#dec47d;
    font-style:normal;
    font-size:16px;
    line-height:1;
}

.hs-cockpit-chat__send:hover,
.hs-cockpit-chat__send:focus-visible {
    transform:translateY(-1px);
    box-shadow:0 13px 24px rgba(10,34,55,.19),inset 0 1px 0 rgba(255,255,255,.13);
}

.hs-cockpit-chat__send:disabled { opacity:.62; cursor:default; transform:none; }

.hs-cockpit-chat__proactive {
    position:absolute;
    right:0;
    bottom:104px;
    width:min(300px,calc(100vw - 30px));
    padding:15px 40px 15px 15px;
    border:1px solid rgba(154,119,46,.18);
    border-radius:16px;
    background:linear-gradient(145deg,#fffdf8,#f6efe2);
    color:#283944;
    box-shadow:0 16px 38px rgba(28,40,50,.14);
    cursor:pointer;
}

.hs-cockpit-chat__proactive strong,
.hs-cockpit-chat__proactive span { display:block; }
.hs-cockpit-chat__proactive strong {
    color:#8f6a20;
    font-size:9px;
    font-weight:900;
    letter-spacing:1px;
    text-transform:uppercase;
}
.hs-cockpit-chat__proactive span {
    margin-top:5px;
    color:#34434f;
    font-size:13px;
    line-height:1.55;
}
.hs-cockpit-chat__proactive-close {
    position:absolute;
    top:9px;
    right:9px;
    width:25px;
    height:25px;
    padding:0;
    border:0;
    background:transparent;
    color:#7d8388;
    cursor:pointer;
    font-size:17px;
}

html.hs-live-chat-open,
body.hs-live-chat-open { overflow:hidden; }

@media (max-width:600px) {
    #hs-cockpit-chat {
        right:14px;
        bottom:calc(14px + env(safe-area-inset-bottom));
    }

    .hs-cockpit-chat__launcher {
        width:60px;
        height:60px;
        gap:4px;
    }

    .hs-cockpit-chat__launcher-label {
        font-size:11px;
        letter-spacing:1.25px;
    }

    .hs-cockpit-chat__launcher-mark {
        width:7px;
        height:7px;
    }

    .hs-cockpit-chat__panel {
        position:fixed;
        inset:0;
        width:100vw;
        height:100dvh;
        max-width:none;
        max-height:none;
        border:0;
        border-radius:0;
        box-shadow:none;
    }

    .hs-cockpit-chat__header {
        min-height:calc(92px + env(safe-area-inset-top));
        padding:calc(14px + env(safe-area-inset-top)) 15px 14px 17px;
    }

    .hs-cockpit-chat__identity strong { font-size:24px; }

    .hs-cockpit-chat__messages,
    .hs-cockpit-chat__empty {
        top:calc(92px + env(safe-area-inset-top));
        bottom:calc(124px + env(safe-area-inset-bottom));
        padding:18px 14px;
    }

    .hs-cockpit-chat__message span,
    .hs-cockpit-chat__empty span:not(.hs-cockpit-chat__empty-mark),
    .hs-cockpit-chat__input { font-size:15px; }

    .hs-cockpit-chat__form {
        grid-template-columns:minmax(0,1fr) 76px;
        min-height:calc(124px + env(safe-area-inset-bottom));
        padding:11px 12px calc(12px + env(safe-area-inset-bottom));
    }

    .hs-cockpit-chat__input { height:62px; min-height:62px; }
    .hs-cockpit-chat__send { min-width:76px; }
}


/* V1.5.4 — frontend/admin visibility hardening */
@media (min-width:601px) {
    #hs-cockpit-chat {
        display:block !important;
        visibility:visible !important;
        opacity:1 !important;
        pointer-events:auto !important;
        right:18px !important;
        bottom:18px !important;
    }

    #hs-cockpit-chat .hs-cockpit-chat__launcher {
        display:flex !important;
        visibility:visible !important;
        opacity:1 !important;
        pointer-events:auto !important;
        width:66px !important;
        height:66px !important;
    }
}

@media (max-width:600px) {
    #hs-cockpit-chat .hs-cockpit-chat__launcher {
        width:60px !important;
        height:60px !important;
    }
}


/* ============================================================
   V1.6.0 — PHOTO / SHORT VIDEO
   ============================================================ */

.hs-cockpit-chat__form {
	display:block !important;
	height:auto !important;
	min-height:108px !important;
	padding:10px 12px 12px !important;
}

.hs-cockpit-chat__composer-row {
	display:grid;
	grid-template-columns:42px minmax(0,1fr) 82px;
	gap:8px;
	align-items:stretch;
}

.hs-cockpit-chat__attach {
	align-self:stretch;
	min-height:70px;
	padding:0;
	border:1px solid rgba(198,157,66,.32);
	border-radius:14px;
	background:
		radial-gradient(circle at 35% 28%,rgba(255,255,255,.12),transparent 28%),
		linear-gradient(155deg,#173b59,#0d2944);
	color:#e6ca7f;
	box-shadow:0 8px 18px rgba(10,34,56,.10);
	font-family:Georgia,serif;
	font-size:29px;
	font-weight:300;
	line-height:1;
	cursor:pointer;
}

.hs-cockpit-chat__attach:hover {
	border-color:rgba(220,185,97,.55);
	transform:translateY(-1px);
}

.hs-cockpit-chat__media-note {
	display:block;
	margin:7px 2px 0 50px;
	color:#8a8f93;
	font-size:10px;
	line-height:1.3;
}

.hs-cockpit-chat__media-preview {
	margin:0 0 9px 50px;
}

.hs-cockpit-chat__media-preview > div {
	position:relative;
	display:flex;
	align-items:center;
	gap:9px;
	min-height:58px;
	padding:7px 40px 7px 7px;
	border:1px solid rgba(153,119,46,.16);
	border-radius:13px;
	background:#fffaf0;
	color:#5f6670;
	font-size:11px;
}

.hs-cockpit-chat__media-preview img,
.hs-cockpit-chat__media-preview video {
	width:58px;
	height:44px;
	object-fit:cover;
	border-radius:8px;
	background:#e9e5da;
}

.hs-cockpit-chat__media-preview button {
	position:absolute;
	top:7px;
	right:7px;
	width:26px;
	height:26px;
	padding:0;
	border:1px solid rgba(30,45,57,.10);
	border-radius:50%;
	background:#fff;
	color:#59636c;
	font-size:18px;
	line-height:1;
	cursor:pointer;
}

.hs-cockpit-chat__message-body {
	display:flex;
	flex-direction:column;
	max-width:86%;
	gap:7px;
}

.hs-cockpit-chat__message.is-visitor .hs-cockpit-chat__message-body {
	align-items:flex-end;
}

.hs-cockpit-chat__message.is-admin .hs-cockpit-chat__message-body {
	align-items:flex-start;
}

.hs-cockpit-chat__message-text {
	display:block;
	max-width:100% !important;
}

.hs-cockpit-chat__media {
	display:block;
	overflow:hidden;
	width:min(250px,70vw);
	border:1px solid rgba(30,45,57,.10);
	border-radius:15px;
	background:#efeae0;
	box-shadow:0 8px 20px rgba(20,28,36,.07);
}

.hs-cockpit-chat__media img,
.hs-cockpit-chat__media video {
	display:block;
	width:100%;
	max-height:300px;
	object-fit:cover;
	background:#e9e4da;
}

@media (max-width:600px) {
	.hs-cockpit-chat__composer-row {
		grid-template-columns:40px minmax(0,1fr) 72px;
		gap:7px;
	}

	.hs-cockpit-chat__attach {
		min-height:72px;
		font-size:27px;
	}

	.hs-cockpit-chat__media-note,
	.hs-cockpit-chat__media-preview {
		margin-left:47px;
	}

	.hs-cockpit-chat__media {
		width:min(260px,76vw);
	}
}


/* ============================================================
   V1.6.1 — EXPLICIT PHOTO / VIDEO + OUTSIDE CLOSE
   ============================================================ */

.hs-cockpit-chat__backdrop {
	position:fixed;
	z-index:-2;
	inset:0;
	background:rgba(10,21,32,.14);
	backdrop-filter:blur(2px);
	-webkit-backdrop-filter:blur(2px);
}

.hs-cockpit-chat__composer-row {
	grid-template-columns:82px minmax(0,1fr) 82px !important;
	gap:9px !important;
}

.hs-cockpit-chat__media-tools {
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:6px;
	align-self:stretch;
}

.hs-cockpit-chat__media-button {
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:5px;
	min-height:70px;
	padding:7px 3px;
	background:
		radial-gradient(circle at 32% 24%,rgba(255,255,255,.11),transparent 26%),
		linear-gradient(155deg,#173b59,#0f2a45);
	color:#e8ce85;
	border:1px solid rgba(194,155,67,.32);
	border-radius:13px;
	box-shadow:0 7px 16px rgba(10,34,56,.09);
	cursor:pointer;
	transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.hs-cockpit-chat__media-button:hover,
.hs-cockpit-chat__media-button:focus-visible {
	transform:translateY(-1px);
	border-color:rgba(222,187,98,.55);
	box-shadow:0 10px 20px rgba(10,34,56,.12);
	outline:none;
}

.hs-cockpit-chat__media-button svg {
	width:21px;
	height:21px;
	fill:none;
	stroke:currentColor;
	stroke-width:1.65;
	stroke-linecap:round;
	stroke-linejoin:round;
}

.hs-cockpit-chat__media-button span {
	color:#f2e7cb;
	font-size:8px;
	font-weight:900;
	letter-spacing:.55px;
	line-height:1;
	text-transform:uppercase;
}

.hs-cockpit-chat__media-button:disabled {
	opacity:.5;
	cursor:default;
	transform:none;
}

.hs-cockpit-chat__media-note,
.hs-cockpit-chat__media-preview {
	margin-left:91px !important;
}

@media (max-width:600px) {
	.hs-cockpit-chat__composer-row {
		grid-template-columns:74px minmax(0,1fr) 72px !important;
		gap:7px !important;
	}

	.hs-cockpit-chat__media-tools {
		gap:5px;
	}

	.hs-cockpit-chat__media-button {
		min-height:72px;
		border-radius:12px;
	}

	.hs-cockpit-chat__media-button svg {
		width:19px;
		height:19px;
	}

	.hs-cockpit-chat__media-button span {
		font-size:7px;
		letter-spacing:.35px;
	}

	.hs-cockpit-chat__media-note,
	.hs-cockpit-chat__media-preview {
		margin-left:81px !important;
	}
}


/* ============================================================
   V1.6.2 — MODERN CHAT COMPOSER TOOLBAR
   Facebook/Messenger-style: input above, media left, send right.
   ============================================================ */

.hs-cockpit-chat__form {
	padding:10px 12px 12px !important;
}

.hs-cockpit-chat__composer {
	display:block;
	width:100%;
}

.hs-cockpit-chat__composer-row {
	display:block !important;
}

.hs-cockpit-chat__composer-toolbar {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	margin-top:8px;
}

.hs-cockpit-chat__media-tools {
	display:flex !important;
	align-items:center;
	gap:7px !important;
}

.hs-cockpit-chat__media-button {
	display:inline-flex !important;
	flex-direction:row !important;
	align-items:center;
	justify-content:center;
	width:38px;
	height:38px;
	min-height:0 !important;
	padding:0 !important;
	background:#f6f1e6 !important;
	color:#173b59 !important;
	border:1px solid rgba(23,59,89,.12) !important;
	border-radius:50% !important;
	box-shadow:none !important;
}

.hs-cockpit-chat__media-button:hover,
.hs-cockpit-chat__media-button:focus-visible {
	transform:none !important;
	background:#fff9eb !important;
	color:#9a772e !important;
	border-color:rgba(154,119,46,.28) !important;
	box-shadow:0 4px 12px rgba(32,40,49,.06) !important;
}

.hs-cockpit-chat__media-button svg {
	width:19px !important;
	height:19px !important;
	stroke-width:1.7 !important;
}

.hs-cockpit-chat__media-button span {
	display:none !important;
}

.hs-cockpit-chat__send {
	min-width:86px !important;
	height:38px !important;
	align-self:auto !important;
	padding:0 15px !important;
	border-radius:999px !important;
}

.hs-cockpit-chat__input {
	min-height:68px !important;
	height:68px !important;
}

.hs-cockpit-chat__media-preview {
	margin:0 0 8px 0 !important;
}

.hs-cockpit-chat__media-note {
	display:none !important;
}

@media (max-width:600px) {
	.hs-cockpit-chat__media-button {
		width:40px;
		height:40px;
	}

	.hs-cockpit-chat__media-button svg {
		width:20px !important;
		height:20px !important;
	}

	.hs-cockpit-chat__send {
		height:40px !important;
		min-width:78px !important;
	}

	.hs-cockpit-chat__input {
		min-height:70px !important;
		height:70px !important;
	}
}
