@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "sans-serif";
}

body {
  background: rgb(255, 251, 239);
}

/* ──────────────────────────────────────────
   Language Dropdown
────────────────────────────────────────── */
.lang-dropdown {
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 10000;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-selected {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 6px 12px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition:
    background 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.lang-selected:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.85);
}

.lang-chevron {
  width: 10px;
  height: 6px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 110px;
  background: rgba(30, 40, 60, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  overflow-y: auto;
  max-height: 70vh;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  list-style: none;
  padding: 4px 0;
  margin: 0;
}

.lang-dropdown.open .lang-menu {
  display: block;
  animation: langFadeIn 0.15s ease;
}

@keyframes langFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.4px;
}

.lang-menu li:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lang-menu li .fi {
  font-size: 1rem;
  border-radius: 2px;
}

.lang-selected .fi {
  font-size: 1rem;
  border-radius: 2px;
}

.ditch-span {
  color: #ffe600;
  font-weight: 900;
  font-size: 1.6em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 12px rgba(255, 230, 0, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.4);
}

.wrapper,
.wrapperTarget {
  width: 35%;
  margin-right: 1.5%;
}

.select-btn,
.select-btnTarget,
.options li {
  display: flex;
  cursor: pointer;
  align-items: center;
}
.select-btn,
.select-btnTarget {
  background: white;

  height: 65px;
  font-size: 22px;

  padding: 0 22px;
  border-radius: 7px;

  justify-content: space-between;
}

.select-btn i,
.select-btnTarget i {
  font-size: 31px;
  transition: transform 0.3s linear;
}

.active .select-btn i,
.active .select-btnTarget i {
  transform: rotate(-180deg);
}
.content {
  display: none;
  background: white;
  padding: 20px;
  margin-top: 15px;
  border-radius: 7px;
}
.wrapper.active .content,
.wrapperTarget.active .content {
  display: block;
  position: absolute;
}

.hide {
  visibility: hidden;
  opacity: 0;
}
/* onderstaande klasse duwt de button weer naar boven als de eerste muntselectie wordt aangeklikt. bij de tweede muntselectie verdwijnt hij met hide hierboven*/

/* .upupup {
    bottom: 368px;
 } 
  */

.content .search {
  position: relative;
}
.search i {
  position: absolute;
  left: 15px;
  font-size: 28px;
  color: bisque;
  line-height: 53px;
}
.search input {
  height: 53px;
  width: 100%;
  outline: none;
  font-size: 17px;
  /* hieronder doen we seqrch placholder naar rechts opschuiven */
  padding: 0 15px 0 43px;
  border-radius: 5px;
  border: 1px solid whitesmoke;
}

.content .options,
.content .optionsTarget {
  margin-top: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 7px;
  z-index: 20;
}

.options::-webkit-scrollbar {
  width: 7px;
}
.options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 25px;
}
.options::-webkit-scrollbar-thumb {
  background: #f1f1f1;
  border-radius: 25px;
}
.optionsTarget::-webkit-scrollbar {
  width: 7px;
}
.optionsTarget::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 25px;
}
.optionsTarget::-webkit-scrollbar-thumb {
  background: #f1f1f1;
  border-radius: 25px;
}

.options li,
.optionsTarget li {
  height: 50px;
  border-radius: 5px;
  font-size: 21px;
  padding: 0 13px;
  display: flex;
  justify-content: space-between;
}

.options li:hover,
li .selected {
  background: #fd0;
}
.optionsTarget li:hover {
  background: #fd0;
}

.outercontainer {
  background: rgb(71, 192, 182);
  background:
    linear-gradient(
      0deg,
      rgba(71, 192, 182, 0.5) 0%,
      rgba(54, 153, 217, 0.5) 100%
    ),
    url("img/currencyexchange.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 100%;
  height: 100vh;
  margin: auto;
}
.innercontainer {
  position: relative;
  padding: 2.1%;
  height: 27%;
  min-height: 24vh;
  top: 20vh;
  max-width: 75%;
  display: block;
  margin: auto;
  margin-top: 5vh;
  border-radius: 5px;
  z-index: 2;
  background-color: rgb(248, 248, 248);
  box-shadow: rgba(35, 55, 80, 0.3) 0px 6px 12px;
}

/*top section */

.herocontainer {
  display: flex;
  max-width: 75%;
  justify-content: space-between;
}

#logox {
  margin: 2% 2%;
  width: 350px;
  height: 200px;
  background-image: url("img/FX_CHECKER.png");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
}

