/* Fallbacks: style.css does not define these tokens; keeps legacy .converter-* rules valid. */
:root {
  --surface: #ffffff;
  --muted: #5a6578;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 35, 70, 0.08);
}

.converter-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.converter-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.converter-form input {
  width: 100%;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
}

.amount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.currency-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d7e0ea;
  background: #f7fbff;
  font-weight: 700;
}

.currencies {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-weight: 700;
}

.result-line {
  margin: 12px 0 8px;
  font-size: 1.4rem;
}

.rate-line {
  margin: 0 0 6px;
  color: var(--muted);
}

.llc-converter {
  max-width: 440px;
  border-radius: 28px !important;
  background: #fff;
  padding: 22px !important;
  margin-left: auto;
  border: 1px solid #d8e1ec !important;
  box-shadow: 0 12px 30px rgba(0, 35, 70, 0.1);
}

.llc-rate-chip {
  width: fit-content;
  margin: 0 auto 18px;
  background: #f7fcff;
  border-radius: 10px;
  padding: 9px 15px;
  font-weight: 500;
  font-size: 14px;
  font-family: var(--lulu-font-secondary);
  color: #001326;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  border: 2px solid #afcad9;
}

.llc-rate-chip small {
  font-size: 14px;
  font-weight: 600;
  color: #008000;
}

.llc-row {
  background: #f7fcff;
  border-radius: 10px;
  padding: 12px 14px;
  gap: 8px;
  border: 2px solid #afcad9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.llc-row + .llc-info {
  margin-top: 10px;
  margin-bottom: 16px;
}

.llc-flag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 40px;
}

.llc-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.llc-code {
  font-size: 18px;
  line-height: 1;
  color: #001326;
  min-width: 50px;
}

.llc-input,
.llc-select {
  border: 0 !important;
  border-left: 1px solid rgba(0, 19, 38, 0.3);
  background: transparent !important;
  height: 50px;
  padding: 0 0 0 10px;
  color: #425067;
  font-size: 16px;
  width: 100%;
  min-width: 0;
  outline: none;
  font-family: var(--lulu-font-secondary);
}

.llc-converter input[type="number"]::-webkit-outer-spin-button,
.llc-converter input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.llc-converter input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.llc-input::placeholder {
  color: #6f7f98;
  opacity: 1;
}

.llc-select {
  appearance: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  background-image:
    linear-gradient(45deg, transparent 50%, #425067 50%),
    linear-gradient(135deg, #425067 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.llc-select:focus {
  box-shadow: none !important;
}

.llc-native-hidden {
  display: none !important;
}

.llc-dd {
  position: relative;
}

.lulu-lite-converter-form .llc-row:nth-child(1) {
  gap: 8px;
}

.llc-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 0 15px 0 14px;
  min-height: 44px;
  color: #001326;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  width: 110px;
}
 
.lulu-lite-converter-form .llc-row:first-child .llc-input {
  padding-left: 20px;
}

.llc-dd-label,
.llc-code {
  font-size: 14px;
  font-weight: 500 !important;
  letter-spacing: 1px;
}

.llc-converter:not(.llc-converter-horizontal) .llc-dd-toggle {
  padding-left: 0;
}

.llc-dd-caret {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #7b8fa3;
}

.llc-dd-flag {
  width: 40px;
  height: 40px;
  display: inline-flex;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
}

.llc-dd-item-flag {
  width: 24px;
  height: 24px;
  display: inline-flex;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f2f6fb;
  box-shadow: 0 1px 3px rgba(0, 20, 40, 0.14);
}

.llc-dd-flag img,
.llc-dd-item-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.llc-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 22, 45, 0.18);
  border: 1px solid #e4ebf3;
  z-index: 20;
  transition-property: all;
  padding: 8px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.4s ease-in-out;
}

@starting-style {
  .llc-dd-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
  }
}

.llc-dd-search {
  width: 100%;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  height: 38px;
  padding: 0 10px;
  margin-bottom: 8px;
  font-size: 14px;
  outline: none;
}

.llc-dd-list {
  max-height: 240px;
  overflow: auto;
}

.llc-dd-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: left;
  color: #001326;
  font-size: 16px;
  border-radius: 8px;
}

