/* WhatsApp sağda kalır; AI danışman onun hemen solundadır. */
#gp-whatsapp-chat .gp-chat-greeting { display: none !important; }

#pg-ai-root { --pg-ai-brown: #402719; --pg-ai-gold: #cba15d; position: fixed; z-index: 9999999; right: 170px; bottom: 20px; font-family: Georgia, "Times New Roman", serif; color: #30251e; }
#pg-ai-root * { box-sizing: border-box; }
#pg-ai-root [hidden] { display: none !important; }
#pg-ai-root button, #pg-ai-root input { font: inherit; }
#pg-ai-root button { cursor: pointer; }

#pg-ai-root .pg-ai-peek { position: absolute; bottom: 67px; right: 0; width: 232px; padding: 11px 34px 11px 14px; border: 1px solid #e6d7be; border-radius: 12px; background: #fffefb; box-shadow: 0 7px 25px rgba(31,20,10,.15); }
#pg-ai-root .pg-ai-peek strong { display: block; font-size: 13px; line-height: 1.35; letter-spacing: .1px; }
#pg-ai-root #pg-ai-peek-close { position: absolute; right: 7px; top: 4px; border: 0; color: #66594c; background: transparent; font-size: 23px; line-height: 1; padding: 2px 4px; }

#pg-ai-root #pg-ai-launch { display: flex; align-items: center; gap: 9px; padding: 11px 17px 11px 12px; min-height: 49px; margin-left: auto; border: 1px solid #a57c3b; border-radius: 26px; background: linear-gradient(125deg,#352219,#563a24); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 8px 21px rgba(45,24,9,.26); }
#pg-ai-root #pg-ai-launch:hover { background: linear-gradient(125deg,#51311e,#725029); }
#pg-ai-root .pg-ai-launch-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #e9c984; color: #332015; font-size: 17px; }
#pg-ai-root button:focus-visible, #pg-ai-root a:focus-visible, #pg-ai-root input:focus-visible { outline: 3px solid #bb8e43; outline-offset: 2px; }

#pg-ai-root #pg-ai-panel { display: flex; flex-direction: column; position: absolute; right: 0; bottom: 66px; width: min(365px,calc(100vw - 24px)); height: min(555px,calc(100dvh - 115px)); min-height: 300px; overflow: hidden; border: 1px solid #dfceb3; border-radius: 17px; background: #fffdf9; box-shadow: 0 13px 46px rgba(29,14,6,.24); }
#pg-ai-root .pg-ai-head { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; background: #342219; padding: 14px 14px; color: #fff9eb; }
#pg-ai-root .pg-ai-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #e0b96f; border-radius: 50%; background: #795122; color: #fff4d4; font-size: 14px; font-weight: bold; }
#pg-ai-root .pg-ai-heading { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
#pg-ai-root .pg-ai-heading strong { font-size: 16px; line-height: 1.1; }
#pg-ai-root .pg-ai-heading small { color: #dcccac; font-size: 11px; font-family: Arial, sans-serif; }
#pg-ai-root #pg-ai-close { border: 0; background: transparent; color: #fff; font-size: 25px; line-height: 1; padding: 2px 4px; }

#pg-ai-root .pg-ai-messages { flex: 1; overflow-y: auto; min-height: 0; padding: 17px 13px; background: #fdfaf4; scrollbar-width: thin; }
#pg-ai-root .pg-ai-message { max-width: 92%; width: fit-content; margin: 0 0 12px; padding: 11px 13px; border-radius: 13px; line-height: 1.48; font-family: Arial, sans-serif; font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
#pg-ai-root .pg-ai-bot { margin-right: auto; background: #fff; border: 1px solid #e8ddce; color: #433c35; border-bottom-left-radius: 4px; }
#pg-ai-root .pg-ai-user { margin-left: auto; background: #55371f; color: #fff; border-bottom-right-radius: 4px; }
#pg-ai-root .pg-ai-error { color: #9b342a; background: #fff2ed; border-color: #eac4b5; }
#pg-ai-root .pg-ai-products { display: grid; gap: 6px; margin: 0 0 13px; }
#pg-ai-root .pg-ai-product { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; background: #fff; border: 1px solid #e9d7ba; border-radius: 9px; color: #4b2c13; text-decoration: none; font-size: 12px; }
#pg-ai-root .pg-ai-product strong { line-height: 1.35; }
#pg-ai-root .pg-ai-product small { color: #8a5c25; font-size: 12px; }
#pg-ai-root .pg-ai-product:hover { border-color: #b88841; background: #fff8eb; }

#pg-ai-root .pg-ai-starters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 11px 8px; background: #fdfaf4; }
#pg-ai-root .pg-ai-starters button { padding: 7px 10px; background: #fff; border: 1px solid #dfc9a7; border-radius: 20px; color: #5e4228; font-size: 11px; font-family: Arial, sans-serif; }
#pg-ai-root .pg-ai-starters button:hover { background: #f7e8d0; }
#pg-ai-root .pg-ai-form { display: flex; gap: 7px; padding: 11px; background: #fff; border-top: 1px solid #eee3d4; }
#pg-ai-root .pg-ai-form input { flex: 1; min-width: 0; min-height: 40px; border: 1px solid #dac8ad; border-radius: 9px; padding: 9px 10px; background: #fff; color: #342923; font-size: 13px; font-family: Arial, sans-serif; }
#pg-ai-root .pg-ai-form button { flex: 0 0 40px; border: 0; border-radius: 9px; background: #4b2d1d; color: #fff; font-size: 17px; }
#pg-ai-root .pg-ai-form button:disabled { background: #aaa; cursor: wait; }
#pg-ai-root .pg-ai-footer { display: flex; align-items: center; gap: 8px; padding: 0 11px 11px; background: #fff; color: #8b847b; font-size: 9px; line-height: 1.3; font-family: Arial, sans-serif; }
#pg-ai-root .pg-ai-footer span { flex: 1; }
#pg-ai-root .pg-ai-footer a { color: #327e4f; text-decoration: none; font-size: 11px; font-weight: 700; white-space: nowrap; }

@media (max-width: 760px) {
  #pg-ai-root { right: 80px; bottom: 12px; }
  #pg-ai-root .pg-ai-peek { width: 205px; padding: 9px 29px 9px 11px; }
  #pg-ai-root .pg-ai-peek strong { font-size: 12px; }
  #pg-ai-root #pg-ai-panel { right: -68px; bottom: 62px; width: calc(100vw - 24px); max-height: calc(100dvh - 90px); }
  #pg-ai-root #pg-ai-launch { font-size: 12px; padding: 9px 13px 9px 9px; min-height: 46px; }
}
