.hardy-widget { font-family: inherit; color: var(--text); letter-spacing: 0; }
.hardy-widget button, .hardy-widget textarea, .hardy-widget a { font: inherit; letter-spacing: 0; }
.hardy-widget .hardy-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); cursor: pointer; }
.hardy-widget .hardy-icon img { width: 22px; height: 22px; }
.hardy-widget .hardy-launcher { position: fixed; z-index: 1250; right: 20px; bottom: 22px; width: auto; height: 48px; gap: 10px; padding: 10px 16px; background: var(--panel); border-color: var(--line-strong); box-shadow: var(--shadow); font-weight: 700; }
.hardy-dialog { position: fixed; inset: auto 20px 20px auto; margin: 0; width: min(430px, calc(100vw - 32px)); height: min(650px, calc(100dvh - 40px)); max-height: calc(100dvh - 24px); max-width: none; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); overflow: hidden; }
.hardy-dialog[open] { display: flex; flex-direction: column; }
.hardy-dialog[data-mobile-viewport] { top: var(--hardy-viewport-top); bottom: auto; height: var(--hardy-viewport-height); max-height: var(--hardy-viewport-height); }
.hardy-dialog::backdrop { background: rgb(0 0 0 / 18%); }
.hardy-header { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 14px; border-bottom: 1px solid var(--line); }
.hardy-avatar { border-radius: 50%; flex: 0 0 36px; }
.hardy-title-box { flex: 1; min-width: 0; }
.hardy-title-box h2 { font-size: 21px; line-height: 1.1; margin: 0 0 4px; }
.hardy-title-box span { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
.hardy-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; scroll-behavior: smooth; }
.hardy-message { margin: 0 0 20px; overflow-wrap: anywhere; font-size: 16px; line-height: 1.45; }
.hardy-speaker { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.hardy-text { margin: 0; white-space: pre-wrap; font-size: 16px; line-height: 1.45; color: var(--text); }
.hardy-user { border-left: 3px solid var(--accent); padding-left: 12px; }
.hardy-proposal { margin-top: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hardy-proposal:empty { display: none; }
.hardy-proposal p { margin: 6px 0; font-size: 14px; color: var(--text); }
.hardy-widget .hardy-action { display: inline-flex; justify-content: center; align-items: center; text-align: center; max-width: 100%; min-height: 42px; padding: 9px 14px; margin-top: 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: normal; }
.hardy-widget .hardy-action:hover, .hardy-widget .hardy-icon:hover { background: var(--accent-soft); }
.hardy-widget [aria-disabled="true"], .hardy-widget button:disabled { opacity: .55; cursor: not-allowed; }
.hardy-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.hardy-widget .hardy-status { margin: 0; padding: 0 16px; font-size: 13px; line-height: 1.4; color: var(--muted); max-height: 74px; overflow: auto; flex-shrink: 0; }
.hardy-status:empty { display: none; }
.hardy-form { display: flex; align-items: center; flex-shrink: 0; gap: 8px; padding: 12px 14px; margin: 0; }
.hardy-widget textarea { resize: none; flex: 1; min-width: 0; width: auto; height: 64px; margin: 0; border: 1px solid var(--line-strong); border-radius: 6px; padding: 9px; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.4; }
.hardy-widget :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {
  .hardy-widget .hardy-launcher { right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); height: 44px; padding: 8px 12px; }
  .hardy-dialog { inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px; width: auto; height: min(650px, calc(100dvh - 24px)); }
  .hardy-header { gap: 7px; padding: 12px; }
  .hardy-messages { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hardy-messages { scroll-behavior: auto; } }
.hardy-checkout { border-top: 1px solid var(--line); margin: 16px 0; padding: 14px 0; font-size: 14px; overflow-wrap: anywhere; }
.hardy-checkout h3 { font-size: 19px; line-height: 1.3; margin: 0 0 12px; }
.hardy-checkout p { font-size: 14px; margin: 8px 0; }
.hardy-checkout-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.hardy-checkout-form label { display: grid; gap: 6px; font-size: 14px; min-width: 0; }
.hardy-delivery-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.hardy-widget [hidden] { display: none !important; }
.hardy-location-control { position: relative; min-width: 0; }
.hardy-checkout-form .hardy-location-control input { padding-right: 46px; }
.hardy-widget .hardy-location-toggle { position: absolute; right: 1px; top: 1px; width: 42px; height: 42px; border: 0; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; }
.hardy-location-toggle::after { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.hardy-location-options { max-height: 170px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); margin-top: 4px; }
.hardy-location-options button { display: block; width: 100%; padding: 10px; border: 0; text-align: left; white-space: normal; background: var(--panel); color: var(--text); }
.hardy-location-options button:hover, .hardy-location-options [aria-selected="true"] { background: var(--accent-soft); }
.hardy-location-options > span { display: block; padding: 10px; }
.hardy-date-notice { color: var(--muted); font-size: 13px; }
.hardy-checkout-form .hw-calendar-value { color: var(--text); font-size: 16px; }
.hardy-address-options + small { font-size: 12px; font-weight: 400; color: #5e5e5e; }
.hardy-checkout-form input { box-sizing: border-box; width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px; }
.hardy-checkout-form .hardy-consent { display: flex; align-items: flex-start; }
.hardy-checkout-form .hardy-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; }
.hardy-address-options { display: grid; gap: 0; }
.hardy-address-options:empty { display: none; }
.hardy-address-options + small:empty { display: none; }
.hardy-address-option:hover, .hardy-address-option:focus-visible { background: var(--accent-soft); }
.hardy-address-option { font: inherit; text-align: left; white-space: normal; padding: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.hardy-widget .checkout-contact-grid { grid-template-columns: minmax(0, 1fr); }
.hardy-widget .checkout-contact { margin-bottom: 8px; }
.hardy-widget .checkout-email-code { flex-direction: column; align-items: stretch; }
.hardy-widget .checkout-email-code input { max-width: none; }
.hardy-widget .checkout-email-actions { min-height: 0; }
.hardy-widget .hw-date-day:disabled { opacity: 1; }
.hardy-widget .hw-date-picker .hw-date-trigger { height: 46px; min-height: 46px; }
.has-checkout-calendar .hardy-widget .hardy-launcher { visibility: hidden; pointer-events: none; }