.llc-dd-item-label {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.llc-dd-item:hover,
.llc-dd-item.is-selected {
  background: #f2f7fc;
}

.llc-info {
  color: #001326;
  font-size: 10px;
  gap: 8px;
  margin-left: 2px;
  font-family: var(--lulu-font-secondary);
}

.llc-info-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0088c9;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 18px;
}

.llc-send-btn {
  margin-top: 14px;
  border: 0 !important;
  border-radius: 34px !important;
  background: #0088c9;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--lulu-font-secondary);
  line-height: 1;
  padding: 18px 20px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.llc-send-btn:focus {
  color: #fff;
}

.llc-send-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  background: #0088c9;
  color: #fff;
}

.llc-send-btn:active {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .llc-converter {
    max-width: 100%;
    margin: 0;
    padding: 16px;
  }

  .llc-rate-chip {
    margin-bottom: 14px;
  }

  .llc-code {
    min-width: 43px;
  }

  .llc-input,
  .llc-select {
    font-size: 15px;
    height: 44px;
  }

  .llc-send-btn {
    font-size: 17px;
    padding: 16px 18px;
  }
}

.llc-horizontal-wrap {
  padding: 32px 0 28px;
  color: #fff;
}

.llc-horizontal-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #000;
  font-family: var(--lulu-font-primary);
  text-align: center;
}

.llc-converter-horizontal {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.llc-converter-horizontal .llc-horizontal-rate {
  margin: 0 0 14px;
  text-align: center;
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
  font-family: var(--lulu-font-secondary);
}

.llc-horizontal-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 35, 70, 0.12);
  position: relative;
  overflow: visible;
}

.llc-h-from {
  grid-column: 1;
  grid-row: 1;
}

.llc-h-swap {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  align-self: center;
  justify-self: center;
  z-index: 2;
}

.llc-h-to {
  grid-column: 3;
  grid-row: 1;
}

.llc-horizontal-bar.llc-h-swapped .llc-h-from {
  grid-column: 3;
  padding-left: 36px;
  padding-right: 14px;
}

.llc-horizontal-bar.llc-h-swapped .llc-h-to {
  grid-column: 1;
  padding-right: 36px;
  padding-left: 14px;
}

.llc-horizontal-bar.llc-h-swapped .llc-h-to .llc-h-flag {
  order: 1;
}

.llc-horizontal-bar.llc-h-swapped .llc-h-to .llc-h-select,
.llc-horizontal-bar.llc-h-swapped .llc-h-to .llc-dd {
  order: 2;
}

.llc-horizontal-bar.llc-h-swapped .llc-h-to .llc-h-divider {
  order: 3;
}

.llc-horizontal-bar.llc-h-swapped .llc-h-to .llc-h-input {
  order: 4;
}

.llc-horizontal-bar.llc-h-swapped .llc-h-from .llc-h-input {
  order: 1;
}

.llc-horizontal-bar.llc-h-swapped .llc-h-from .llc-h-divider {
  order: 2;
}

.llc-horizontal-bar.llc-h-swapped .llc-h-from .llc-h-flag {
  order: 3;
}

.llc-horizontal-bar.llc-h-swapped .llc-h-from .llc-h-code {
  order: 4;
}

.llc-h-segment {
  display: flex;
  align-items: center;
  flex: 1 1 200px;
  min-height: 56px;
  padding: 10px 14px;
  gap: 10px;
  min-width: 0;
}

.llc-h-from {
  padding-right: 36px;
  padding-left: 14px;
}

.llc-h-to {
  padding-left: 36px;
  padding-right: 14px;
  flex-direction: row;
}