/* Sliding Banner */
.sliding-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(71, 192, 182, 0.95) 0%,
    rgba(54, 153, 217, 0.95) 100%
  );
  padding: 50px 20px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-100%);
}

.banner-header {
  text-align: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.banner-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  color: white;
}

.banner-icon {
  font-size: 1.5rem;
}

.banner-text {
  font-size: 1rem;
  font-weight: 500;
}

.banner-separator {
  font-size: 1.2rem;
  opacity: 0.7;
}

/*currencies section*/

.currencyContainer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 5vh;
  min-height: 50px;
  position: relative;
}
.quantityfield {
  width: 30%;
}

.quantityfield input {
  height: 65px;
  font-size: 1.5rem;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  width: 40%;
  text-align: right;
  color: #2c3e50;
  border: 2px solid #e0e6ed;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  font-weight: 500;
  outline: none;
}

.quantityfield input:hover {
  border-color: #667eea;
  box-shadow:
    0 4px 12px rgba(102, 126, 234, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.quantityfield input:focus {
  border-color: #667eea;
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(102, 126, 234, 0.1),
    0 4px 16px rgba(102, 126, 234, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.quantityfield input::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

.quantityfield label {
  font-size: 22px;
  padding: 2px 22px;
  color: #2c3e50;
  font-weight: 500;
}
.notice {
  color: red;
  display: none;
}

/* Button classes */

.button-9 {
  appearance: button;
  backface-visibility: hidden;
  background-color: #3192b8;
  border-radius: 6px;
  border-width: 0;
  box-shadow:
    rgba(50, 50, 93, 0.1) 0 0 0 1px inset,
    rgba(50, 50, 93, 0.1) 0 2px 5px 0,
    rgba(0, 0, 0, 0.07) 0 1px 1px 0;
  box-sizing: border-box;
  color: white;
  cursor: pointer;
  font-family:
    -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu,
    sans-serif;
  font-size: 100%;
  font-weight: bold;
  height: 44px;
  line-height: 1.15;

  outline: none;
  overflow: hidden;
  padding: 0 25px;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  transform: translateZ(0);
  transition:
    all 0.2s,
    box-shadow 0.08s ease-in;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 25%;
  margin-left: 73%;
}

.button-9:disabled {
  cursor: default;
}

.logobanner {
  padding: 1%;
  margin-top: 8%;
  min-height: 100px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: rgb(248, 248, 248);
  flex-wrap: wrap;
  border-radius: 5px;
}

.logoprovider img {
  max-width: 130px;
  min-width: 85px;
}

/* Affiliate Disclosure */
.affiliate-disclosure {
  max-width: 75%;
  margin: 20px auto;
  padding: 15px 25px;
  background: rgba(255, 243, 205, 0.9);
  border-left: 4px solid #ffc107;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
}

.affiliate-disclosure p {
  margin: 0;
}

.affiliate-disclosure strong {
  color: #f57c00;
}

/* Improved table styles */
.table-row {
  min-height: 35px;
  background-color: rgb(213, 252, 239);
}

#resultsTable {
  height: 30%;
  min-height: 24vh;
  margin: auto;
  margin-top: 12vh;
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow-y: auto;
}

#resultsTable:has(tbody tr) {
  box-shadow: rgba(35, 55, 80, 0.3) 0px 6px 12px;
}

#resultsTable th {
  min-width: 120px;
  background-color: rgb(24, 177, 207);
  color: #ffffff;
  font-weight: bold;
  border-bottom: 2px solid rgb(41, 164, 189);
}

#resultsTable th:nth-child(1) {
  min-width: 160px; /* Provider column */
}

#resultsTable th:nth-child(4),
#resultsTable th:nth-child(5) {
  min-width: 140px; /* Total Cost and You Get columns */
}

#resultsTable td {
  background-color: rgb(255, 255, 255);
  text-align: center;
  margin: auto;
  border-bottom: 1px solid rgb(224, 224, 224);
}

#resultsTable td img {
  max-width: 180px;
  padding: 15px;
  margin: auto;
}

