/* Estimate Shipping Product 2.0 - the few rules on top of ocmod-ui 1.2.
   Author: mstkalenko, https://ocmod.net
   Colours, sizes and corners are variables of the library, matched to the theme. */
.ocmod-estimate { margin-top: var(--ocm-gap); }
.ocmod-estimate .ocmod-estimate__list { margin: 0; border: 0; border-radius: 0; }
.ocmod-estimate .ocm-block__aside { min-width: 0; }

.ocmod-estimate .ocmod-estimate__where {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ocm-link);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}
.ocmod-estimate .ocmod-estimate__where:hover .ocmod-estimate__city { text-decoration: underline; }
.ocmod-estimate .ocmod-estimate__where:focus-visible { outline: 2px solid var(--ocm-accent-dark); outline-offset: 2px; }
.ocmod-estimate .ocmod-estimate__where .ocm-icon { flex: none; width: 16px; height: 16px; }
.ocmod-estimate__city { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ocmod-estimate__place[hidden],
.ocmod-estimate__foot[hidden],
.ocmod-estimate__row[hidden] { display: none; }
.ocmod-estimate__place { border-bottom: 1px solid var(--ocm-line); }

.ocmod-estimate__row .ocm-list__main { flex: 1 1 auto; }
.ocmod-estimate { --ocmod-estimate-w: 36px; --ocmod-estimate-h: 36px; }
.ocmod-estimate__logo { flex: none; width: var(--ocmod-estimate-w); height: var(--ocmod-estimate-h); object-fit: contain; }
.ocmod-estimate__row .ocm-list__icon { flex: none; }
.ocmod-estimate__term { flex: 0 0 auto; min-width: 7.5em; color: var(--ocm-text); }
.ocmod-estimate__price { min-width: 6em; color: var(--ocm-ink); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ocmod-estimate__price.ocm-good { color: var(--ocm-good); }

.ocmod-estimate__wait { color: var(--ocm-muted); min-height: 61px; }
.ocmod-estimate__wait .ocm-icon { flex: none; width: 18px; height: 18px; }
.ocmod-estimate.is-busy .ocmod-estimate__row { color: var(--ocm-muted); }

.ocmod-estimate__note { margin: 0; padding: 0 var(--ocm-pad) var(--ocm-gap); color: var(--ocm-muted); font-size: max(12px, var(--ocm-fs-sm)); }

/* a narrow column or a phone: the term goes under the name, the price stays on the right */
@container ocm-block (max-width: 440px) {
  .ocmod-estimate__row { flex-wrap: wrap; row-gap: 2px; }
  .ocmod-estimate__row .ocm-list__main { flex: 1 1 0; }
  .ocmod-estimate__term { order: 3; flex: 1 0 100%; min-width: 0; padding-left: calc(var(--ocmod-estimate-w) + var(--ocm-gap)); }
  .ocmod-estimate__term:empty { display: none; }
  .ocmod-estimate__price { min-width: 0; }
}