.llc-h-flag {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f4f8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.llc-h-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.llc-h-code {
  font-size: 1.1rem;
  font-weight: 700;
  color: #001326;
  min-width: 2.75rem;
  font-family: var(--lulu-font-secondary);
}

.llc-h-divider {
  width: 1px;
  align-self: stretch;
  min-height: 32px;
  background: rgba(0, 19, 38, 0.2);
  flex-shrink: 0;
}

.llc-h-input {
  flex: 1 1 80px;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  color: #001326;
  outline: none;
  font-family: var(--lulu-font-secondary);
}

.llc-h-input::placeholder {
  color: #6f7f98;
}

.llc-h-select {
  border: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23425067' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E")
    no-repeat right 0 center;
  padding-right: 18px;
  font-size: 1rem;
  font-weight: 700;
  color: #001326;
  cursor: pointer;
  appearance: none;
  max-width: 5.5rem;
  outline: none;
  font-family: var(--lulu-font-secondary);
}

.llc-converter {
  overflow: visible !important;
}

.llc-dd-menu {
  overflow: hidden;
  height: 230px;
}

.llc-converter-horizontal .llc-dd {
  min-width: 90px;
}

.llc-converter-horizontal .llc-dd-toggle {
  padding: 0 16px 0 0;
  min-height: 36px;
  font-size: 1rem;
  font-weight: 700;
}

.llc-converter-horizontal .llc-dd-flag {
  width: 36px;
  height: 36px;
}

.llc-converter-horizontal .llc-dd-menu {
  min-width: 220px;
  left: -8px;
}

.llc-h-swap {
  width: 44px;
  height: 44px;
  margin: 0 -8px;
  border-radius: 50%;
  border: 3px solid #fffefe;
  background: #00a3db;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 130, 200, 0.45);
  padding: 0;
  flex-shrink: 0;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.llc-h-swap:hover {
  filter: brightness(1.05);
  transform: scale(1.04);
}

.llc-h-swap svg {
  display: block;
  transform: rotate(90deg);
}

.llc-horizontal-footnote {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #000;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--lulu-font-secondary);
}

.llc-converter-horizontal input[type="number"]::-webkit-outer-spin-button,
.llc-converter-horizontal input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.llc-converter-horizontal input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

@media (max-width: 767px) {
  .llc-horizontal-bar {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    border-radius: 16px;
    padding-top: 22px;
    padding-bottom: 8px;
  }

  .llc-h-from {
    grid-column: 1;
    grid-row: 1;
  }

  .llc-h-swap {
    grid-column: 1;
    grid-row: 2;
    margin: 0 auto;
  }

  .llc-h-to {
    grid-column: 1;
    grid-row: 3;
  }

  .llc-horizontal-bar.llc-h-swapped .llc-h-from {
    grid-column: 1;
    grid-row: 3;
  }

  .llc-horizontal-bar.llc-h-swapped .llc-h-to {
    grid-column: 1;
    grid-row: 1;
  }

  .llc-horizontal-bar.llc-h-swapped .llc-h-swap {
    grid-column: 1;
    grid-row: 2;
  }

  .llc-h-from,
  .llc-h-to {
    width: 100%;
    padding: 12px 16px;
  }

  .llc-horizontal-bar.llc-h-swapped .llc-h-from,
  .llc-horizontal-bar.llc-h-swapped .llc-h-to {
    padding: 12px 16px;
  }

  .llc-h-from .llc-h-flag {
    order: 1 !important;
  }

  .llc-h-from .llc-h-code {
    order: 2 !important;
    display: inline-block !important;
    min-width: 3.8rem;
    flex: 0 0 3.8rem;
  }

  .llc-h-from .llc-h-divider {
    order: 3 !important;
  }

  .llc-h-from .llc-h-input {
    order: 4 !important;
  }

  .llc-h-to .llc-dd,
  .llc-h-to .llc-h-select {
    order: 1 !important;
    min-width: calc(36px + 10px + 3.8rem);
    flex: 0 0 calc(36px + 10px + 3.8rem);
  }

  .llc-h-to .llc-h-divider {
    order: 2 !important;
  }

  .llc-h-to .llc-h-input {
    order: 3 !important;
  }

  .llc-h-to .llc-h-flag {
    display: none !important;
  }

  .llc-horizontal-bar:not(.llc-h-swapped) .llc-h-from {
    border-bottom: 1px solid rgba(0, 19, 38, 0.08);
  }

  .llc-horizontal-bar.llc-h-swapped .llc-h-to {
    border-bottom: 1px solid rgba(0, 19, 38, 0.08);
  }

  .llc-h-swap svg {
    transform: rotate(0deg);
  }
}
