/* Figma Currency Rates page — teal cards + converter keypad */

.lc-currency-page {
  padding: 16px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Figma emergency-banner: 15px vertical padding around SOS + Listen */
body.page-currency-rates .lc-sos-listen,
body.page-id-6302 .lc-sos-listen {
  padding: 15px 16px;
}

.lc-currency-page__rates {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lc-currency-rate {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, #137376 0%, #0A454F 100%);
  box-shadow: 1px 1px 6.5px -8px rgba(10, 69, 79, 0.64);
  color: #fff;
  text-decoration: none;
}

.lc-currency-rate__flag,
.lc-currency-page .crc-flag {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.lc-currency-rate__text {
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Abhaya Libre", Georgia, serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.01em;
}

.lc-currency-page__label {
  margin: 0;
  color: #1A3A5C;
  font-family: "Abhaya Libre", "Noto Sans Tamil", Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.lc-currency-page__label-muted {
  font-weight: 400;
}

.lc-currency-converter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 10px 16px;
  background: #F8F9FA;
  border-radius: 16px;
  border: 2px solid #0B4852;
  box-sizing: border-box;
}

.lc-currency-converter__input {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lc-currency-converter__badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #D5E0EB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lc-currency-converter__badge img {
  width: 14px;
  height: 14px;
  object-fit: cover;
  display: block;
}

.lc-currency-converter__amount {
  color: #1A3A5C;
  font-family: "Abhaya Libre", Georgia, serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  min-width: 1ch;
}

.lc-currency-converter__eq {
  color: #1A3A5C;
  font-family: "Abhaya Libre", Georgia, serif;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}

.lc-currency-converter__output {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.lc-currency-converter__result {
  color: #0A4852;
  font-family: "Abhaya Libre", Georgia, serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.lc-currency-keypad {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lc-currency-keypad__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lc-currency-key {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid #D5E0EB !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-radius: 14px !important;
  min-height: 56px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  color: #1A3A5C !important;
  font-family: "Abhaya Libre", Georgia, serif !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Pressed = previous teal fill */
body.page-currency-rates button.lc-currency-key:active,
body.page-currency-rates button.lc-currency-key.is-pressed,
body.page-id-6302 button.lc-currency-key:active,
body.page-id-6302 button.lc-currency-key.is-pressed {
  background-color: #137578 !important;
  background-image: none !important;
  border-color: #0A4650 !important;
  color: #ffffff !important;
}

body.page-currency-rates button.lc-currency-key--back,
body.page-id-6302 button.lc-currency-key--back {
  border-color: #E53935 !important;
  color: #E53935 !important;
  background-color: #ffffff !important;
}

body.page-currency-rates button.lc-currency-key--back:active,
body.page-currency-rates button.lc-currency-key--back.is-pressed,
body.page-id-6302 button.lc-currency-key--back:active,
body.page-id-6302 button.lc-currency-key--back.is-pressed {
  color: #ffffff !important;
  border-color: #C62828 !important;
  background-color: #E53935 !important;
}

.lc-currency-page__error {
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #E0E0E0;
  color: #1A3A5C;
  font-family: "Abhaya Libre", Georgia, serif;
}

/* Page chrome on currency */
body.page-currency-rates .site-content,
body.page-id-6302 .site-content {
  background: #F3F8F8;
}

body.page-currency-rates .page__title,
body.page-id-6302 .page__title,
body.page-currency-rates .entry-header,
body.page-id-6302 .entry-header {
  display: none !important;
}

body.page-currency-rates .page__text,
body.page-id-6302 .page__text {
  max-width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

@media (min-width: 769px) {
  .lc-currency-page {
    padding-top: 12px;
  }
}
