/* TryyCart Display Currency 1.2.3 — one visible currency, one source owner. */

/* Sale/comparison markup may remain in cached theme or WooCommerce HTML, but
   only the current selling price is presented to the customer. These selectors
   are deliberately limited to known product-price containers. */
.price-row > del,
.modal-price > del,
.woocommerce div.product p.price > del,
.woocommerce div.product span.price > del,
.woocommerce ul.products li.product .price > del,
.wc-block-grid__product-price > del,
.wc-block-components-product-price > del {
  display: none !important;
}

.woocommerce div.product p.price > ins,
.woocommerce div.product span.price > ins,
.woocommerce ul.products li.product .price > ins,
.wc-block-grid__product-price > ins,
.wc-block-components-product-price > ins {
  text-decoration: none !important;
}

.tc-display-price,
.tc-display-amount {
  color: inherit;
  font: inherit;
}

.tc-display-price {
  display: inline;
  white-space: nowrap;
}

/* Dynamic React and service prices keep their original INR text in the DOM so
   framework state remains untouched. Only one selected amount paints. */
.tc-display-decorated {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.tc-display-decorated > * {
  display: none !important;
}

.tc-display-decorated::before {
  display: inline !important;
  color: var(--tc-display-original-color, #17233a) !important;
  content: attr(data-tc-display-value);
  font-family: inherit;
  font-size: max(var(--tc-display-original-size, 1rem), 0.6875rem) !important;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: var(--tc-display-original-leading, 1.25) !important;
  text-decoration: inherit;
  white-space: nowrap;
}

.tc-display-inline-text::before {
  white-space: normal;
}

del.tc-display-decorated::before,
del .tc-display-price {
  text-decoration: line-through;
}

.tc-currency-selector {
  box-sizing: border-box;
  color: #0b2345;
  font-family: inherit;
}

.tc-currency-selector label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: inherit;
  font-weight: 750;
}

.tc-currency-selector select {
  min-height: 36px;
  max-width: 180px;
  margin: 0;
  padding: 0.35rem 2rem 0.35rem 0.65rem;
  border: 1px solid #8da7c3;
  border-radius: 10px;
  background-color: #fff;
  color: #0b2345;
  font: 800 0.78rem/1.2 inherit;
}

.tc-currency-selector > small {
  display: block;
  margin-top: 0.2rem;
  color: #435a75;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: right;
}

.tc-currency-selector-floating {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 90;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(108, 132, 163, 0.48);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.96);
  box-shadow: 0 12px 32px rgba(8, 31, 66, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Shared-header placement is deliberately text-only: no legacy currency icon. */
.tc-currency-selector-header {
  position: static;
  inset: auto;
  z-index: auto;
  display: inline-flex;
  height: 28px;
  min-height: 28px;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.tc-site-chrome .tc-currency-selector-header label {
  position: relative;
  display: inline-flex;
  width: auto;
  min-width: 0;
  height: 28px;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.tc-currency-selector-header label::before {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  content: none !important;
}

.tc-currency-selector-header label::after {
  position: absolute;
  top: 50%;
  right: 7px;
  color: rgba(255, 255, 255, 0.94);
  content: "⌄";
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-58%);
  transition: transform 160ms ease;
}

.tc-currency-selector-header label > span,
.tc-currency-selector-header > small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.tc-currency-selector-header select {
  appearance: none;
  width: 58px;
  height: 28px;
  min-height: 28px;
  max-width: 58px;
  margin: 0;
  padding: 0 17px 0 8px;
  border-color: rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 28px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tc-currency-selector-header:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.tc-currency-selector-header:active {
  transform: translateY(0) scale(0.97);
}

.tc-currency-selector-header:focus-within label::after {
  transform: translateY(-42%) rotate(180deg);
}

.tc-currency-selector-header select:hover,
.tc-currency-selector-header select:focus-visible {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.24);
  outline: 2px solid rgba(255, 255, 255, 0.30);
  outline-offset: 1px;
}

.tc-currency-selector-header select option {
  background: #fff;
  color: #0b2345;
}

.tc-inr-payment-notice {
  margin: 0.8rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid #a8bfd9;
  border-left: 4px solid #2164db;
  border-radius: 9px;
  background: #eef6ff;
  color: #173859;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 782px) {
  .tc-currency-selector-floating:not(.tc-currency-selector-header) {
    right: 12px;
    bottom: 72px;
    padding: 0.42rem 0.5rem;
  }

  .tc-currency-selector-floating:not(.tc-currency-selector-header) label > span,
  .tc-currency-selector-floating:not(.tc-currency-selector-header) > small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .tc-currency-selector-floating:not(.tc-currency-selector-header) select {
    width: 88px;
    max-width: 88px;
  }

  .tc-currency-selector-header select {
    width: 56px;
    max-width: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-currency-selector-header,
  .tc-currency-selector-header label::after,
  .tc-currency-selector-header select {
    transition: none;
  }
}

@media print {
  .tc-currency-selector {
    display: none !important;
  }
}
