/* Albert's Wine Sommelier — scoped styles, safe inside Elementor/OceanWP. */
.sbd-wine-hero, .sbd-wine-hero *, .sbd-wine-chat, .sbd-wine-chat * { box-sizing:border-box; }
.sbd-wine-hero{--wine:#680b16;--wine-deep:#420709;--gold:#e2bd70;position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(185px,.70fr) minmax(330px,1.20fr);gap:clamp(14px,2vw,32px);align-items:center;min-height:590px;overflow:hidden;padding:clamp(24px,3.5vw,52px);color:white;background:#202329;font-family:inherit}
.sbd-wine-hero::before{content:"";position:absolute;z-index:-2;inset:0;background-image:linear-gradient(90deg,rgba(12,14,18,.87) 0%,rgba(13,17,20,.73) 43%,rgba(16,20,23,.44) 100%),var(--sbd-wine-bg);background-size:cover;background-position:center center}
.sbd-wine-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(24,9,12,.29),transparent 42%);pointer-events:none}
.sbd-wine-hero--bleed{width:100vw;max-width:100vw;left:50%;margin-left:-50vw}
.sbd-wine-hero__copy{position:relative;z-index:2;min-width:0}.sbd-wine-hero__eyebrow{color:var(--gold);font-size:11px;font-weight:800;letter-spacing:.16em;display:flex;align-items:center;gap:12px}.sbd-wine-hero__eyebrow span{height:1px;background:var(--gold);width:70px}
.sbd-wine-hero__copy h2{margin:16px 0 18px!important;color:#fff!important;font-family:Georgia,"Times New Roman",serif!important;font-weight:700!important;line-height:1.05!important;font-size:clamp(34px,3.3vw,56px)!important;letter-spacing:-.025em;text-wrap:balance}
.sbd-wine-hero__copy>p{max-width:440px;margin:0 0 26px!important;color:#f1d389!important;font-size:clamp(14px,1.23vw,18px)!important;line-height:1.55!important}
.sbd-wine-hero__actions{display:flex;flex-direction:column;gap:11px;max-width:295px}
.sbd-wine-btn{width:100%;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:5px;text-decoration:none!important;font-size:14px;font-weight:700;line-height:1.35;cursor:pointer;transition:background-color .2s ease,transform .2s ease}
.sbd-wine-btn:hover{transform:translateY(-1px)}.sbd-wine-btn--primary{border:1px solid #af6e73;background:var(--wine);color:white!important}.sbd-wine-btn--primary:hover{background:#8d1422}.sbd-wine-btn--outline{border:1px solid var(--gold);background:rgba(5,5,7,.35);color:white!important}.sbd-wine-btn--outline:hover{background:rgba(255,255,255,.13)}
.sbd-wine-hero__features{margin-top:34px;display:flex;gap:14px;flex-wrap:wrap;color:var(--gold)}.sbd-wine-hero__features>span{font-size:23px;line-height:1.0}.sbd-wine-hero__features b{font-family:inherit;font-size:11px;display:block;margin:5px 0;color:#fff}.sbd-wine-hero__features small{font-family:inherit;font-size:10px;color:#e6ddce;line-height:1.3;display:block}
.sbd-wine-hero__mascot{z-index:1;position:relative;align-self:end;height:570px;min-width:0;pointer-events:none;overflow:visible;display:flex;align-items:flex-end;justify-content:center}.sbd-wine-hero__mascot img{display:block;object-fit:contain;object-position:center bottom;height:100%;width:130%;max-width:none;filter:drop-shadow(0 20px 25px rgba(0,0,0,.3));transform:scale(1.19);transform-origin:center bottom}
.sbd-wine-hero__panel{position:relative;z-index:2;min-width:0}
.sbd-wine-chat{color:#263038;width:100%;margin:0;display:flex;flex-direction:column;min-height:0;max-height:630px;background:#fff;border:1px solid rgba(255,255,255,.32);border-radius:16px;overflow:hidden;box-shadow:0 18px 40px rgba(0,0,0,.25);font:inherit}.sbd-wine-chat-only{max-width:700px;margin:20px auto}.sbd-wine-chat-only .sbd-wine-chat{min-height:0}
.sbd-wine-chat__header{display:flex;align-items:center;gap:13px;min-height:78px;padding:12px 18px;background:linear-gradient(110deg,var(--wine-deep,#450609),var(--wine,#680b16));color:#fff}.sbd-wine-chat__header img{display:block;width:48px;height:48px;border-radius:50%;object-fit:cover;background:#f4e4d0;border:2px solid #d7b970}.sbd-wine-chat__header strong{display:block;font-family:Georgia,serif;font-size:19px;color:#fff}.sbd-wine-chat__header small{display:flex;align-items:center;gap:7px;color:#f0e1d5;font-size:11px;margin-top:4px}.sbd-wine-chat__dot{width:8px;height:8px;border-radius:50%;background:#42b965}.sbd-wine-chat__dot.is-offline{background:#e2bd70}
.sbd-wine-chat__messages{flex:1;flex:0 1 auto;min-height:0;max-height:300px;overflow-y:auto;padding:15px 18px 8px;background:#fcfbfa;scroll-behavior:smooth}.sbd-wine-chat__bubble{max-width:92%;width:fit-content;padding:11px 13px;border:1px solid #eae1db;background:#f8f3f0;border-radius:12px 12px 12px 4px;font-size:13px;line-height:1.47;margin:0 0 11px;color:#384047;overflow-wrap:anywhere}.sbd-wine-chat__bubble p{margin:0!important;font:inherit!important;color:inherit!important}.sbd-wine-chat__bubble--user{margin-left:auto;background:#f3e9dd;border-color:#f3e9dd;border-radius:12px 12px 4px 12px}.sbd-wine-chat__bubble--typing{font-style:italic;color:#777}
.sbd-wine-chat__products{display:grid;gap:7px;margin:10px 0}.sbd-wine-chat__product{display:grid;grid-template-columns:45px minmax(0,1fr) 18px;gap:9px;align-items:center;padding:8px;border:1px solid #ece7e2;background:#fff;border-radius:8px;color:#252525!important;text-decoration:none!important}.sbd-wine-chat__product:hover{background:#fff8f0;border-color:#d7bd9e}.sbd-wine-chat__product img{height:58px;width:42px;object-fit:contain}.sbd-wine-chat__product strong{display:block;font-size:12px;line-height:1.25}.sbd-wine-chat__product b{display:block;font-size:12px;color:#8f5710}.sbd-wine-chat__product small{display:block;font-size:11px;color:#717171;line-height:1.3}
.sbd-wine-chat__starters{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px 14px 14px;border-top:1px solid #eee7e3}.sbd-wine-chat__starters>span{grid-column:1/-1;font-size:11px;color:#646065}.sbd-wine-chat__starters button{padding:9px 6px;border:1px solid #e8c9bb;border-radius:8px;background:#fdf6f2;color:#711424;font-size:11.5px;font-weight:600;cursor:pointer;text-align:center}.sbd-wine-chat__starters button:hover{background:#f9e6dc}
.sbd-wine-chat__form{display:grid;grid-template-columns:minmax(0,1fr) 45px;gap:7px;align-items:center;padding:12px 12px 6px;background:#fff;border-top:1px solid #eee}.sbd-wine-chat__form textarea{margin:0!important;min-height:48px;max-height:108px;resize:vertical;width:100%;padding:10px!important;font:inherit!important;font-size:12px!important;border:1px solid #d9dce1!important;border-radius:25px!important;line-height:1.35;background:#fff!important;box-shadow:none!important}.sbd-wine-chat__form button{height:43px;width:43px;border:0;border-radius:50%;background:#670a18;color:white;cursor:pointer;font-size:21px}.sbd-wine-chat__form button:disabled{opacity:.5;cursor:wait}.sbd-wine-chat__foot{margin:0!important;padding:4px 15px 11px;color:#777!important;background:#fff;font-size:10px!important;line-height:1.3!important}
@media(max-width:1180px){.sbd-wine-hero{grid-template-columns:minmax(220px,.85fr) minmax(300px,1.15fr);gap:20px;padding:28px}.sbd-wine-hero__mascot{position:absolute;right:40%;bottom:0;height:470px;width:300px;opacity:.43;z-index:0}.sbd-wine-hero__mascot img{transform:scale(1.04)}.sbd-wine-hero__copy{z-index:1}.sbd-wine-hero__copy h2{font-size:clamp(34px,3vw,48px)!important}}
@media(max-width:760px){.sbd-wine-hero{display:block;padding:28px 15px 30px;min-height:0}.sbd-wine-hero__copy{max-width:640px;margin:0 auto 18px}.sbd-wine-hero__copy h2{font-size:clamp(33px,8vw,45px)!important;margin:11px 0!important}.sbd-wine-hero__copy>p{font-size:14px!important;margin-bottom:13px!important}.sbd-wine-hero__actions{max-width:none;flex-direction:row}.sbd-wine-btn{min-height:42px;font-size:11px;padding:8px}.sbd-wine-hero__features{display:none}.sbd-wine-hero__mascot{display:none}.sbd-wine-hero__panel{max-width:650px;margin:auto}.sbd-wine-chat{min-height:0;max-height:none}.sbd-wine-hero{padding-bottom:78px}.sbd-wine-chat__form{scroll-margin-bottom:120px}.sbd-wine-chat__foot{padding-bottom:14px!important}.sbd-wine-hero::before{background-image:linear-gradient(90deg,rgba(15,16,20,.86),rgba(15,16,20,.75)),var(--sbd-wine-bg)}}
@media(max-width:390px){.sbd-wine-chat__header strong{font-size:17px}.sbd-wine-chat__starters button{font-size:10px}.sbd-wine-hero__actions{flex-direction:column}.sbd-wine-chat__messages{padding:12px}}
@media(prefers-reduced-motion:reduce){.sbd-wine-chat__messages{scroll-behavior:auto}.sbd-wine-btn{transition:none}}

.sbd-wine-chat__starters[hidden]{display:none!important}

/* v0.1.1: A short welcome state, then a scrollable conversation once chat starts. */
.sbd-wine-chat.sbd-wine-chat--active{min-height:525px;max-height:630px}
.sbd-wine-chat--active .sbd-wine-chat__messages{flex:1 1 auto;min-height:155px;max-height:none;padding:16px 18px}
@media(max-width:1180px){.sbd-wine-chat--active.sbd-wine-chat{min-height:500px}}
@media(max-width:760px){
  .sbd-wine-chat--active.sbd-wine-chat{min-height:490px;max-height:620px}
  .sbd-wine-chat__form{padding-right:14px;padding-left:14px}
  .sbd-wine-chat__foot{padding-right:60px!important}
  .sbd-wine-chat__messages{max-height:260px}
}
@media(max-width:390px){.sbd-wine-chat__form{grid-template-columns:minmax(0,1fr) 43px}}

/* v0.2.2: readable assistant paragraphs/lists; scoped to this chat only. */
.sbd-wine-chat__bubble p + p{margin-top:10px!important}
.sbd-wine-chat__bubble ul,.sbd-wine-chat__bubble ol{margin:10px 0 4px!important;padding-left:20px!important;color:inherit;font-size:inherit;line-height:1.65}
.sbd-wine-chat__bubble ul{list-style:disc outside!important}
.sbd-wine-chat__bubble ol{list-style:decimal outside!important}
.sbd-wine-chat__bubble li{margin:0 0 12px!important;padding-left:2px}
.sbd-wine-chat__bubble li:last-child{margin-bottom:0!important}
.sbd-wine-chat__bubble strong{font-weight:750;color:inherit}
.sbd-wine-chat__bubble{overflow-wrap:anywhere}
.sbd-wine-chat__product strong,.sbd-wine-chat__product b,.sbd-wine-chat__product small{overflow-wrap:anywhere}

/* v0.3.0: compact WooCommerce shop entry point. */
.sbd-wine-shop{clear:both;box-sizing:border-box;width:100%;margin:18px 0 25px;border:1px solid #c9aa76;border-radius:13px;background:#fff;overflow:hidden;color:#fff;font-family:inherit}
.sbd-wine-shop>summary{display:flex;align-items:center;gap:16px;padding:20px 24px;cursor:pointer;background:linear-gradient(115deg,#420709,#741426);list-style:none}
.sbd-wine-shop>summary::-webkit-details-marker{display:none}
.sbd-wine-shop>summary>img{width:56px;height:56px;object-fit:cover;border-radius:50%;border:2px solid #d9b875;flex-shrink:0}
.sbd-wine-shop>summary>span:not(.sbd-wine-shop__action){min-width:0}
.sbd-wine-shop>summary strong{display:block;font-size:20px;font-family:Georgia,"Times New Roman",serif;color:#fff;line-height:1.3}
.sbd-wine-shop>summary small{display:block;margin-top:6px;font-size:12px;line-height:1.5;color:#f3dfc4}
.sbd-wine-shop__action{display:inline-flex;align-items:center;gap:15px;flex-shrink:0;margin-left:auto;border:1px solid #d8b779;border-radius:7px;padding:10px 14px;font-size:12px;font-weight:700;color:#f8e5bd}
.sbd-wine-shop[open] .sbd-wine-shop__action>span{transform:rotate(45deg)}
.sbd-wine-shop__body{padding:24px;background:#faf7f2}
.sbd-wine-shop .sbd-wine-chat{max-width:760px;margin:auto;box-shadow:0 5px 20px #3e192512}
.sbd-wine-shop>summary:focus-visible{outline:3px solid #d6b16e;outline-offset:-5px}
@media(max-width:760px){.sbd-wine-shop>summary{gap:12px;padding:17px 14px;flex-wrap:wrap}.sbd-wine-shop>summary>img{height:46px;width:46px}.sbd-wine-shop>summary>span:not(.sbd-wine-shop__action){flex:1}.sbd-wine-shop>summary strong{font-size:18px}.sbd-wine-shop__action{margin:0 0 0 58px;padding:8px 12px}.sbd-wine-shop__body{padding:12px}.sbd-wine-shop{margin:15px 0 20px}}
