/* 1.1.79 — Wiadomości w panelu AutaElektryczne.pl */
.ae-messaging{padding:4px 0 30px;color:#1c3655}
.ae-messaging-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:24px}
.ae-messaging-heading h1{margin:8px 0;font-size:clamp(25px,2.1vw,33px);letter-spacing:-.035em;line-height:1.12}
.ae-messaging-heading p{margin:0;font-size:13px;color:#7286a0}
.ae-messaging-unread{font-size:11px;font-weight:700;color:#286cca}
.ae-messaging-layout{display:grid;grid-template-columns:minmax(230px,34%) minmax(0,1fr);min-height:560px;background:#fff;border:1px solid #dce5ef;border-radius:8px;overflow:hidden}
.ae-messaging-threads{border-right:1px solid #e3ebf4;background:#fbfcfe;min-width:0}
.ae-messaging-threads-title{display:flex;justify-content:space-between;gap:8px;padding:17px 18px;border-bottom:1px solid #e6edf4;color:#1b3555;font-weight:750;font-size:13px}
.ae-messaging-threads-title span{font-weight:500;color:#8ba0b7}
.ae-messaging-thread{display:flex;align-items:flex-start;gap:12px;position:relative;text-decoration:none;padding:16px 14px;border-bottom:1px solid #edf1f7;color:inherit;min-width:0}
.ae-messaging-thread:hover,.ae-messaging-thread.is-active{background:#f0f5fc}
.ae-messaging-thread.is-active{border-left:3px solid #2c81e9;padding-left:11px}
.ae-messaging-thread-avatar{flex:none;display:grid;place-items:center;width:39px;height:39px;background:#e9edf3;border-radius:50%;color:#7e8a9b;font-size:17px;font-weight:700}
.ae-messaging-thread-body{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.ae-messaging-thread-top{display:flex;align-items:baseline;gap:8px;justify-content:space-between}
.ae-messaging-thread-top strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ae-messaging-thread-top small{font-size:10px;color:#8da0b7;white-space:nowrap}
.ae-messaging-thread-title{font-size:11px;color:#4a6584;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:650}
.ae-messaging-thread-preview{font-size:11px;color:#899bb0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ae-messaging-count{background:#2786ec;color:#fff;border-radius:20px;padding:2px 6px;font-size:10px;font-weight:700;align-self:center}
.ae-messaging-chat{min-width:0;display:flex;flex-direction:column;background:#fff}
.ae-messaging-chat-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 21px;border-bottom:1px solid #e6edf4}
.ae-messaging-chat-head h2{font-size:16px;color:#1b3658;margin:5px 0;line-height:1.3}
.ae-messaging-chat-head div>span:last-child{font-size:11px;color:#7f91a8}
.ae-messaging-chat-head a{font-size:11px;color:#257bda;text-decoration:none;white-space:nowrap}
.ae-messaging-chat-eyebrow{font-size:10px!important;letter-spacing:.14em!important;color:#7592b2!important;font-weight:700}
.ae-messaging-history{display:flex;flex-direction:column;gap:13px;flex:1;padding:24px 22px;background:#fbfcff;min-height:270px;max-height:520px;overflow-y:auto}
.ae-messaging-bubble{align-self:flex-start;max-width:min(84%,550px);border:1px solid #e4eaf2;background:white;border-radius:12px 12px 12px 3px;padding:12px 15px;overflow-wrap:anywhere}
.ae-messaging-bubble.is-mine{align-self:flex-end;background:#e8f1ff;border-color:#d4e6ff;border-radius:12px 12px 3px 12px}
.ae-messaging-bubble-body{font-size:13px;line-height:1.65;color:#1d385a;white-space:normal}
.ae-messaging-bubble time{display:block;margin-top:6px;font-size:10px;color:#8093aa;text-align:right}
.ae-messaging-compose{display:flex;flex-direction:column;padding:17px 21px;border-top:1px solid #e3ebf4;background:#fff;gap:8px}
.ae-messaging-compose label{font-size:11px;font-weight:680;color:#4d6582}
.ae-messaging-compose textarea{min-height:84px;max-height:230px;resize:vertical;width:100%;padding:12px 14px;border:1px solid #d8e3f0;border-radius:5px;outline:0;background:#fff;color:#183253;font:inherit;font-size:13px;line-height:1.5}
.ae-messaging-compose textarea:focus{border-color:#3188ed;box-shadow:0 0 0 2px rgba(49,136,237,.09)}
.ae-messaging-compose-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ae-messaging-compose-foot span{font-size:10px;color:#8ea1b5}
.ae-messaging-compose-foot button{border:0;border-radius:5px;padding:12px 18px;min-width:170px;color:#fff;background:linear-gradient(115deg,#178af4,#625fcf,#be37b3);font-size:12px;font-weight:750;cursor:pointer}
.ae-messaging-compose-foot button:hover{filter:brightness(.97)}
.ae-messaging-empty{display:flex;flex:1;min-height:260px;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:32px;color:#647f9b;font-size:13px}
.ae-messaging-empty h2{margin:2px 0;font-size:19px;color:#213b5e}
.ae-messaging-empty p{margin:0}
.ae-messaging-empty a{color:#257ede;font-weight:700;text-decoration:none;margin-top:9px}
.ae-messaging-empty-icon{color:#849eb9}
.ae-messaging-empty-small{padding:20px 16px;font-size:12px;color:#8398ae;line-height:1.7}
.ae-messaging-start{margin:auto;max-width:330px;text-align:center;font-size:13px;color:#8497ad;line-height:1.65}
.ae-messaging-notice{padding:12px 15px;border:1px solid #d7e8fb;border-radius:5px;background:#eef6ff;color:#235686;margin-bottom:18px;font-size:12px}
.ae-messaging-notice.is-error{border-color:#ffd9d8;background:#fff6f5;color:#a53f40}
.ae-dp-phone-action{display:flex!important;align-items:center;justify-content:center;gap:9px}
.ae-dp-phone-login{display:flex!important;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.ae-dp-phone-login small{flex-basis:100%;font-size:10px;line-height:1.25}
.ae-dp-phone-action svg,.ae-dp-phone-login svg{width:16px;height:16px;flex:none}
@media(max-width:950px){.ae-messaging-layout{grid-template-columns:minmax(195px,37%) minmax(0,1fr)}.ae-messaging-chat-head{flex-wrap:wrap}}
@media(max-width:700px){.ae-messaging-layout{grid-template-columns:minmax(0,1fr);display:flex;flex-direction:column}.ae-messaging-threads{border-right:0;border-bottom:1px solid #e3ebf4;max-height:280px;overflow-y:auto}.ae-messaging-chat-head{padding:15px}.ae-messaging-history{max-height:450px;min-height:250px;padding:15px}.ae-messaging-compose{padding:15px}.ae-messaging-compose-foot{flex-wrap:wrap}.ae-messaging-heading{align-items:flex-start;flex-direction:column}}

/* 1.1.83 — przywraca kontrast tekstów oraz subtelny panel na tle zdjęcia. */
body.ae-cp-page .ae-messaging-heading{padding:20px 23px;margin:0 0 17px;background:rgba(248,251,255,.96);border:1px solid #dce7f2;border-radius:5px;color:#193455}
body.ae-cp-page .ae-messaging-heading .ae-cp-kicker{color:#5480ad!important}
body.ae-cp-page .ae-messaging-heading h1{color:#152f50!important;text-shadow:none!important}
body.ae-cp-page .ae-messaging-heading p{color:#647e9b!important;text-shadow:none!important}
body.ae-cp-page .ae-messaging-layout{border:1px solid #dae5f1;background:#f7f9fc}
body.ae-cp-page .ae-messaging-chat{background:#f9fbfe}
body.ae-cp-page .ae-messaging-history{background:#f2f6fb}
body.ae-cp-page .ae-messaging-bubble{color:#1d3655;background:#fff;border-color:#d9e4f0;box-shadow:none}
body.ae-cp-page .ae-messaging-bubble.is-mine{background:#e4eefc;border-color:#cbdffa}
body.ae-cp-page .ae-messaging-bubble-body{color:#1a3456!important;font-size:13px!important;line-height:1.6!important;text-shadow:none!important}
body.ae-cp-page .ae-messaging-bubble time{color:#6983a1!important}
body.ae-cp-page .ae-messaging-thread-preview{color:#637e9b!important}
body.ae-cp-page .ae-messaging-chat-head{background:#fff}
body.ae-cp-page .ae-messaging-chat-head h2{color:#183557!important}
body.ae-cp-page .ae-messaging-threads-title{color:#1a3555!important}
@media(max-width:700px){body.ae-cp-page .ae-messaging-heading{padding:15px 17px}}

/* 1.1.84: strict containment of system logo, independent of global img rules. */
body.ae-cp-page .ae-messaging-layout{min-width:0;max-width:100%;overflow:hidden}
body.ae-cp-page .ae-messaging-threads,body.ae-cp-page .ae-messaging-chat{min-width:0;max-width:100%}
body.ae-cp-page .ae-messaging-system-avatar{display:flex!important;flex:0 0 42px!important;width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;min-width:42px!important;min-height:42px!important;overflow:hidden!important;align-items:center;justify-content:center}
body.ae-cp-page .ae-messaging-system-avatar img{display:block!important;width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important;min-width:0!important;min-height:0!important;object-fit:contain!important;position:static!important;transform:none!important}
body.ae-cp-page .ae-messaging-system-head{min-width:0;overflow:hidden;gap:12px}
body.ae-cp-page .ae-messaging-system-head > div{min-width:0;flex:1}
body.ae-cp-page .ae-messaging-system-head > img{display:block!important;flex:0 0 96px!important;width:96px!important;height:35px!important;max-width:96px!important;max-height:35px!important;min-width:0!important;min-height:0!important;object-fit:contain!important;position:static!important;transform:none!important;padding:5px!important}
body.ae-cp-page .ae-messaging-thread-body{min-width:0;overflow:hidden}
body.ae-cp-page .ae-messaging-system-thread .ae-messaging-thread-title,body.ae-cp-page .ae-messaging-system-thread .ae-messaging-thread-preview{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){body.ae-cp-page .ae-messaging-system-head > img{width:70px!important;max-width:70px!important;flex-basis:70px!important}}

/* 1.1.86 — compact system sender icon; consistent brand gradient background */
body.ae-cp-page .ae-messaging-system-avatar{display:flex!important;align-items:center!important;justify-content:center!important;border-radius:9px!important;background:linear-gradient(135deg,#198cf2 0%,#755ad5 54%,#e536a5 100%)!important;border:0!important;padding:5px!important;box-sizing:border-box!important;overflow:hidden!important}
body.ae-cp-page .ae-messaging-system-avatar img{display:block!important;width:32px!important;height:32px!important;max-width:32px!important;max-height:32px!important;object-fit:contain!important}
body.ae-cp-page .ae-messaging-system-head > .ae-messaging-system-head-logo{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 52px!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;box-sizing:border-box!important;padding:8px!important;overflow:hidden!important;border-radius:10px!important;background:linear-gradient(135deg,#198cf2,#7956d7 55%,#e536a5)!important}
body.ae-cp-page .ae-messaging-system-head-logo>img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;position:static!important;transform:none!important}