/* Best Deal Indicators */
.best-deal-link {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  padding: 8px 16px;
  text-align: center;
  border-radius: 35px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.2s;
  animation: pulse-gold 2s infinite;
  border: 2px solid #ffa000;
  cursor: default;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes pulse-gold {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 215, 0, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 215, 0, 0.4);
  }
}

.best-deal-row {
  border-left: 4px solid #ffd700;
  background-color: #fffef5;
}

.amount-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.received-amount {
  font-size: 1.1em;
  font-weight: bold;
}

.effective-rate {
  font-size: 0.8em;
  color: #666;
  font-weight: normal;
  font-style: italic;
}

#resultsTable tr:hover {
  background-color: rgb(235, 245, 255);
}

#resultsTable th:hover {
  background-color: rgb(16, 162, 195);
  cursor: pointer;
}

/* #resultsTable td a {
  color: rgb(33, 219, 243);
  text-decoration: none;
} */

#resultsTable td a:hover {
  text-decoration: underline;
}

#resultsTable td:nth-child(2), /* Exchange rate */
#resultsTable td:nth-child(3), /* Fees */
#resultsTable td:nth-child(4), /* Total Cost */
#resultsTable td:nth-child(5) /* You Get */ {
  text-align: left;
  padding-left: 5%; /* Adjust padding to your liking */
}

/* Add padding to action column for buttons */
#resultsTable td:nth-child(6) {
  padding-left: 10px;
  padding-right: 10px;
}

/* #resultsTable tbody tr:nth-of-type(1) td:nth-child(5),
#resultsTable tbody tr:nth-of-type(2) td:nth-child(5),
#resultsTable tbody tr:nth-of-type(3) td:nth-child(5) {
  font-size: 1.15rem;
} */

#sentence {
  display: hidden;
}

