/* Oxbury Help Desk storefront widget. Every class is prefixed oxhd- so the theme isn't affected. */
.oxhd, .oxhd *, .oxhd-pop, .oxhd-pop * { box-sizing: border-box; }
.oxhd { --oxhd-color: #8b0000; --oxhd-text: #fff; --oxhd-bottom: 20px; --oxhd-side: 20px; --oxhd-radius: 16px;
  position: fixed; bottom: var(--oxhd-bottom); z-index: 2147482000; font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Poppins, Helvetica, Arial, sans-serif; color: #1a1a1a; }
.oxhd--right { right: var(--oxhd-side); }
.oxhd--left { left: var(--oxhd-side); }
.oxhd svg { width: 20px; height: 20px; flex: 0 0 auto; }
.oxhd button { font: inherit; cursor: pointer; }
.oxhd a { color: var(--oxhd-color); }
.oxhd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* launcher */
.oxhd-launcher { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 58px; min-width: 58px; padding: 0 17px; border: 0; border-radius: 29px;
  background: var(--oxhd-color); color: var(--oxhd-text); box-shadow: 0 6px 24px rgba(0,0,0,.22); transition: transform .15s ease; }
.oxhd-launcher:hover { transform: scale(1.05); }
.oxhd-launcher:focus-visible { outline: 3px solid rgba(0,0,0,.35); outline-offset: 3px; }
.oxhd-launcher svg { width: 26px; height: 26px; }
.oxhd-launcher__label { font-weight: 600; font-size: 15px; }
.oxhd-launcher__close { display: none; }
.oxhd.is-open .oxhd-launcher__open { display: none; }
.oxhd.is-open .oxhd-launcher__close { display: inline-flex; }
.oxhd.is-open .oxhd-launcher__label { display: none; }
.oxhd-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: #e11d48; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; border: 2px solid #fff; }
.oxhd-badge[hidden] { display: none; }

/* panel */
.oxhd-panel { position: absolute; bottom: 72px; width: 384px; height: min(640px, calc(100vh - var(--oxhd-bottom) - 96px)); background: #f7f7f8; border-radius: var(--oxhd-radius);
  box-shadow: 0 12px 48px rgba(0,0,0,.25); overflow: hidden; display: flex; flex-direction: column; animation: oxhd-in .18s ease-out; }
.oxhd-panel[hidden] { display: none; }
.oxhd--right .oxhd-panel { right: 0; }
.oxhd--left .oxhd-panel { left: 0; }
@keyframes oxhd-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.oxhd-scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.oxhd-icon { width: 36px; height: 36px; border: 0; background: transparent; color: inherit; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.oxhd-icon:hover { background: rgba(0,0,0,.08); }

/* home */
.oxhd-hero { position: relative; background: var(--oxhd-color); color: var(--oxhd-text); padding: 28px 22px 46px; flex: 0 0 auto; }
.oxhd-hero .oxhd-x { position: absolute; top: 10px; right: 10px; color: var(--oxhd-text); }
.oxhd-hero .oxhd-x:hover { background: rgba(255,255,255,.15); }
.oxhd-hero__avatar { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; overflow: hidden; margin-bottom: 14px; border: 2px solid rgba(255,255,255,.6); }
.oxhd-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.oxhd-hero__avatar svg { width: 26px; height: 26px; }
.oxhd-hero h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; color: inherit; line-height: 1.2; }
.oxhd-hero p { margin: 0; opacity: .9; font-size: 15px; }
.oxhd-hero__status { margin-top: 12px; font-size: 13px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.oxhd-dot { width: 8px; height: 8px; border-radius: 50%; background: #b5b5b5; display: inline-block; flex: 0 0 auto; }
.oxhd-dot.is-on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.oxhd-home { margin-top: -30px; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.oxhd-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 14px; border: 0; text-align: left; width: 100%; color: inherit; }
.oxhd-card--cta { display: flex; align-items: center; gap: 12px; }
.oxhd-card--cta:hover { box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.oxhd-card__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.oxhd-accent { background: var(--oxhd-color); color: var(--oxhd-text); }
.oxhd-card__body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.oxhd-card__body strong { font-weight: 650; }
.oxhd-card__body small { color: #6b6b6b; font-size: 12.5px; }
.oxhd-card__title { font-weight: 650; margin-bottom: 10px; }
.oxhd-card--list { padding: 4px 0; }
.oxhd-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 11px 14px; text-align: left; color: inherit; }
.oxhd-row:hover { background: #f5f5f6; }
.oxhd-row > span:not(.oxhd-row__icon) { flex: 1 1 auto; min-width: 0; }
.oxhd-row small { display: block; color: #6b6b6b; font-size: 12px; margin-top: 2px; }
.oxhd-row > svg:last-child { color: #9a9a9a; width: 16px; height: 16px; }
.oxhd-row__icon { color: var(--oxhd-color); display: grid; }
.oxhd-row--faq { padding: 9px 0; border-top: 1px solid #f0f0f0; }
.oxhd-row--faq:first-child { border-top: 0; }
.oxhd-search { display: flex; align-items: center; background: #f2f2f3; border-radius: 10px; padding: 0 4px 0 12px; }
.oxhd-search input { flex: 1 1 auto; border: 0; background: transparent; height: 40px; outline: none; font: inherit; min-width: 0; color: inherit; }
.oxhd-search button { border: 0; background: transparent; color: #555; width: 36px; height: 36px; display: grid; place-items: center; }
.oxhd-search--page { margin: 14px; }
.oxhd-list { margin-top: 6px; }
.oxhd-scroll > .oxhd-list { padding: 0 14px; }
.oxhd-more { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; text-decoration: none; }
.oxhd-scroll > .oxhd-more { padding: 0 14px 14px; }
.oxhd-contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.oxhd-contact { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px; background: #f2f2f3; color: #1a1a1a !important; text-decoration: none; font-size: 13px; font-weight: 550; }
.oxhd-contact:hover { background: #e8e8ea; }
.oxhd-contact svg { width: 16px; height: 16px; }
.oxhd-contact--whatsapp svg { color: #25d366; }
.oxhd-contact--messenger svg { color: #0084ff; }
.oxhd-contact--instagram svg { color: #e1306c; }
.oxhd-powered { text-align: center; font-size: 11px; color: #9a9a9a; }

/* bar (sub views) */
.oxhd-bar { display: flex; align-items: center; gap: 6px; padding: 10px 8px; background: var(--oxhd-color); color: var(--oxhd-text); flex: 0 0 auto; }
.oxhd-bar .oxhd-icon:hover { background: rgba(255,255,255,.15); }
.oxhd-bar__title { flex: 1 1 auto; min-width: 0; font-weight: 650; font-size: 15px; }
.oxhd-bar__title small { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 12px; opacity: .9; }
.oxhd-bar__avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.oxhd-bar__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* chat */
.oxhd-log { padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f7f7f8; }
.oxhd-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.oxhd-msg > div { min-width: 0; }
.oxhd-msg__av { width: 28px; height: 28px; border-radius: 50%; background: var(--oxhd-color); color: var(--oxhd-text); display: grid; place-items: center; font-size: 12px; font-weight: 700; overflow: hidden; flex: 0 0 auto; }
.oxhd-msg__av img { width: 100%; height: 100%; object-fit: cover; }
.oxhd-msg__av svg { width: 16px; height: 16px; }
.oxhd-msg--agent .oxhd-msg__av { background: #303030; color: #fff; }
.oxhd-msg__b { background: #fff; padding: 9px 12px; border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); overflow-wrap: anywhere; }
.oxhd-msg__b a { text-decoration: underline; }
/* add-to-cart buttons in AI chat replies */
.oxhd-addcart { display: inline-flex; align-items: center; gap: 6px; margin: 6px 6px 2px 0; padding: 8px 14px; min-height: 40px; border: 0; border-radius: 999px;
  background: var(--oxhd-color); color: var(--oxhd-text); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.oxhd-addcart svg { width: 18px; height: 18px; flex: 0 0 auto; }
.oxhd-addcart:hover { filter: brightness(1.08); }
.oxhd-addcart:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
.oxhd-addcart.is-loading { opacity: .7; cursor: progress; }
.oxhd-addcart.is-added { background: #1f7a3a; cursor: default; }
.oxhd-addcart__note { display: block; margin: 2px 0 4px; font-size: 13px; }
.oxhd-addcart__note--err { color: #b42318; }
.oxhd-msg__t { font-size: 11px; color: #8a8a8a; margin: 3px 4px 0; }
.oxhd-msg--me { align-self: flex-end; }
.oxhd-msg--me .oxhd-msg__b { background: var(--oxhd-color); color: var(--oxhd-text); border-radius: 16px 16px 4px 16px; }
.oxhd-msg--me .oxhd-msg__b a { color: inherit; }
.oxhd-msg--me .oxhd-msg__t { text-align: right; }
.oxhd-msg.is-sending { opacity: .6; }
.oxhd-msg.is-failed .oxhd-msg__b { outline: 2px solid #e11d48; }
.oxhd-typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 16px; align-self: flex-start; margin-left: 36px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.oxhd-typing[hidden] { display: none; }
.oxhd-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9a; animation: oxhd-bounce 1.2s infinite ease-in-out; }
.oxhd-typing span:nth-child(2) { animation-delay: .15s; }
.oxhd-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes oxhd-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.oxhd-extra:empty { display: none; }
.oxhd-note { font-size: 13px; color: #555; background: #fff; border-radius: 10px; padding: 10px 12px; text-align: center; }
.oxhd-note--err { color: #b4232c; background: #fdecee; }
.oxhd-rate, .oxhd-capture { background: #fff; border-radius: 12px; padding: 12px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: 13.5px; }
.oxhd-rate__faces { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.oxhd-rate__faces button { font-size: 26px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #e5e5e5; background: #fff; }
.oxhd-rate__faces button:hover { transform: scale(1.1); background: #f7f7f8; }
.oxhd-inline { display: flex; gap: 6px; margin-top: 8px; }
.oxhd-inline input { flex: 1 1 auto; min-width: 0; }
.oxhd-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #ececec; flex: 0 0 auto; }
.oxhd-compose textarea { flex: 1 1 auto; border: 0; resize: none; outline: none; font: inherit; max-height: 110px; padding: 8px 4px; background: transparent; color: inherit; }
.oxhd-compose button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--oxhd-color); color: var(--oxhd-text); display: grid; place-items: center; flex: 0 0 auto; }

/* forms */
.oxhd-form { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.oxhd-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #333; }
.oxhd-form input, .oxhd-form textarea, .oxhd-inline input { border: 1px solid #d4d4d8; border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 400; background: #fff; color: #1a1a1a; outline: none; width: 100%; }
.oxhd-form input:focus, .oxhd-form textarea:focus, .oxhd-inline input:focus { border-color: var(--oxhd-color); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.oxhd-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: var(--oxhd-color); color: var(--oxhd-text) !important; font-weight: 650; padding: 11px 16px; text-decoration: none; width: 100%; }
.oxhd-btn:disabled { opacity: .6; cursor: default; }
.oxhd-btn--sm { width: auto; padding: 8px 12px; }
.oxhd-btn--ghost { background: #fff; color: var(--oxhd-color) !important; border: 1px solid currentColor; margin-top: 12px; }
.oxhd-error { color: #b4232c; font-size: 13px; }
.oxhd-error[hidden] { display: none; }
.oxhd-muted { color: #6b6b6b; font-size: 13px; margin: 0; }
.oxhd-pad { padding: 10px 0; }
.oxhd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.oxhd-done { text-align: center; padding: 30px 10px; }
.oxhd-done__icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; background: #dcfce7; color: #15803d; font-size: 28px; display: grid; place-items: center; }
.oxhd-spin { width: 22px; height: 22px; margin: 14px auto; border-radius: 50%; border: 3px solid #e5e5e5; border-top-color: var(--oxhd-color); animation: oxhd-rot .8s linear infinite; }
@keyframes oxhd-rot { to { transform: rotate(360deg); } }

/* article */
.oxhd-article { padding: 16px; background: #fff; }
.oxhd-article h3 { font-size: 18px; margin: 0 0 10px; font-weight: 700; color: #1a1a1a; }
.oxhd-rte { font-size: 14px; }
.oxhd-rte img { max-width: 100%; height: auto; }
.oxhd-rte p { margin: 0 0 10px; }
.oxhd-rte ul, .oxhd-rte ol { padding-left: 20px; margin: 0 0 10px; }
.oxhd-helpful { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 13px; color: #555; }
.oxhd-helpful button { border: 1px solid #e5e5e5; background: #fff; border-radius: 8px; width: 38px; height: 32px; }

/* order tracking */
.oxhd-result:empty { display: none; }
.oxhd-order { background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 12px; font-size: 13px; }
.oxhd-order__head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.oxhd-order__head span, .oxhd-order__meta { color: #6b6b6b; }
.oxhd-steps { list-style: none; display: flex; padding: 0; margin: 0 0 10px; counter-reset: s; }
.oxhd-steps li { flex: 1 1 0; text-align: center; font-size: 11px; color: #9a9a9a; position: relative; padding-top: 22px; }
.oxhd-steps li::before { content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: #e5e5e5; z-index: 1; }
.oxhd-steps li::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: #e5e5e5; }
.oxhd-steps li:first-child::after { display: none; }
.oxhd-steps li.is-done { color: #1a1a1a; font-weight: 600; }
.oxhd-steps li.is-done::before, .oxhd-steps li.is-done::after { background: var(--oxhd-color); }
.oxhd-items { list-style: none; padding: 0; margin: 10px 0; }
.oxhd-items li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #f2f2f2; }
.oxhd-items img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #f7f7f8; }
.oxhd-items span { flex: 1 1 auto; }
.oxhd-items small { color: #6b6b6b; }
.oxhd-track { display: flex; align-items: center; gap: 6px; margin-top: 6px; }

/* admin preview */
.oxhd--preview { position: absolute; }
.oxhd--preview .oxhd-panel { height: 540px; width: min(384px, calc(100vw - 80px)); }

@media (max-width: 480px) {
  .oxhd.is-open { inset: 0; }
  .oxhd.is-open .oxhd-launcher { display: none; }
  .oxhd.is-open .oxhd-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; bottom: 0; }
  .oxhd--preview.is-open { inset: auto; }
  .oxhd--preview.is-open .oxhd-panel { position: absolute; inset: auto; bottom: 72px; width: 340px; height: 560px; border-radius: var(--oxhd-radius); }
  .oxhd--preview.is-open .oxhd-launcher { display: inline-flex; }
}
@media (max-width: 767px) { .oxhd--hide-mobile { display: none !important; } }

/* ================================================================ campaign popup */
.oxhd-pop { --oxhd-c: #8b0000; --oxhd-bg: #fff; --oxhd-fg: #111; position: fixed; inset: 0; z-index: 2147483000; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px;
  font: 400 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Poppins, Helvetica, Arial, sans-serif; animation: oxhd-fade .2s ease-out; }
.oxhd-pop--preview { position: absolute; z-index: 1; }
@keyframes oxhd-fade { from { opacity: 0; } to { opacity: 1; } }
.oxhd-pop__card { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--oxhd-bg); color: var(--oxhd-fg); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px; align-items: center; }
.oxhd-pop__card--scratch { width: min(520px, 100%); grid-template-columns: 1fr; text-align: center; }
.oxhd-pop__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.06); color: inherit; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.oxhd-pop__x svg { width: 18px; height: 18px; }
.oxhd-pop__body h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; font-weight: 800; color: inherit; }
.oxhd-pop__body p { margin: 0 0 16px; opacity: .85; }
.oxhd-pop__form { display: flex; flex-direction: column; gap: 10px; }
.oxhd-pop__form[hidden] { display: none; }
.oxhd-pop__form input { border: 1px solid #d4d4d8; border-radius: 10px; padding: 12px 14px; font: inherit; width: 100%; background: #fff; color: #111; }
.oxhd-pop__form small { font-size: 11.5px; opacity: .7; }
.oxhd-pop__btn { border: 0; border-radius: 10px; background: var(--oxhd-c); color: #fff; font: inherit; font-weight: 700; padding: 13px 16px; cursor: pointer; text-transform: none; width: 100%; }
.oxhd-pop__btn:disabled { opacity: .6; }
.oxhd-pop__result[hidden] { display: none; }
.oxhd-pop__msg { font-size: 18px; font-weight: 700; margin: 0 0 12px !important; opacity: 1 !important; }
.oxhd-code { display: flex; border: 2px dashed var(--oxhd-c); border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.oxhd-code code { flex: 1 1 auto; padding: 12px; font: 700 18px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--oxhd-fg); background: transparent; text-align: center; }
.oxhd-code button { border: 0; background: var(--oxhd-c); color: #fff; font-weight: 700; padding: 0 16px; cursor: pointer; }
.oxhd-pop__result small { display: block; font-size: 12px; opacity: .75; margin-bottom: 12px; }
.oxhd-pop__done { margin-top: 6px; }
.oxhd-wheel { position: relative; width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 1; }
.oxhd-wheel canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.oxhd-wheel__pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--oxhd-fg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.oxhd-scratch { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 7 / 4; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--oxhd-c), #f5c518); }
.oxhd-scratch__prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 30px; font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.oxhd-scratch__prize svg { width: 40px; height: 40px; }
.oxhd-scratch.is-lose { background: linear-gradient(135deg, #6b7280, #9ca3af); }
.oxhd-scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.oxhd-scratch canvas.is-live { cursor: grab; }
@media (max-width: 640px) {
  .oxhd-pop__card { grid-template-columns: 1fr; padding: 20px; text-align: center; gap: 14px; }
  .oxhd-wheel { max-width: 250px; }
  .oxhd-pop__body h2 { font-size: 21px; }
}
/* admin preview sits in a narrow column */
.oxhd-pop--preview .oxhd-pop__card { grid-template-columns: 1fr; text-align: center; padding: 20px; gap: 14px; max-height: none; }
.oxhd-pop--preview .oxhd-wheel { max-width: 240px; }
.oxhd-pop--preview .oxhd-pop__body h2 { font-size: 20px; }
.oxhd-pop--preview { overflow-y: auto; place-items: start center; }
