/* Medicine Place commerce controls and the fixed, responsive store assistant. */
.hero { background: var(--green); }
.footer-wordmark { background: var(--blue); }
.filter-pills button[aria-pressed=true] { background: #096e98; }
.bag-summary > .bag-total { padding-top: 13px; border-top: 1px solid var(--line); font-size: 19px; }
.bag-dialog > .dialog-heading { position: sticky; top: -34px; z-index: 2; padding-block: 20px 16px; background: white; }
.bag-dialog input, .bag-dialog select { scroll-margin-block: 115px; }
.bag-summary > .bag-shipping { font-size: 15px; margin-top: 10px; }
.bag-summary > button[data-action=checkout] { background: #096e98; color: white; font-weight: 700; font-size: 19px; }
.bag-summary > button[data-action=checkout]:hover { background: #075573; }
.fulfillment-section { padding: 23px 0; border-block: 1px solid var(--line); margin-top: 25px; }
.fulfillment-section h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.fulfillment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 17px 0 20px; }
.fulfillment-options > button { display: flex; gap: 10px; align-items: center; min-height: 78px; padding: 14px; border: 1px solid #cbd9dc; border-radius: 14px; text-align: left; }
.fulfillment-options > button[aria-pressed=true] { background: #e4f6ee; border: 2px solid #158361; padding: 13px; }
.fulfillment-options > button > .icon:first-child { color: #087f5b; width: 24px; height: 24px; }
.fulfillment-options > button > .icon:last-child:not(:first-child) { margin-left: auto; width: 18px; height: 18px; }
.fulfillment-options span { display: grid; gap: 4px; font-size: 15px; }
.fulfillment-options strong { font-size: 13px; color: #0e654e; }
.pickup-select-label, .delivery-field { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
.fulfillment-section select, .delivery-field input { width: 100%; min-width: 0; min-height: 45px; padding: 10px 12px; border: 1px solid #b6c9cf; border-radius: 9px; background: white; color: var(--ink); font-size: 16px; }
.fulfillment-section select { margin-top: 8px; }
.delivery-field input[readonly] { background: #f2f6f7; color: #567077; }
.pickup-summary { background: #f1f7fa; border-radius: 12px; margin-top: 13px; padding: 16px; font-size: 14px; line-height: 1.5; }
.pickup-summary p { margin-top: 6px; }
.pickup-summary a { display: inline-flex; align-items: center; gap: 4px; margin: 12px 15px 0 0; color: #09648c; text-decoration: underline; text-underline-offset: 3px; }
.pickup-summary .icon { width: 15px; height: 15px; }
.fulfillment-hint { margin-top: 12px; font-size: 12px; line-height: 1.55; color: #5d7278; }
.delivery-intro { margin-bottom: 17px; font-size: 15px; }
.delivery-intro p { font-size: 13px; margin-top: 5px; }
.delivery-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.delivery-field:nth-child(-n+3), .delivery-field:last-child { grid-column: 1 / -1; }
.location-list article > div > p { font-size: 13px; line-height: 1.5; margin: 7px 0; }
.location-list article > div > a { display: inline-block; margin-right: 14px; }
.store-chat { position: fixed; right: max(22px,env(safe-area-inset-right)); bottom: max(22px,env(safe-area-inset-bottom)); z-index: 40; }
.chat-launcher { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 21px; border: 2px solid white; border-radius: 32px; color: white; background: #096e98; box-shadow: 0 6px 25px #092e352e; font-size: 15px; font-weight: 600; }
.chat-launcher:hover { background: #075573; transform: translateY(-2px); }
.chat-launcher .icon { width: 25px; height: 25px; }
.chat-panel[hidden] { display: none; }
.chat-panel { position: absolute; bottom: 72px; right: 0; display: flex; flex-direction: column; width: 380px; height: min(610px,calc(100dvh - 120px)); max-width: calc(100vw - 40px); overflow: hidden; background: white; border: 1px solid #d5e4e9; border-radius: 22px; box-shadow: 0 14px 65px #082f3530; }
.chat-panel header { position: relative; display: flex; flex-direction: column; align-items: flex-start; flex: none; gap: 13px; padding: 19px 20px 16px; background: #e7f6fc; border-bottom: 1px solid #cae5ef; }
.chat-panel header > img { width: 155px; height: auto; }
.chat-panel h2 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.chat-panel header span { display: block; color: #426b7b; font-size: 12px; margin-top: 4px; }
.chat-close { position: absolute; top: 12px; right: 12px; }
.chat-messages { display: flex; flex-direction: column; gap: 13px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 19px 16px; scrollbar-width: thin; }
.chat-bubble { max-width: 96%; border-radius: 14px 14px 14px 3px; background: #f0f5f6; padding: 13px 14px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-user { align-self: flex-end; background: #d8f1e6; border-radius: 14px 14px 3px 14px; }
.chat-bubble > button, .chat-bubble > a { display: block; width: 100%; min-height: 40px; margin-top: 9px; border: 1px solid #bfd6df; border-radius: 9px; padding: 10px; color: #095a7c; background: white; text-align: left; font-size: 13px; line-height: 1.4; }
.chat-bubble > button:hover, .chat-bubble > a:hover { background: #e3f6ec; }
.chat-bubble > button > span { display: block; font-size: 12px; margin-top: 4px; }
.chat-bubble .chat-product { display: flex; align-items: center; gap: 11px; }
.chat-product img { width: 37px; height: 48px; object-fit: contain; flex: none; }
.chat-product strong { display: block; color: var(--ink); margin-top: 3px; }
.chat-topics { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 15px; border-top: 1px solid var(--line); flex: none; }
.chat-topics button { min-height: 34px; padding: 7px 10px; border: 1px solid #bad2dc; border-radius: 20px; font-size: 12px; color: #095a7c; }
.chat-topics button:hover { background: #e4f5ec; }
.chat-form { display: flex; gap: 8px; padding: 0 15px; flex: none; }
.chat-form input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #b8ccd3; border-radius: 22px; padding: 10px 14px; font-size: 16px; color: var(--ink); }
.chat-form > button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #096e98; color: white; }
.chat-form > button .icon { transform: rotate(-90deg); }
.chat-privacy { flex: none; font-size: 10px; line-height: 1.4; color: #5e777f; padding: 9px 17px 13px; }
body.dialog-open .store-chat { visibility: hidden; }
.toast { bottom: 95px; max-width: calc(100vw - 40px); }
@media (max-width:560px) {
  .bag-dialog > .dialog-heading { top: -23px; padding-block: 14px; }
  .store-chat { right: max(14px,env(safe-area-inset-right)); bottom: max(14px,env(safe-area-inset-bottom)); }
  .chat-launcher { width: 56px; padding: 13px; }
  .chat-launcher > span { display: none; }
  .chat-panel { width: calc(100vw - 28px); max-width: none; height: min(610px,calc(100dvh - 105px)); bottom: 68px; border-radius: 19px; }
  .chat-panel header { padding: 16px 18px 13px; gap: 10px; }
  .chat-panel header > img { width: 135px; }
  .chat-messages { padding: 15px 12px; }
  .fulfillment-options { gap: 9px; }
  .fulfillment-options > button { padding: 12px 10px; gap: 7px; }
  .fulfillment-options > button[aria-pressed=true] { padding: 11px 9px; }
  .fulfillment-options > button > .icon:first-child { width: 21px; }
  .fulfillment-options span { font-size: 14px; }
}
