/* FirstShield Medicine Finder. Inherits theme fonts; colours fall back if the theme changes. */
.fs-mf {
  --mf-ink: var(--wp--preset--color--ink, #022E47);
  --mf-blue: var(--wp--preset--color--primary, #1F6FD1);
  --mf-red: var(--wp--preset--color--accent, #E23D4F);
  --mf-line: var(--wp--preset--color--line, #E2E8F0);
  --mf-muted: var(--wp--preset--color--muted, #5B6B7C);
  --mf-green: #0E8A6A;
  position: relative;
  font-size: 1rem;
}
.fs-mf * { box-sizing: border-box; }
/* Family only: a `font: inherit` shorthand here outranked each button's own size and weight. */
.fs-mf button { font-family: inherit; cursor: pointer; }

/* Search box */
.fs-mf__search { position: relative; margin: 0; }
.fs-mf__search-icon { position: absolute; left: 1.1rem; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--mf-muted); pointer-events: none; }
.fs-mf__input {
  width: 100%; height: 62px; padding: 0 3.2rem 0 3.25rem; border-radius: 18px;
  border: 1.5px solid var(--mf-line); background: #fff; color: var(--mf-ink);
  font: 500 1.05rem/1 inherit; font-family: inherit; outline: none;
  box-shadow: 0 10px 30px -16px rgba(2,46,71,.35); transition: border-color .2s, box-shadow .2s;
}
.fs-mf__input:focus { border-color: var(--mf-blue); box-shadow: 0 0 0 5px rgba(31,111,209,.15), 0 10px 30px -16px rgba(2,46,71,.35); }
.fs-mf__input::-webkit-search-cancel-button { display: none; }
/* Loading indicator: the FirstShield shield turning (rendered from the 3D logo). */
.fs-mf__spinner { position: absolute; right: 1rem; top: 50%; width: 36px; height: 36px; margin-top: -18px; background: url(shield-spin.webp) center / contain no-repeat; opacity: 0; transition: opacity .2s; pointer-events: none; }
.fs-mf.is-loading .fs-mf__spinner { opacity: 1; }
.fs-mf__shield { display: inline-block; width: 26px; height: 26px; vertical-align: middle; background: url(shield-spin.webp) center / contain no-repeat; flex: none; }
.fs-mf__loading { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.fs-mf__searching { font-weight: 600; }
.fs-mf__searching .fs-mf__shield { width: 40px; height: 40px; }
/* The input already shows the shield; don't show two at once. */
.fs-mf.is-loading:has(.fs-mf__searching) .fs-mf__spinner { opacity: 0; }
.fs-mf__submit.is-busy svg { display: none; }
.fs-mf__submit.is-busy::before { content: ""; width: 26px; height: 26px; background: url(shield-spin.webp) center / contain no-repeat; }

.fs-mf__hint { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .8rem 0 0; font-size: .85rem; color: var(--mf-muted); }
.fs-mf__hint button { border: 1px solid var(--mf-line); background: #fff; color: var(--mf-ink); border-radius: 999px; padding: .3rem .75rem; font-size: .82rem; }
.fs-mf__hint button:hover { border-color: var(--mf-blue); color: var(--mf-blue); }

/* Results */
.fs-mf__results:empty { display: none; }
.fs-mf__results { margin-top: 1rem; }
.fs-mf__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fs-mf__result {
  display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem;
  background: #fff; border: 1px solid var(--mf-line); border-radius: 16px;
  animation: fs-mf-in .35s cubic-bezier(.2,.7,.2,1) both;
}
.fs-mf__result:nth-child(2) { animation-delay: .03s; } .fs-mf__result:nth-child(3) { animation-delay: .06s; } .fs-mf__result:nth-child(4) { animation-delay: .09s; }
@keyframes fs-mf-in { from { opacity: 0; transform: translateY(6px); } }
.fs-mf__info { min-width: 0; }
.fs-mf__name { font-weight: 700; color: var(--mf-ink); line-height: 1.3; font-family: var(--wp--preset--font-family--display, inherit); }
.fs-mf__meta { font-size: .82rem; color: var(--mf-muted); margin-top: .15rem; }
.fs-mf__comp { font-size: .8rem; color: var(--mf-muted); margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36ch; }
.fs-mf__tag { display: inline-block; vertical-align: 2px; margin-left: .3rem; padding: .05rem .4rem; border-radius: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.fs-mf__tag--rx { background: #FDECEE; color: #B3243A; }
.fs-mf__avail { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; font-size: .76rem; font-weight: 600; }
.fs-mf__avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fs-mf__avail.is-yes { color: var(--mf-green); }
.fs-mf__avail.is-no { color: #B26B00; }
.fs-mf__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: .5rem; flex-shrink: 0; text-align: right; }
.fs-mf__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.fs-mf__est { font-weight: 800; font-size: 1.05rem; color: var(--mf-ink); font-family: var(--wp--preset--font-family--display, inherit); }
.fs-mf__price s { font-size: .78rem; color: var(--mf-muted); }
.fs-mf__off { font-size: .74rem; font-weight: 700; color: var(--mf-green); }
.fs-mf__off--muted { color: var(--mf-muted); font-weight: 500; }
.fs-mf__add { border: 0; border-radius: 999px; padding: .45rem 1rem; background: var(--mf-ink); color: #fff; font-weight: 700; font-size: .82rem; transition: background .2s, transform .2s; }
.fs-mf__add:hover { background: var(--mf-blue); transform: translateY(-1px); }
.fs-mf__add:disabled { background: #E6F4F1; color: var(--mf-green); cursor: default; transform: none; }
.fs-mf__empty { margin: .8rem 0 0; font-size: .88rem; color: var(--mf-muted); }
.fs-mf__add-typed { border: 0; background: none; padding: 0; font-size: inherit; color: var(--mf-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Compact (hero) variant sits on a dark glass panel */
.fs-mf--compact .fs-mf__input { height: 58px; border-color: transparent; }
.fs-mf--compact .fs-mf__hint { color: #A9C0D6; }
.fs-mf--compact .fs-mf__hint button { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #E6EEF6; }
.fs-mf--compact .fs-mf__hint button:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.fs-mf--compact .fs-mf__result { border-color: transparent; }
.fs-mf--compact .fs-mf__comp { max-width: 24ch; }
.fs-mf--compact .fs-mf__empty { color: #A9C0D6; }
.fs-mf--compact .fs-mf__add-typed { color: #9FCBFF; }
.fs-mf__go { display: flex; justify-content: center; margin-top: .9rem; padding: .85rem 1rem; border-radius: 14px; background: var(--mf-red); color: #fff !important; font-weight: 700; text-decoration: none !important; box-shadow: 0 12px 24px -12px rgba(226,61,79,.8); }
.fs-mf__go[hidden] { display: none; }

/* Request list + form (full mode) */
.fs-mf__basket { margin-top: 1.5rem; padding: 1.5rem; border-radius: 24px; background: #fff; border: 1px solid var(--mf-line); box-shadow: 0 2px 4px rgba(2,46,71,.06), 0 24px 48px -16px rgba(2,46,71,.2); }
.fs-mf__basket[hidden], .fs-mf__done[hidden] { display: none; }
.fs-mf__basket-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .75rem; }
.fs-mf__basket-head h3 { margin: 0; font-size: 1.25rem; }
.fs-mf__count { font-size: .85rem; color: var(--mf-muted); }
.fs-mf__items { list-style: none; margin: 0; padding: 0; }
.fs-mf__item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--mf-line); }
.fs-mf__qty { display: inline-flex; align-items: center; border: 1px solid var(--mf-line); border-radius: 999px; overflow: hidden; }
.fs-mf__qty button { width: 32px; height: 32px; border: 0; background: #fff; color: var(--mf-ink); font-size: 1rem; }
.fs-mf__qty button:hover { background: #F5F8FB; }
.fs-mf__qty span { min-width: 28px; text-align: center; font-weight: 700; font-size: .9rem; }
.fs-mf__remove { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--mf-muted); font-size: 1.3rem; line-height: 1; }
.fs-mf__remove:hover { background: #FDECEE; color: var(--mf-red); }
.fs-mf__add-free { margin: .9rem 0 1.2rem; border: 1px dashed var(--mf-line); background: none; border-radius: 12px; width: 100%; padding: .7rem; color: var(--mf-blue); font-weight: 600; font-size: .9rem; }
.fs-mf__add-free:hover { border-color: var(--mf-blue); background: #F5F9FE; }
.fs-mf__form { display: grid; gap: .9rem; }
.fs-mf__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.fs-mf__form label { display: grid; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--mf-ink); }
.fs-mf__form input, .fs-mf__form select, .fs-mf__form textarea {
  width: 100%; padding: .8rem .9rem; border-radius: 12px; border: 1.5px solid var(--mf-line); background: #fff;
  font: 400 1rem/1.4 inherit; font-family: inherit; color: var(--mf-ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.fs-mf__form input:focus, .fs-mf__form select:focus, .fs-mf__form textarea:focus { border-color: var(--mf-blue); box-shadow: 0 0 0 4px rgba(31,111,209,.12); }
.fs-mf__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.fs-mf__error { margin: 0; color: #B3243A; font-size: .88rem; font-weight: 600; }
.fs-mf__error:empty { display: none; }
.fs-mf__submit { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 54px; border: 0; border-radius: 14px; padding: .9rem 1.5rem; background: var(--mf-red); color: #fff; font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; box-shadow: 0 1px 2px rgba(179,36,58,.3), 0 8px 18px -10px rgba(226,61,79,.7); transition: transform .2s, background .2s, box-shadow .2s; font-family: var(--wp--preset--font-family--display, inherit); }
.fs-mf__submit svg { width: 18px; height: 18px; transition: transform .2s; }
.fs-mf__submit:hover { background: #C92E40; box-shadow: 0 1px 2px rgba(179,36,58,.3), 0 12px 22px -10px rgba(226,61,79,.75); }
.fs-mf__submit:hover svg { transform: translateX(3px); }
.fs-mf__submit:disabled { opacity: .7; transform: none; }
.fs-mf__fine { margin: 0; font-size: .78rem; color: var(--mf-muted); }

.fs-mf__done { margin-top: 1rem; padding: 2.5rem 1.5rem; text-align: center; border-radius: 24px; background: linear-gradient(180deg, #E6F4F1, #fff); border: 1px solid #CBE9E1; }
.fs-mf__done-icon { width: 64px; height: 64px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--mf-green); color: #fff; font-size: 1.8rem; font-weight: 800; box-shadow: 0 0 0 10px rgba(14,138,106,.12); }
.fs-mf__done h3 { margin: 0 0 .5rem; }
.fs-mf__done p { color: var(--mf-muted); max-width: 32rem; margin: .5rem auto; }
.fs-mf__wa { display: inline-flex; margin-top: .5rem; padding: .75rem 1.25rem; border-radius: 999px; background: #1FAF5A; color: #fff !important; font-weight: 700; text-decoration: none !important; }

@media (max-width: 600px) {
  .fs-mf__row { grid-template-columns: 1fr; }
  .fs-mf__result { flex-direction: column; gap: .6rem; }
  .fs-mf__side { flex-direction: row; align-items: center; text-align: left; }
  .fs-mf__price { align-items: flex-start; }
  .fs-mf__comp { max-width: 100%; white-space: normal; }
  .fs-mf__basket { padding: 1.1rem; }
}

/* Fulfilment choice */
.fs-mf__choice { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.fs-mf__choice legend { grid-column: 1 / -1; font-size: .82rem; font-weight: 600; color: var(--mf-ink); margin: 0 0 .1rem; padding: 0; float: left; width: 100%; }
.fs-mf__form .fs-mf__opt { position: relative; display: block; cursor: pointer; margin: 0; font-weight: 400; }
.fs-mf__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fs-mf__opt-card { display: flex; align-items: center; gap: .85rem; height: 100%; padding: .9rem 1rem; border: 1.5px solid var(--mf-line); border-radius: 16px; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.fs-mf__opt:hover .fs-mf__opt-card { border-color: #B9CCE4; }
.fs-mf__opt-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #F1F5F9; color: var(--mf-muted); transition: background .2s, color .2s; }
.fs-mf__opt-icon svg { width: 22px; height: 22px; }
.fs-mf__opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; line-height: 1.25; }
.fs-mf__opt-text b { font-size: .95rem; font-weight: 700; color: var(--mf-ink); }
.fs-mf__opt-text small { font-size: .78rem; color: var(--mf-muted); }
.fs-mf__opt-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #CBD5E1; background: #fff; transition: border-color .2s, box-shadow .2s; }
.fs-mf__opt input:checked + .fs-mf__opt-card { border-color: var(--mf-blue); background: #F5F9FF; box-shadow: 0 0 0 4px rgba(31,111,209,.10); }
.fs-mf__opt input:checked + .fs-mf__opt-card .fs-mf__opt-icon { background: var(--mf-blue); color: #fff; }
.fs-mf__opt input:checked + .fs-mf__opt-card .fs-mf__opt-radio { border-color: var(--mf-blue); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--mf-blue); }
.fs-mf__opt input:focus-visible + .fs-mf__opt-card { outline: 2px solid var(--mf-blue); outline-offset: 2px; }
.fs-mf__pickup[hidden], .fs-mf__delivery[hidden], .fs-mf__rx[hidden] { display: none; }
.fs-mf__delivery { display: grid; gap: .9rem; }
.fs-mf__zone { margin: -.3rem 0 0; font-size: .82rem; font-weight: 600; }
.fs-mf__zone:empty { display: none; }
.fs-mf__zone.is-ok { color: var(--mf-green); }
.fs-mf__zone.is-no { color: #B3243A; }

/* Prescription */
.fs-mf__rx { display: grid; gap: .6rem; padding: 1rem; border-radius: 14px; background: #FFF7F8; border: 1px solid #F6D3D9; }
.fs-mf__rx-title { margin: 0; font-weight: 700; color: var(--mf-ink); font-size: .92rem; }
.fs-mf__rx-title .fs-mf__tag { margin: 0 .35rem 0 0; }
.fs-mf__form .fs-mf__upload { position: relative; display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .9rem 1rem; border: 1.5px dashed #E8A7B2; border-radius: 14px; background: #fff; color: #B3243A; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.fs-mf__upload svg { flex: none; width: 26px; height: 26px; }
.fs-mf__upload span { display: flex; flex-direction: column; line-height: 1.25; }
.fs-mf__upload b { font-size: .92rem; }
.fs-mf__upload small { font-size: .78rem; font-weight: 400; color: #9A5260; }
.fs-mf__form .fs-mf__upload:hover { background: #FFFBFB; }
.fs-mf__upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fs-mf__upload:hover { border-color: var(--mf-red); }
.fs-mf__files { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .85rem; }
.fs-mf__files:empty { display: none; }
.fs-mf__files li { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; background: #fff; border-radius: 8px; border: 1px solid var(--mf-line); }
.fs-mf__files small { color: var(--mf-muted); }
.fs-mf__files button { margin-left: auto; border: 0; background: none; color: var(--mf-muted); font-size: 1.1rem; }
.fs-mf__form .fs-mf__check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 500; font-size: .85rem; cursor: pointer; }
.fs-mf__form .fs-mf__check input { flex: none; width: 18px; height: 18px; margin: .1rem 0 0; padding: 0; accent-color: var(--mf-blue); }
.fs-mf__done-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.fs-mf__track-btn { display: inline-flex; margin-top: .5rem; padding: .75rem 1.25rem; border-radius: 999px; background: var(--mf-ink); color: #fff !important; font-weight: 700; text-decoration: none !important; }

/* Order tracking */
.fs-track { --mf-ink: var(--wp--preset--color--ink, #022E47); --mf-blue: var(--wp--preset--color--primary, #1F6FD1); --mf-line: var(--wp--preset--color--line, #E2E8F0); --mf-muted: var(--wp--preset--color--muted, #5B6B7C); --mf-green: #0E8A6A; }
.fs-track__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .75rem; align-items: end; padding: 1.25rem; border-radius: 20px; background: #fff; border: 1px solid var(--mf-line); box-shadow: 0 2px 4px rgba(2,46,71,.06), 0 18px 40px -18px rgba(2,46,71,.2); }
.fs-track__form label { display: grid; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--mf-ink); }
.fs-track__form input { padding: .8rem .9rem; border-radius: 12px; border: 1.5px solid var(--mf-line); font: inherit; outline: none; }
.fs-track__form input:focus { border-color: var(--mf-blue); box-shadow: 0 0 0 4px rgba(31,111,209,.12); }
.fs-track__form button { border: 0; border-radius: 999px; padding: .85rem 1.4rem; background: var(--mf-ink); color: #fff; font-weight: 700; cursor: pointer; font-family: inherit; }
.fs-track .fs-mf__error { margin: .8rem 0 0; color: #B3243A; font-weight: 600; font-size: .9rem; }
.fs-track .fs-mf__error:empty { display: none; }
.fs-track__card { margin-top: 1.25rem; padding: 1.5rem; border-radius: 20px; background: #fff; border: 1px solid var(--mf-line); }
.fs-track__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.fs-track__head h3 { margin: .1rem 0 0; }
.fs-track__status { padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #E7F0FB; color: var(--mf-blue); white-space: nowrap; }
.fs-track__status.is-completed { background: #E6F4F1; color: var(--mf-green); }
.fs-track__status.is-cancelled { background: #FDECEE; color: #B3243A; }
.fs-track__steps { list-style: none; margin: 1.5rem 0; padding: 0; position: relative; }
.fs-track__steps li { position: relative; padding: 0 0 1.25rem 2rem; display: flex; flex-direction: column; color: var(--mf-muted); }
.fs-track__steps li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--mf-line); background: #fff; }
.fs-track__steps li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 1.2rem; bottom: 0; width: 2px; background: var(--mf-line); transform: translateX(-1px); }
.fs-track__steps li.is-done { color: var(--mf-ink); }
.fs-track__steps li.is-done::before { background: var(--mf-green); border-color: var(--mf-green); }
.fs-track__steps li.is-done::after { background: var(--mf-green); }
.fs-track__steps li.is-next::before { border-color: var(--mf-blue); box-shadow: 0 0 0 4px rgba(31,111,209,.15); }
.fs-track__steps li.is-cancelled { color: #B3243A; }
.fs-track__steps li.is-cancelled::before { background: #E23D4F; border-color: #E23D4F; }
.fs-track__steps small { font-size: .78rem; color: var(--mf-muted); }
.fs-track__items ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.fs-track__items li { margin: .2rem 0; }
@media (max-width: 600px) {
  .fs-mf__choice { grid-template-columns: 1fr; }
  .fs-track__form { grid-template-columns: 1fr; }
}

/* Prescription: how it reaches us */
.fs-mf__rxopts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.fs-mf__opt--sm .fs-mf__opt-card { flex-direction: column; align-items: flex-start; gap: .55rem; padding: .8rem .85rem; position: relative; }
.fs-mf__opt--sm .fs-mf__opt-icon { width: 36px; height: 36px; border-radius: 10px; }
.fs-mf__opt--sm .fs-mf__opt-icon svg { width: 20px; height: 20px; }
.fs-mf__opt--sm .fs-mf__opt-radio { position: absolute; top: .8rem; right: .8rem; width: 18px; height: 18px; }
.fs-mf__opt--sm .fs-mf__opt-text b { font-size: .88rem; }
.fs-mf__opt--sm input:checked + .fs-mf__opt-card { border-color: #E23D4F; background: #fff; box-shadow: 0 0 0 4px rgba(226,61,79,.10); }
.fs-mf__opt--sm input:checked + .fs-mf__opt-card .fs-mf__opt-icon { background: #E23D4F; color: #fff; }
.fs-mf__opt--sm input:checked + .fs-mf__opt-card .fs-mf__opt-icon--whatsapp { background: #1FAF5A; }
.fs-mf__opt--sm input:checked + .fs-mf__opt-card .fs-mf__opt-radio { border-color: #E23D4F; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px #E23D4F; }
.fs-mf__rx-upload { display: grid; gap: .5rem; }
.fs-mf__rx-upload[hidden], .fs-mf__rx-note[hidden] { display: none; }
.fs-mf__rx-note { margin: 0; font-size: .85rem; color: #7A3341; line-height: 1.45; }
.fs-mf__rx-send { margin: 1.25rem auto .5rem; max-width: 30rem; padding: 1rem 1.25rem; border-radius: 16px; background: #EAF8EF; border: 1px solid #BFE7CD; }
.fs-mf__rx-send p { margin: 0 0 .75rem; color: #145A32; }
.fs-mf__wa--big { display: flex !important; justify-content: center; margin: 0 !important; padding: .9rem 1.25rem !important; font-size: 1rem; }
@media (max-width: 600px) {
  .fs-mf__rxopts { grid-template-columns: 1fr; }
  .fs-mf__opt--sm .fs-mf__opt-card { flex-direction: row; align-items: center; }
  .fs-mf__opt--sm .fs-mf__opt-radio { position: static; margin-left: auto; }
}
