/* ECHOLOGISTS currency presentation — v0.4.40 */

.eco-cs-price-with-code {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.42em;
  max-width: 100%;
  white-space: nowrap;
  vertical-align: baseline;
}

.eco-cs-price-value,
.eco-cs-price-value .woocommerce-Price-amount,
.eco-cs-price-value .woocommerce-Price-currencySymbol {
  display: inline !important;
  white-space: nowrap !important;
}

.eco-cs-price-code {
  color: var(--eco-text-dim, #829087);
  font-family: var(--eco-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
}

.eco-cs-currency-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 18px 0 24px;
  padding: 15px 17px;
  border: 1px solid rgba(74, 255, 145, 0.22);
  background:
    linear-gradient(135deg, rgba(74, 255, 145, 0.055), transparent 58%),
    rgba(10, 14, 11, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.eco-cs-currency-panel__status {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.eco-cs-currency-panel__status small {
  color: var(--eco-green, #4aff91);
  font-family: var(--eco-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eco-cs-currency-panel__status strong {
  color: var(--eco-text, #eef4ef);
  font-size: 14px;
  line-height: 1.35;
}

.eco-cs-currency-panel__status span {
  color: var(--eco-text-dim, #829087);
  font-size: 11px;
  line-height: 1.55;
}

.eco-cs-currency-panel__code {
  min-width: 70px;
  padding: 12px 14px;
  border: 1px solid rgba(74, 255, 145, 0.32);
  color: var(--eco-green, #4aff91);
  font-family: var(--eco-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
}

.eco-cs-currency-panel__switcher,
.eco-cs-currency-panel__switcher form,
.eco-cs-currency-panel__switcher .widget,
.eco-cs-currency-panel__switcher .wc-block-components-currency-switcher {
  margin: 0 !important;
}

.eco-cs-currency-panel__switcher select {
  min-width: 150px;
  min-height: 44px;
  padding: 8px 38px 8px 12px;
  border: 1px solid rgba(74, 255, 145, 0.34) !important;
  border-radius: 0 !important;
  background-color: #090d0a !important;
  color: #eef4ef !important;
  font-family: var(--eco-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

body.eco-cs-premium-commerce .eco-cs-currency-panel--woocommerce {
  width: min(100%, 1180px);
  margin: 0 auto 18px;
}

.eco-cs-premium-hero .eco-cs-currency-panel {
  grid-column: 1 / -1;
  margin: 4px 0 0;
}

.eco-cs-calendar-course-meta .eco-cs-price-with-code,
.eco-cs-calendar-course-popover-meta .eco-cs-price-with-code,
.eco-cs-calendar-review-card .eco-cs-price-with-code {
  justify-content: flex-end;
}

html[data-eco-theme="light"] .eco-cs-currency-panel {
  border-color: rgba(31, 90, 55, 0.26);
  background:
    linear-gradient(135deg, rgba(31, 90, 55, 0.075), transparent 58%),
    rgba(250, 252, 250, 0.94);
}

html[data-eco-theme="light"] .eco-cs-currency-panel__status strong {
  color: #111512;
}

html[data-eco-theme="light"] .eco-cs-currency-panel__status span,
html[data-eco-theme="light"] .eco-cs-price-code {
  color: #59645d;
}

html[data-eco-theme="light"] .eco-cs-currency-panel__switcher select {
  background-color: #ffffff !important;
  color: #111512 !important;
  border-color: rgba(31, 90, 55, 0.35) !important;
}

@media (max-width: 680px) {
  .eco-cs-currency-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .eco-cs-currency-panel__switcher select,
  .eco-cs-currency-panel__code {
    width: 100%;
  }
}


/* v0.4.40 — distinguish a configured engine from a base-currency-only store. */
.eco-cs-currency-panel.is-engine-active {
  border-color: rgba(74, 255, 145, .3);
}

.eco-cs-currency-panel.is-single-currency .eco-cs-currency-panel__code {
  border-style: dashed;
  opacity: .82;
}

html[data-eco-theme="light"] .eco-cs-currency-panel.is-engine-active {
  border-color: rgba(7, 92, 50, .32);
}
