/* Scoped to the promotion center; never restyle production/orders/CRM. */
#salesAssistantSection.promotion-session-covered > :not(#promotionSessionNotice){visibility:hidden;pointer-events:none}
#promotionSessionNotice{margin:20px;min-height:48px}
#salesAssistantSection .sales-workspace{grid-template-columns:1fr;gap:16px}
#salesAssistantSection .sales-result-panel{min-height:0}
#salesAssistantSection .sales-empty-result{min-height:110px;padding:20px}
#salesAssistantSection .sales-transcript{min-height:130px;max-height:280px}
#salesAssistantSection details>summary{cursor:pointer;padding:12px 0;font-weight:650;color:#146b68}
#salesAssistantSection .sales-secondary-analysis{margin-top:12px;border-top:1px solid #dce8e8}
#salesAssistantSection .sales-history-panel{grid-column:1/-1}
#salesAssistantSection .sales-history-panel:not([open]){padding:0 18px}
#salesAssistantSection .sales-intake-disclosure{border:1px solid #dce8e8;border-radius:12px;padding:0 18px;background:#fff}
#salesAssistantSection .promotion-composer{margin-top:22px}
.ai-gift.ag-flow .ag-layout{grid-template-columns:1fr}
.ai-gift.ag-flow .ag-panel{padding:22px}
.ai-gift.ag-flow .ag-image{height:210px;width:100%;padding:8px;border:0;border-radius:8px;overflow:hidden;margin:0 0 12px}
.ai-gift .ag-image:focus-visible{outline:3px solid #008579;outline-offset:2px}
.ai-gift.ag-flow .ag-product{padding:16px;display:flex;flex-direction:column;gap:6px}
.ai-gift.ag-flow .ag-product h3{font-size:18px;line-height:1.45}
.ai-gift .ag-candidate-pager{display:grid;grid-template-columns:minmax(120px,1fr) auto minmax(120px,1fr);align-items:center;gap:12px;margin-top:18px}
.ai-gift .ag-candidate-pager[hidden]{display:none}
.ai-gift .ag-candidate-pager button:last-child{justify-self:end}
.ai-gift .ag-candidate-pager span{text-align:center;color:#496676;font-weight:650}
.ai-gift .ag-product>.ag-primary{margin-top:auto}
.ai-gift .ag-slot{display:inline-block;padding:3px 8px;background:#e3f3ef;color:#00695f;border-radius:5px;font-weight:700}
.ai-gift details{padding:6px 0;border-top:1px solid #e1e9eb;margin-top:12px}
.ai-gift details>summary{cursor:pointer;padding:10px 0;color:#176d67;font-weight:650}
.ai-gift.ag-flow .ag-composition-grid .ag-products{grid-template-columns:1fr}
.ai-gift dialog{width:min(660px,92vw);max-height:90vh;overflow:auto;border:1px solid #b9d6d2;border-radius:16px;padding:24px;color:#16344b;background:#fff}
.ai-gift dialog::backdrop{background:#09233199}
/* A large portrait image must not set a grid's intrinsic minimum track size
   and paint over the following price, description and action controls. */
.ai-gift .ag-detail-image{width:100%;height:min(360px,45vh);min-width:0;min-height:0;margin:16px 0;background:#f2f6f7;display:flex;align-items:center;justify-content:center;overflow:hidden;contain:paint}
.ai-gift .ag-detail-image img{display:block;position:static;min-width:0;min-height:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.ai-gift [data-product-detail]{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.ai-gift [data-product-detail]>:not(.ag-detail-image){min-width:0;overflow-wrap:anywhere}
.ai-gift [data-product-dialog]>button{margin-top:12px}
.ai-gift [data-customer-preview]{padding:18px;background:#f2f8f7;border-radius:12px}
.ai-gift [data-bundle-price-result]{margin-top:18px;padding:18px;border:1px solid #acd1cb;border-radius:12px;background:#f3faf8}
.ai-gift .ag-price-breakdown{max-width:680px;margin:12px 0}
.ai-gift .ag-price-breakdown>div{display:flex;justify-content:space-between;gap:18px;padding:9px 0;border-bottom:1px solid #dce8e8}
.ai-gift .ag-price-breakdown dd{margin:0;font-weight:650;white-space:nowrap}
.ai-gift .ag-price-breakdown>div:last-child{font-size:1.1em;color:#00695f}
@media(max-width:700px){.ai-gift.ag-flow .ag-products{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-gift.ag-flow .ag-panel{padding:14px}.ai-gift.ag-flow .ag-image{height:160px}.ai-gift .ag-candidate-pager{grid-template-columns:1fr 1fr}.ai-gift .ag-candidate-pager span{grid-column:1/-1;grid-row:1}.ai-gift .ag-candidate-pager button{grid-row:2}}
@media(max-width:440px){.ai-gift.ag-flow .ag-products{grid-template-columns:1fr}}
.ag-flow .ag-variant-images { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; width:100%; }
.ag-flow .ag-variant-images img { width:100%; height:110px; object-fit:contain; }
/* An adjusted option needs room for its actual components, not three tiny cards
   inside one third of the customer preview. Applies only to proposal elements. */
.ai-gift [data-customer-preview]>.ag-products>.ag-product:has(.ag-option-components),
.ai-gift .ag-readonly .ag-variant-option{grid-column:1/-1}
.ai-gift .ag-option-components.ag-products{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:start}
.ai-gift .ag-option-components .ag-product{display:block;padding:12px}
.ai-gift .ag-option-components .ag-image{display:flex;width:100%;height:auto;aspect-ratio:4/3;margin:0 0 10px;padding:0}
.ai-gift .ag-option-components .ag-image img{width:100%;height:100%;object-fit:contain}
.ai-gift .ag-option-components h4{margin:8px 0;font-size:16px;line-height:1.45}
@media(max-width:540px){.ai-gift .ag-option-components.ag-products{grid-template-columns:1fr}}
