/* main-info — the parts every view of the trust pages and 404 shares (template/blocks/main-info/_body.twig, _phones, _state, _hours, _store,
   _search): phones, the open state, the hours, the shop with its map plate, the e-mail, the form, delivery and payment rows, the owner's text,
   «Залишилися питання?», popular departments and products. Tokens only; the views (galley.css, pier.css, ledges.css, gist.css) set the scale. */
.et-trust { --et-trust-line: var(--et-border); --et-trust-muted: var(--et-text-secondary); color: var(--et-text); }
.et-trust h1, .et-trust h2, .et-trust h3, .et-trust p, .et-trust dl, .et-trust dd { margin: 0; }
.et-trust [role="list"] { margin: 0; padding: 0; list-style: none; }
.et-trust [id^="et-trust-"] { scroll-margin-top: calc(var(--et-sticky-top, 0px) + 1rem); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* grid children never widen their track to the content (a row of chips, a long e-mail): the page stays within 320 px */
.et-trust-galley__b > *, .et-trust-galley__col > *, .et-trust-pier__grid > *, .et-trust-pier__main > *, .et-trust-ledges__in > *, .et-trust-ledges__in-hd > *, .et-trust-galley__hd > *, .et-trust-pier__hd > *, .et-trust-gist__aw > * { min-width: 0; }
/* the side padding of .container (elbuz_theme.css): a strip that bleeds to the screen edge takes exactly it */
.et-trust { --et-trust-pad: calc(var(--et-gutter) * 0.375); }
@media (min-width: 768px) { .et-trust { --et-trust-pad: var(--et-gutter); } }
.et-trust__muted { color: var(--et-trust-muted); }

/* phones with the messengers of each number */
.et-trust__phones { display: grid; gap: 0.25rem; }
.et-trust__phones li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.875rem; }
.et-trust__tel { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: none; }
.et-trust__tel:hover { color: var(--et-accent); }
.et-trust__mail { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; color: inherit; font-weight: 600; overflow-wrap: anywhere; text-underline-offset: 0.25em; }

/* open state: a dot, «Зараз відчинено», «· до 20:00» (filled by _axes.js) */
.et-trust__state { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; }
.et-trust__state[hidden] { display: none; }
.et-trust__state i { flex: none; width: 0.625rem; height: 0.625rem; border-radius: var(--et-radius-full); background: currentColor; opacity: 0.5; }
.et-trust__state.is-on i { background: var(--et-success); opacity: 1; box-shadow: 0 0 0 0.25rem color-mix(in oklab, var(--et-success) 25%, transparent); }

/* hours: days | time, today in bold */
.et-trust__hours { display: grid; gap: 0.125rem; max-width: 26rem; font-variant-numeric: tabular-nums; }
.et-trust__hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.375rem 0; }
.et-trust__hours dt { color: var(--et-trust-muted); }
.et-trust__hours dd { font-weight: 600; text-align: right; }
.et-trust__hours .is-off dd { color: var(--et-trust-muted); font-weight: 400; }
.et-trust__hours .is-now dt, .et-trust__hours .is-now dd { color: inherit; font-weight: 700; }