.glow-button {
  background-color: #1cafbf;
  color: white;
  padding: 10px 20px;
  text-align: center;
  border-radius: 35px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.2s;
  animation: pulse 2s infinite;
}
.glow-button:hover {
  transform: scale(1.1);
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Ranking Explanation */
.ranking-explanation {
  max-width: 75%;
  margin: 50px auto;
  padding: 15px 25px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 4px solid #2196f3;
  border-radius: 8px;
  display: none;
}

.ranking-explanation h3 {
  margin: 0 0 10px 0;
  color: #1976d2;
  font-size: 1.1rem;
}

.ranking-explanation p {
  margin: 0;
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

.ranking-explanation strong {
  color: #1565c0;
}

/* Show explanation when results are visible */
#resultsTable:not(:empty) ~ .ranking-explanation,
#searchResults:not(:empty) ~ .ranking-explanation {
  display: block;
}

/* Loading Spinner */
.spinner {
  margin: 0 auto;
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-right: 3px solid #764ba2;
  border-bottom: 3px solid #f093fb;
  border-left: 3px solid #4facfe;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Great Deal and Good Deal badges */
.great-deal-link {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color: #333;
  font-weight: bold;
  border-radius: 35px;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
  border: 2px solid #a8a8a8;
  transition:
    transform 0.2s,
    color 0.2s;
  animation: pulse 2s infinite;
  cursor: pointer;
  text-decoration: none;
}

.great-deal-link:hover {
  transform: scale(1.1);
  text-decoration: underline;
  color: #0066cc;
}

.good-deal-link {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
  color: #fff;
  font-weight: bold;
  border-radius: 35px;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
  border: 2px solid #b8722d;
  transition:
    transform 0.2s,
    color 0.2s;
  animation: pulse 2s infinite;
  cursor: pointer;
  text-decoration: none;
}

.good-deal-link:hover {
  transform: scale(1.1);
  text-decoration: underline;
  color: #ffeb3b;
}

/* Revolut Tooltip Modal Styles */
.tooltip-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tooltip-content {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 550px;
  color: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tooltip-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 35px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.tooltip-close:hover {
  transform: scale(1.2);
}

.tooltip-content h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.tooltip-content p {
  margin: 12px 0;
  line-height: 1.6;
}

.tooltip-content ul {
  margin: 10px 0 10px 20px;
  line-height: 1.8;
}

.tooltip-content ul li {
  margin: 8px 0;
}

.tooltip-note {
  margin-top: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-style: italic;
  font-size: 0.95rem;
  border-left: 4px solid #ffd700;
}

.info-icon {
  color: #555;
  font-size: clamp(1rem, 2.3vw, 1.9rem);
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
  display: inline-block;
  position: absolute;
  left: 89%;
  z-index: 1;
  white-space: nowrap;
}

.info-icon:hover {
  transform: scale(1.3);
  color: #ffed4e;
}

/* Estimated-rate rows (e.g. Revolut) – visually distinguished from live API data */
.estimated-row {
  background-color: rgba(255, 200, 50, 0.07);
}

.estimated-notice {
  display: block;
  font-size: 0.7rem;
  color: #999;
  font-weight: normal;
  font-style: italic;
  margin-top: 3px;
  letter-spacing: 0.01em;
}

.provider-name {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================
   MEDIA QUERIES - Mobile Responsiveness
   Organized from large screens to small
   ============================================ */

/* Screens larger than 1300px */
@media screen and (min-width: 1301px) {
  .info-icon {
    left: 80%;
  }
}

/* Screens up to 1300px */
@media screen and (max-width: 1300px) {
  .quantityfield label {
    font-size: 18px;
  }

  .select-btn,
  .select-btnTarget {
    font-size: 18px;
  }

  .options li,
  .optionsTarget li {
    font-size: 17px;
  }

  .quantityfield input,
  .search input {
    font-size: 1.3rem;
  }

  #resultsTable th,
  #resultsTable td {
    font-size: 0.9rem;
  }

  .great-deal-link,
  .good-deal-link {
    padding: 6px 8px;
  }

  .best-deal-link {
    padding: 6px 7px;
  }

  /* Add padding to action column for buttons */
  #resultsTable td:nth-child(6) {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Screens up to 1100px */
@media screen and (max-width: 1100px) {
  .wrapper,
  .wrapperTarget {
    width: 45%;
    margin-right: 2%;
  }

  .quantityfield {
    width: 50%;
  }

  .innercontainer {
    max-width: 90%;
  }

  .herocontainer {
    max-width: 90%;
  }

  #resultsTable {
    margin-top: 8vh;
    width: 90%;
  }

  .great-deal-link,
  .good-deal-link {
    padding: 6px 8px;
  }

  .best-deal-link {
    padding: 6px 7px;
  }

  #resultsTable td:nth-child(2), /* Exchange rate */
  #resultsTable td:nth-child(3), /* Fees */
  #resultsTable td:nth-child(4), /* Total Cost */
  #resultsTable td:nth-child(5) /* You Get */ {
    padding-left: 0;
  }

  #resultsTable th:nth-child(2),
  #resultsTable th:nth-child(3),
  #resultsTable th:nth-child(4),
  #resultsTable th:nth-child(5) {
    padding-left: 0;
  }

  /* Add padding to action column for buttons */
  #resultsTable td:nth-child(6) {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Screens between 788px and 987px */
@media screen and (min-width: 788px) and (max-width: 987px) {
  #resultsTable {
    margin-left: -3vh;
  }

  /* Add padding to action column for buttons */
  #resultsTable td:nth-child(6) {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Screens up to 787px */
@media screen and (max-width: 787px) {
  .currencyContainer {
    flex-direction: column;
    align-items: stretch;
  }

  .wrapper,
  .wrapperTarget,
  .quantityfield {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .quantityfield input {
    width: 100%;
  }

  .button-9 {
    width: 100%;
    margin-left: 0;
  }

  .innercontainer {
    max-width: 95%;
    padding: 20px;
    height: 30%;
  }

  .herocontainer {
    max-width: 95%;
  }

  #logox {
    width: 250px;
    height: 150px;
    background-size: contain;
  }

  #resultsTable {
    font-size: 0.85rem;
    overflow-x: auto;
    display: block;
    width: 100%;
    margin-top: 6vh;
  }

  #resultsTable th,
  #resultsTable td {
    font-size: 0.85rem;
    padding: 8px 4px;
    min-width: 80px;
  }

  #resultsTable tbody {
    display: block;
    overflow-x: auto;
  }

  #resultsTable thead,
  #resultsTable tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  #resultsTable th:nth-child(1),
  #resultsTable td:nth-child(1) {
    min-width: 120px; /* Provider logos */
  }

  #resultsTable td img {
    max-width: 100px;
    padding: 8px;
  }

  .logobanner {
    flex-direction: column;
  }

  .logoprovider {
    margin: 10px 0;
  }

  .affiliate-disclosure {
    max-width: 95%;
    font-size: 0.85rem;
    padding: 12px 18px;
  }
}

