.elenpriv-chat-shell{--ec-bg:#faf7f4;--ec-surface:#fffdfb;--ec-surface-alt:#f5eee8;--ec-border:#eadfd6;--ec-border-strong:#e0c9bc;--ec-muted:#8c7b72;--ec-text:#2d2622;--ec-accent:#d96f48;--ec-accent-strong:#c75f3c;--ec-accent-soft:#f3e2d7;--ec-customer:#f6ebe3;--ec-admin:#ffffff;--ec-shadow:0 8px 24px rgba(93,63,49,.06);margin:0;max-width:100%}
.elenpriv-chat-shell *{box-sizing:border-box}.elenpriv-chat-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 9px}.elenpriv-chat-hero h2{margin:0 0 4px;font-size:22px;line-height:1.2;font-weight:650;color:var(--ec-text)}.elenpriv-chat-hero p{margin:0;color:var(--ec-muted);line-height:1.32;max-width:640px;font-size:13px}.elenpriv-chat-grid{display:grid;grid-template-columns:210px minmax(0,1fr);border:2px solid var(--ec-border);border-radius:18px;overflow:hidden;background:var(--ec-surface);box-shadow:var(--ec-shadow)}.elenpriv-chat-grid.is-single{grid-template-columns:minmax(0,1fr)}.elenpriv-chat-sidebar{border-right:1px solid var(--ec-border);background:var(--ec-bg);padding:11px 8px}.elenpriv-chat-sidebar-title{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#a08f85;font-weight:700;padding:3px 8px 8px}.elenpriv-chat-thread-list{display:flex;flex-direction:column;gap:6px}.elenpriv-chat-thread{position:relative;display:flex;flex-direction:column;gap:3px;padding:10px 34px 10px 10px;border-radius:12px;color:var(--ec-text)!important;text-decoration:none!important;transition:.15s;background:transparent;border:1px solid transparent}.elenpriv-chat-thread:hover{background:#fbf5f0}.elenpriv-chat-thread.is-active{background:var(--ec-surface);border-color:var(--ec-border-strong);box-shadow:0 2px 6px rgba(93,63,49,.05)}.elenpriv-chat-thread-title{font-weight:600;font-size:13px;line-height:1.25}.elenpriv-chat-thread-date{font-size:10.5px;color:#9a8a82}.elenpriv-chat-badge{position:absolute;right:8px;top:10px;min-width:19px;height:19px;padding:0 6px;border-radius:10px;background:var(--ec-accent);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center}.elenpriv-chat-main{display:flex;flex-direction:column;min-width:0;background:var(--ec-surface)}.elenpriv-chat-main-head{min-height:62px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--ec-border);background:linear-gradient(180deg,#fffdfb 0%, #fcf8f4 100%)}.elenpriv-chat-main-head>div{display:flex;flex-direction:column;min-width:0}.elenpriv-chat-main-head strong{font-size:18px;color:var(--ec-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25}.elenpriv-chat-main-head>div span{font-size:12px;color:var(--ec-muted);margin-top:3px;line-height:1.35}.elenpriv-chat-messages{min-height:160px;max-height:48vh;overflow:auto;padding:14px 14px 10px;background:var(--ec-bg)}.elenpriv-chat-loading,.elenpriv-chat-empty{min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#9a8a82}.elenpriv-chat-empty span{font-size:27px;filter:grayscale(1);opacity:.45}.elenpriv-chat-empty strong{font-size:14px;color:#6e5e56;margin-top:7px}.elenpriv-chat-empty p{max-width:330px;margin:4px 0 0;font-size:12px;line-height:1.4}.elenpriv-chat-msg{width:fit-content;max-width:76%;margin:0 0 7px;padding:10px 12px;border:1px solid var(--ec-border);border-radius:16px 16px 16px 6px;background:var(--ec-admin);box-shadow:0 1px 2px rgba(0,0,0,.02)}.elenpriv-chat-msg.customer{margin-left:auto;border-radius:16px 16px 6px 16px;background:var(--ec-customer);border-color:#ead9cf}.elenpriv-chat-msg-meta{display:flex;gap:7px;align-items:baseline;margin-bottom:4px;font-size:10.5px;color:#9c8d84}.elenpriv-chat-msg-meta strong{font-size:10.5px;color:#7c6a60}.elenpriv-chat-msg-body{font-size:14px;line-height:1.45;color:var(--ec-text);word-break:break-word;white-space:pre-wrap}.elenpriv-chat-form{display:flex;align-items:center;gap:10px;padding:12px;border-top:1px solid var(--ec-border);background:var(--ec-surface);margin:0!important}.elenpriv-chat-shell form.elenpriv-chat-form{margin:0!important}.elenpriv-chat-form textarea{flex:1;min-width:0;min-height:48px!important;height:auto;max-height:112px;padding:12px 14px!important;border:1px solid var(--ec-border-strong)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;resize:none;font:inherit!important;font-size:14px!important;line-height:1.35!important;margin:0!important;color:var(--ec-text)!important;overflow-y:hidden}.elenpriv-chat-form textarea::placeholder{color:#a7958c}.elenpriv-chat-form textarea:focus{border-color:var(--ec-accent)!important;outline:none;box-shadow:0 0 0 3px rgba(217,111,72,.14)!important}.elenpriv-chat-form button{min-height:48px;border:0;border-radius:14px;background:#d96f48;color:#fff;padding:0 16px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;box-shadow:0 4px 12px rgba(217,111,72,.20);text-transform:none!important;letter-spacing:normal!important}.elenpriv-chat-form button:hover{background:#c75f3c}.elenpriv-chat-form button:disabled{opacity:.6;cursor:wait}.elenpriv-chat-shell-single .elenpriv-chat-hero{margin-bottom:10px}
@media(max-width:760px){.elenpriv-chat-hero{margin-bottom:10px}.elenpriv-chat-hero h2{font-size:20px}.elenpriv-chat-hero p{font-size:13px;line-height:1.35}.elenpriv-chat-grid{display:flex;flex-direction:column;border-radius:16px}.elenpriv-chat-sidebar{border-right:0;border-bottom:1px solid var(--ec-border);padding:8px;background:var(--ec-surface)}.elenpriv-chat-sidebar-title{display:none}.elenpriv-chat-thread-list{flex-direction:row;overflow-x:auto;gap:6px;scrollbar-width:none}.elenpriv-chat-thread-list::-webkit-scrollbar{display:none}.elenpriv-chat-thread{flex:0 0 auto;min-width:144px;max-width:196px;border:1px solid var(--ec-border);background:#fff7f2;padding:8px 28px 8px 10px}.elenpriv-chat-thread.is-active{background:#fff;border-color:var(--ec-border-strong)}.elenpriv-chat-main-head{min-height:58px;padding:12px}.elenpriv-chat-main-head strong{font-size:16px}.elenpriv-chat-main-head>div span{font-size:11px}.elenpriv-chat-messages{min-height:150px;max-height:45vh;padding:12px 12px 8px}.elenpriv-chat-msg{max-width:90%;padding:9px 11px}.elenpriv-chat-msg-body{font-size:13.5px}.elenpriv-chat-form{padding:10px;gap:8px;align-items:stretch}.elenpriv-chat-form textarea{min-height:46px!important;height:auto;max-height:104px;padding:11px 12px!important;font-size:13px!important}.elenpriv-chat-form button{min-height:46px;min-width:108px;max-width:118px;padding:0 12px;font-size:13px;align-self:flex-end}.elenpriv-chat-grid.is-single .elenpriv-chat-main-head{border-top-left-radius:16px;border-top-right-radius:16px}}



/* Protected attachment presentation. */

.elenpriv-chat-attach-btn{position:relative;flex:0 0 48px;width:48px;height:48px;border:1px solid var(--ec-border-strong);border-radius:14px;background:#fff;display:grid;place-items:center;cursor:pointer;font-size:20px;line-height:1;box-shadow:none;margin:0!important}.elenpriv-chat-attach-btn:hover{background:#fff8f4;border-color:var(--ec-accent)}.elenpriv-chat-attach-btn.has-file{background:var(--ec-accent-soft);border-color:var(--ec-accent)}.elenpriv-chat-attach-btn.has-file:after{content:'✓';position:absolute;right:-3px;top:-4px;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;background:var(--ec-accent);color:#fff;font-size:10px;font-weight:800}.elenpriv-chat-attach-btn input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.elenpriv-chat-attachment{display:flex;align-items:center;gap:10px;margin-top:7px;padding:8px;border:1px solid var(--ec-border);border-radius:11px;background:rgba(255,255,255,.7);text-decoration:none!important;color:var(--ec-text)!important;max-width:360px}.elenpriv-chat-attachment span{display:flex;min-width:0;flex-direction:column;gap:2px}.elenpriv-chat-attachment strong{font-size:12px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.elenpriv-chat-attachment small{font-size:10px;color:var(--ec-muted)}.elenpriv-chat-attachment.is-image{display:block;padding:6px}.elenpriv-chat-attachment.is-image img{display:block;max-width:320px;max-height:260px;width:auto;height:auto;border-radius:8px;object-fit:contain;background:#fff}.elenpriv-chat-attachment.is-image span{padding:6px 3px 2px}.elenpriv-chat-attachment.is-pdf>b{flex:0 0 auto;display:grid;place-items:center;width:42px;height:42px;border-radius:8px;background:#fff0ed;color:#b83f32;font-size:11px;font-weight:800}.elenpriv-chat-msg-body+.elenpriv-chat-attachment{margin-top:8px}
@media(max-width:760px){body.elenpriv-chat-account-page .elenpriv-chat-attach-btn{flex-basis:46px;width:46px;height:46px;border-radius:12px}.elenpriv-chat-attachment{max-width:100%}.elenpriv-chat-attachment.is-image img{max-width:min(260px,70vw);max-height:220px}}

/* Native account integration: no Flatsome row/column, footer or DOM patches. */
html body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--messages>a{background:#edf6e9!important;color:#66815f!important;border-color:#d7e5d0!important}
html body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout>a{background:#faeded!important;color:#a97570!important;border-color:#ead5d5!important}
.elenpriv-chat-shell{min-width:0}.elenpriv-chat-grid{min-width:0}.elenpriv-chat-shell .elenpriv-chat-form button{border-radius:4px}.elenpriv-chat-attach-btn:focus-within{outline:2px solid #a9502e;outline-offset:3px}.elenpriv-chat-msg-meta{flex-wrap:wrap}.elenpriv-chat-thread-date{overflow-wrap:anywhere}
@media(max-width:760px){.elenpriv-chat-hero{display:none}.elenpriv-chat-grid{height:var(--ec-mobile-grid-height,480px);min-height:360px}.elenpriv-chat-main{flex:1;min-height:0}.elenpriv-chat-main-head{flex:none}.elenpriv-chat-messages{flex:1;min-height:0;max-height:none}.elenpriv-chat-form{flex:none;align-items:center}.elenpriv-chat-form button{min-width:72px;max-width:none}.elenpriv-chat-attach-btn{flex:0 0 40px;width:40px}.elenpriv-chat-msg{max-width:94%}}