/* a shop: the text, the hours, the map plate (a link: a field with a grid, a pin, the coordinates), the route */
.et-trust__store { display: grid; gap: 0.75rem; }
.et-trust__store + .et-trust__store { margin-top: 1.5rem; padding-top: 1.5rem; border-top: var(--et-border-width, 1px) solid var(--et-trust-line); }
.et-trust__store-n { font-family: var(--et-font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.et-trust__store-a { color: var(--et-trust-muted); }
.et-trust__map {
  position: relative; display: block; min-width: 0; max-width: 100%; min-height: 12.5rem; overflow: hidden; isolation: isolate; border-radius: var(--et-media-radius, var(--et-radius));
  background: color-mix(in oklab, var(--et-accent) 7%, var(--et-surface)); color: var(--et-text); text-decoration: none;
}
.et-trust__map-f {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--et-accent) 30%, transparent) 0 6%, transparent 6.5% 14%, color-mix(in oklab, var(--et-accent) 16%, transparent) 14.3% 14.8%, transparent 15% 26%, color-mix(in oklab, var(--et-accent) 12%, transparent) 26.3% 26.7%, transparent 27%),
    repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in oklab, var(--et-text) 7%, transparent) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 47px, color-mix(in oklab, var(--et-text) 7%, transparent) 47px 48px);
}
.et-trust__map-pin {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; translate: -50% -88%; rotate: -45deg;
  border-radius: 50% 50% 50% 0.25rem; background: var(--et-accent); color: var(--et-accent-contrast);
  box-shadow: 0 0.5rem 1.25rem color-mix(in oklab, var(--et-accent) 40%, transparent);
}
.et-trust__map-pin i { rotate: 45deg; font-size: 1.25rem; }
.et-trust__map-geo { position: absolute; left: 0.875rem; top: 0.75rem; color: var(--et-trust-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.et-trust__map-go {
  position: absolute; right: 0.625rem; bottom: 0.625rem; display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.5rem; padding: 0 0.875rem;
  border-radius: var(--et-radius-full); background: var(--et-surface); box-shadow: var(--et-shadow-sm); font-size: 0.875rem; font-weight: 600;
}
.et-trust__map:hover .et-trust__map-go, .et-trust__map:focus-visible .et-trust__map-go { background: var(--et-text); color: var(--et-bg); }

/* the form */
.et-trust__form { display: grid; gap: 1rem; max-width: 40rem; margin-top: 0.75rem; }
.et-trust__form .et-field__error:empty { display: none; }
.et-trust__form .et-field__label { color: var(--et-text-secondary); font-weight: 600; } /* the theme label is --et-text-muted (2.5:1 on white) */
.et-trust__send { justify-self: start; }

/* delivery rows «method — price» under the carrier, payment rows with the module's note */
.et-trust__sg + .et-trust__sg { margin-top: 1.75rem; }
.et-trust__pay + .et-trust__sg { margin-top: 1.75rem; }
.et-trust__sg-h { margin-bottom: 0.5rem !important; font-family: var(--et-font-display); font-size: 1.125rem; font-weight: 600; }
.et-trust__ship li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.25rem; padding: 0.875rem 0; border-top: var(--et-border-width, 1px) solid var(--et-trust-line); }
.et-trust__ship li:last-child { border-bottom: var(--et-border-width, 1px) solid var(--et-trust-line); }
.et-trust__ship-n { display: grid; gap: 0.125rem; min-width: 0; overflow-wrap: break-word; }
.et-trust__ship-n small { color: var(--et-trust-muted); font-size: 0.875rem; }
.et-trust__ship-p { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.et-trust__ship .is-free .et-trust__ship-p { color: var(--et-success); }
.et-trust__pay li { display: grid; gap: 0.125rem; padding: 0.75rem 0; border-top: var(--et-border-width, 1px) solid var(--et-trust-line); }
.et-trust__pay span { color: var(--et-trust-muted); font-size: 0.9375rem; }

/* the owner's text */
.et-trust__text { max-width: 68ch; font-size: 1.0625rem; line-height: 1.7; overflow-wrap: break-word; }
.et-trust__text > * + * { margin-top: 1em; }
.et-trust__text ul, .et-trust__text ol { display: grid; gap: 0.4em; padding-left: 1.3em; }
.et-trust__text a { color: var(--et-accent-text, var(--et-accent)); text-decoration: underline; text-underline-offset: 0.2em; }
.et-trust__text h3 { font-family: var(--et-font-display); font-size: 1.1875rem; }
.et-trust__text table { width: 100%; border-collapse: collapse; }
.et-trust__text td, .et-trust__text th { padding: 0.5rem; border: var(--et-border-width, 1px) solid var(--et-trust-line); text-align: left; }

/* «Залишилися питання?» */
.et-trust__ask { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }

/* 404: search, popular departments (photo, name, number), products (the design's card) */
.et-trust__search { display: flex; max-width: 40rem; border: 2px solid currentColor; border-radius: var(--et-input-radius, var(--et-radius-full)); background: var(--et-surface); color: var(--et-text); }
.et-trust__search:focus-within { border-color: var(--et-accent); box-shadow: 0 0 0 0.25rem color-mix(in oklab, var(--et-accent) 22%, transparent); }
.et-trust__search input { flex: 1; min-width: 0; min-height: 3.5rem; padding: 0 1.375rem; border: 0; background: none; color: inherit; font: inherit; font-size: 1.0625rem; outline: none; }
.et-trust__search-go { display: grid; place-items: center; min-width: 3.5rem; border: 0; background: none; color: inherit; font-size: 1.125rem; cursor: pointer; }
.et-trust__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.25rem 1rem; }
.et-trust__cats a {
  display: grid; grid-template-columns: 3.5rem 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 0.875rem; min-height: 4.5rem; padding: 0.5rem;
  border-radius: var(--et-radius); color: inherit; text-decoration: none;
}
.et-trust__cats a:hover { background: var(--et-surface-2); }
.et-trust__cats img, .et-trust__cats-i { grid-row: 1 / 3; width: 3.5rem; height: 3.5rem; padding: 0.25rem; border-radius: var(--et-radius-sm); background: var(--et-surface-2); object-fit: contain; }
.et-trust__cats b { align-self: end; line-height: 1.25; }
.et-trust__cats span { align-self: start; color: var(--et-trust-muted); font-size: 0.875rem; }
.et-trust__hits { margin: 0; }
.et-trust__hit { min-width: 0; }

/* default («Звичайний»): 404 — the search, departments and products under the message (_default-notfound.twig); an information page — the
   contents is a fold, on a phone under the heading (_default-info.twig) */
.et-trust-404 > .container { display: grid; gap: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.et-trust-404__sf { justify-self: center; width: 100%; }
.et-trust-404__s .et-product-section__title { margin-bottom: 1rem; }
.et-content-toc > summary { cursor: pointer; list-style: none; }
.et-content-toc > summary::-webkit-details-marker { display: none; }
.et-content-toc:not([open]) > summary { margin-bottom: 0; }
.et-content-toc > summary::after { content: "+"; margin-left: auto; color: var(--et-text-secondary); }
.et-content-toc[open] > summary::after { content: "\2212"; }
.et-content__title + .et-content-toc { margin-block: 0 1.25rem; }
