/* Delegria asszisztens – chat-widget (Delegria design-szabályok: kapszula gombok, × bezárás, „i” infó, halvány hátterek). */
.dlgb-fab{appearance:none;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 16px 0 13px;border:0;border-radius:999px;color:#fff;font:700 14px/1 inherit;font-family:inherit;cursor:pointer;
	background:linear-gradient(95deg,#7957E8 0%,#E84A91 52%,#FF8A5B 100%) border-box no-repeat;background-size:100% 100%;box-shadow:0 6px 18px rgba(121,87,232,.32);transition:transform .15s ease,box-shadow .15s ease;}
.dlgb-fab:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(121,87,232,.4);}
.dlgb-fab:focus-visible{outline:2px solid #7957E8;outline-offset:3px;}
.dlgb-fab-row{position:fixed;right:max(16px,calc((100vw - 1440px) / 2 + 20px));bottom:16px;z-index:2147482000;display:flex;}
.dlgb-fab-row.is-admin{bottom:20px;right:20px;z-index:99990;}

.dlgb-panel{position:fixed;right:max(16px,calc((100vw - 1440px) / 2 + 20px));bottom:68px;z-index:2147482001;width:min(400px,calc(100vw - 32px));height:min(600px,calc(100vh - 96px));
	display:none;flex-direction:column;background:#fff;border:1px solid #E8EAED;border-radius:20px;box-shadow:0 24px 60px -18px rgba(23,24,26,.35);
	font-family:inherit;font-size:14.5px;line-height:1.5;color:#17181A;overflow:hidden;}
.dlgb-panel.is-open{display:flex;}
.dlgb-panel ::selection{background:#DCEFD2;color:#1C6B1C;}
.dlgb-panel *{box-sizing:border-box;}
.dlgb-head{display:flex;align-items:center;gap:8px;padding:14px 12px 12px 18px;border-bottom:1px solid #EEF0F2;background:linear-gradient(95deg,rgba(121,87,232,.07),rgba(232,74,145,.05) 60%,rgba(255,138,91,.05));}
.dlgb-title{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:2px;}
.dlgb-title strong{font-size:15.5px;font-weight:800;letter-spacing:-.01em;}
.dlgb-sub{flex-basis:100%;font-size:12.5px;color:#5F6368;}
.dlgb-new{appearance:none;border:1px solid #D9CFF7;background:#F4F0FE;color:#5B3FC4;border-radius:999px;padding:6px 12px;font:600 12.5px/1 inherit;font-family:inherit;cursor:pointer;white-space:nowrap;}
.dlgb-new:hover{background:#ECE5FD;}
.dlgb-x{appearance:none;border:0;background:transparent;color:#5F6368;width:34px;height:34px;border-radius:999px;font-size:24px;line-height:1;cursor:pointer;}
.dlgb-x:hover{background:#F1F3F4;color:#17181A;}

.dlgb-i{position:relative;display:inline-grid;place-items:center;width:16px;height:16px;margin-left:3px;vertical-align:super;border-radius:50%;background:#E3E5E9;color:#5F6368;
	font:italic 700 11px/1 Georgia,serif;text-transform:none;cursor:help;}
.dlgb-i:focus-visible{outline:2px solid #7957E8;outline-offset:2px;}
.dlgb-tip{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);width:max-content;max-width:280px;padding:9px 12px;border-radius:10px;background:#17181A;color:#fff;
	font:500 12.5px/1.5 inherit;font-family:inherit;font-style:normal;text-align:left;white-space:normal;visibility:hidden;opacity:0;transition:opacity .12s ease;z-index:5;}
.dlgb-i:hover .dlgb-tip,.dlgb-i:focus .dlgb-tip{visibility:visible;opacity:1;}

.dlgb-list{flex:1;overflow-y:auto;padding:16px 16px 8px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;scrollbar-color:#DADCE0 transparent;}
.dlgb-list::-webkit-scrollbar{width:6px;}
.dlgb-list::-webkit-scrollbar-thumb{background:#DADCE0;border-radius:6px;}
.dlgb-msg{max-width:88%;padding:10px 13px;border-radius:16px;word-wrap:break-word;overflow-wrap:anywhere;}
.dlgb-msg p{margin:0 0 6px;}
.dlgb-msg p:last-child{margin-bottom:0;}
.dlgb-msg ul{margin:4px 0 6px;padding-left:18px;}
.dlgb-msg li{margin:2px 0;}
.dlgb-msg a{color:#5B3FC4;text-decoration:underline;}
.dlgb-msg.is-bot{align-self:flex-start;background:#F6F4FD;border-bottom-left-radius:6px;}
.dlgb-msg.is-user{align-self:flex-end;background:#F1F3F4;border-bottom-right-radius:6px;}
.dlgb-msg.is-note{background:#FFF7F0;}
.dlgb-src{margin-top:8px;padding-top:6px;border-top:1px solid #E6E1F8;font-size:12.5px;color:#5F6368;}
.dlgb-rate{display:flex;align-items:center;gap:4px;margin-top:6px;font-size:12px;color:#5F6368;}
.dlgb-rate button{appearance:none;border:1px solid #E3E5E9;background:#fff;border-radius:999px;padding:2px 8px;font-size:13px;cursor:pointer;}
.dlgb-rate button:hover{background:#F4F0FE;border-color:#D9CFF7;}
.dlgb-cta{appearance:none;display:inline-block;margin-top:8px;border:1px solid #D9CFF7;background:#F4F0FE;color:#5B3FC4;border-radius:999px;padding:6px 14px;font:600 13px/1.2 inherit;font-family:inherit;cursor:pointer;}
.dlgb-dots{display:inline-flex;gap:4px;padding:2px 0;}
.dlgb-dots i{width:6px;height:6px;border-radius:50%;background:#A99BE6;animation:dlgbDot 1s infinite ease-in-out;}
.dlgb-dots i:nth-child(2){animation-delay:.15s;}
.dlgb-dots i:nth-child(3){animation-delay:.3s;}
@keyframes dlgbDot{0%,80%,100%{opacity:.3;transform:translateY(0);}40%{opacity:1;transform:translateY(-3px);}}

.dlgb-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px 6px;border-top:1px solid #EEF0F2;}
.dlgb-form textarea{flex:1;min-height:40px;max-height:120px;resize:none;padding:10px 14px;border:1px solid #DADCE0;border-radius:20px;font:inherit;font-size:14.5px;line-height:1.35;color:#17181A;background:#fff;}
.dlgb-form textarea:focus{outline:0;border-color:#7957E8;box-shadow:0 0 0 3px rgba(121,87,232,.15);}
.dlgb-send{appearance:none;flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:999px;color:#fff;cursor:pointer;
	background:linear-gradient(95deg,#7957E8 0%,#E84A91 52%,#FF8A5B 100%) border-box no-repeat;background-size:100% 100%;}
.dlgb-send:disabled{opacity:.5;cursor:default;}
.dlgb-hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden;}
.dlgb-foot{display:flex;justify-content:space-between;padding:2px 18px 10px;}
.dlgb-link{appearance:none;border:0;background:none;padding:2px 0;color:#5F6368;font:500 12.5px/1.4 inherit;font-family:inherit;text-decoration:underline;cursor:pointer;}
.dlgb-link:hover{color:#5B3FC4;}

.dlgb-contact{padding:12px 16px;border-top:1px solid #EEF0F2;background:#FBFAFF;max-height:60%;overflow-y:auto;scrollbar-width:thin;}
.dlgb-contact label{display:block;margin:0 0 8px;font-size:12.5px;font-weight:600;color:#3C4043;}
.dlgb-contact input,.dlgb-contact textarea{display:block;width:100%;margin-top:3px;padding:8px 12px;border:1px solid #DADCE0;border-radius:12px;font:inherit;font-size:14px;font-weight:400;background:#fff;}
.dlgb-contact input:focus,.dlgb-contact textarea:focus{outline:0;border-color:#7957E8;}
.dlgb-ct-t{margin:0 0 10px;font-weight:700;font-size:14px;}
.dlgb-req{color:#E84A91;}
.dlgb-ct-leg{margin:0 0 8px;font-size:12px;color:#5F6368;}
.dlgb-ct-leg span{color:#E84A91;}
.dlgb-chk{display:flex !important;gap:8px;align-items:flex-start;font-weight:500 !important;}
.dlgb-chk input{width:auto !important;margin:2px 0 0 !important;display:inline-block !important;}
.dlgb-foot .dlgb-link+.dlgb-link{margin-left:auto;margin-right:14px;}
.dlgb-ct-btns{display:flex;justify-content:flex-end;gap:8px;}
.dlgb-btn{appearance:none;border:0;border-radius:999px;padding:9px 18px;font:700 13.5px/1 inherit;font-family:inherit;color:#fff;cursor:pointer;
	background:linear-gradient(95deg,#7957E8 0%,#E84A91 52%,#FF8A5B 100%) border-box no-repeat;background-size:100% 100%;}
.dlgb-btn.is-soft{background:#F4F0FE;color:#5B3FC4;border:1px solid #D9CFF7;}
.dlgb-btn:disabled{opacity:.6;cursor:default;}
.dlgb-ct-msg{margin:8px 0 0;font-size:13px;color:#3C4043;}
.dlgb-ct-msg:empty{display:none;}
.dlgb-panel .screen-reader-text{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}

/* Mobil (390 px): a gomb csak ikon, a panel teljes képernyő */
@media (max-width:560px){
	.dlgb-fab{width:36px;height:36px;padding:0;justify-content:center;}
	.dlgb-fab-t{display:none;}
	.dlgb-fab-row{right:12px;bottom:12px;}
	.dlgb-panel{left:0;right:0;top:0;bottom:0;width:100%;height:100%;height:100dvh;border-radius:0;border:0;}
	.dlgb-form{padding-bottom:calc(6px + env(safe-area-inset-bottom));}
	.dlgb-form textarea{font-size:16px;} /* iOS: ne nagyítson fókuszkor */
	html.dlgb-lock,html.dlgb-lock body{overflow:hidden;}
}