/* Screens up to 700px - Card-based mobile layout */
@media screen and (max-width: 700px) {
  /* Hide table headers on mobile */
  #resultsTable thead {
    display: none;
  }

  /* Make table body behave like a flex container */
  #resultsTable,
  #resultsTable tbody {
    display: block;
    width: 100%;
  }

  /* Convert each row into a card */
  #resultsTable tbody tr {
    display: block;
    margin-bottom: 20px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Style each cell as a data row */
  #resultsTable td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    text-align: left !important;
    min-width: 100% !important;
  }

  #resultsTable td:last-child {
    border-bottom: none;
  }

  /* Add labels before each data cell */
  #resultsTable td:nth-child(1)::before {
    content: "Provider: ";
  }
  #resultsTable td:nth-child(2)::before {
    content: "Exchange Rate: ";
  }
  #resultsTable td:nth-child(3)::before {
    content: "Fees: ";
  }
  #resultsTable td:nth-child(4)::before {
    content: "Total Cost: ";
  }
  #resultsTable td:nth-child(5)::before {
    content: "You Get: ";
  }

  #resultsTable td::before {
    font-weight: bold;
    color: #2c3e50;
    min-width: 120px;
  }

  /* Provider logo styling */
  #resultsTable td:nth-child(1) {
    flex-direction: column;
    align-items: flex-start;
  }

  #resultsTable td img {
    max-width: 150px;
    padding: 10px 0;
    margin: 0;
  }

  /* Original card override: inline styles on the span handle position,
     so we just restore colour and size here */
  .info-icon {
    color: #555;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 5px;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-block;
    /* Override base absolute positioning for card layout:
       td is full-width here, so anchor to upper-right corner */
    position: absolute;
    right: 10px;
    top: 10px;
    left: auto;
    transform: none;
  }

  /* Highlight best deal cards */
  .best-deal-row {
    border: 3px solid #ffd700;
    background: linear-gradient(135deg, #fffef5 0%, #fff9e6 100%);
  }

  /* Deal badges */
  .best-deal-link,
  .great-deal-link,
  .good-deal-link {
    margin-top: 8px;
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  /* Amount display in cards */
  .amount-display {
    align-items: flex-end;
  }

  .received-amount {
    font-size: 1rem;
  }

  .effective-rate {
    font-size: 0.75rem;
  }
}

/* Screens up to 768px */
@media screen and (max-width: 768px) {
  .sliding-banner {
    padding: 12px 15px;
  }

  .banner-header {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .banner-content {
    gap: 10px;
  }

  .banner-icon {
    font-size: 1.2rem;
  }

  .banner-text {
    font-size: 0.85rem;
  }

  .banner-separator {
    font-size: 1rem;
  }

  .tooltip-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }

  .tooltip-content h3 {
    font-size: 1.2rem;
  }

  .tooltip-content ul {
    margin-left: 15px;
    font-size: 0.9rem;
  }

  .innercontainer {
    height: 43%;
  }
}

/* Screens up to 480px */
@media screen and (max-width: 480px) {
  .select-btn,
  .select-btnTarget {
    height: 55px;
    font-size: 18px;
    padding: 0 15px;
  }

  .quantityfield input {
    height: 55px;
    font-size: 1.2rem;
  }

  .quantityfield label {
    font-size: 18px;
  }

  .innercontainer {
    height: 40%;
  }

  .content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-height: 70vh;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  /* Extra small screens - card layout optimizations */
  #resultsTable tbody tr {
    padding: 12px;
    margin-bottom: 15px;
  }

  #resultsTable td {
    padding: 10px 5px;
    font-size: 0.85rem;
  }

  #resultsTable td::before {
    font-size: 0.85rem;
    min-width: 100px;
  }

  #resultsTable td img {
    max-width: 120px;
  }

  .best-deal-link,
  .great-deal-link,
  .good-deal-link {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  #resultsTable th,
  #resultsTable td {
    font-size: 0.75rem;
    padding: 6px 3px;
  }
}
