.esim-single-card {
  max-width: 340px;
  margin: 40px auto 32px;
  background: #fff;
  border: 2.2px solid #2626c8;
  border-radius: 19px;
  box-shadow: 0 4px 18px rgba(40, 34, 200, 0.09);
  padding: 34px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Segoe UI", Arial, sans-serif;
  position: relative;
  box-sizing: border-box;
}

.esim-single-card *,
.esim-popup *,
.styled-button * {
  box-sizing: border-box;
}

.esim-badge-blue {
  background: #2526b2;
  color: #fff;
  border-radius: 12px;
  padding: 9px 34px 7px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 9px rgba(40, 34, 200, 0.10);
  margin-bottom: 22px;
  text-align: center;
}

.esim-logo-blue {
  font-family: Georgia, serif;
  font-size: 37px;
  color: #1c1c8f;
  font-weight: 700;
  letter-spacing: -1.1px;
  margin-bottom: 13px;
  text-align: center;
}

.esim-price-main-blue {
  font-size: 29px;
  color: #181884;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.esim-features-blue {
  list-style: none;
  margin: 0 0 27px;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.esim-features-blue li {
  font-size: 16px;
  color: #2526b2;
  background: #f5f6fc;
  border-radius: 7px;
  padding: 9px 11px 9px 32px;
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
}

.esim-features-blue li span {
  color: #2626c8;
  font-weight: 700;
  font-size: 20px;
  margin-right: 10px;
  position: absolute;
  left: 10px;
  top: 8px;
}

.esim-btn-blue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: #ffe70d;
  color: #191950;
  border: 2px dashed #e81d1d;
  border-radius: 10px;
  padding: 14px 0;
  font-size: 21px;
  font-weight: 700;
  width: 100%;
  margin-top: 13px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(255, 231, 13, 0.11);
  text-decoration: none;
  transition: background 0.17s, border-color 0.15s;
}

.esim-btn-blue:hover,
.esim-btn-blue:focus {
  background: #fff475;
  border-color: #2526b2;
  color: #191950;
}

.esim-arrow-blue {
  font-size: 26px;
  vertical-align: middle;
  margin-left: 4px;
}

.styled-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #f9f9f9;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.styled-button svg {
  margin-right: 8px;
  flex: 0 0 auto;
}

.styled-button:hover,
.styled-button:focus {
  background-color: #e0e0e0;
  color: #000 !important;
}

.esim-popup[hidden] {
  display: none !important;
}

.esim-popup {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.esim-popup-content {
  background: #fff;
  padding: 24px 20px 20px;
  border-radius: 8px;
  width: min(500px, 100%);
  margin: max(60px, 8vh) auto 30px;
  position: relative;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  font-family: "Segoe UI", Arial, sans-serif;
}

.esim-popup-content h5 {
  margin: 0 38px 16px 0;
  font-size: 18px;
  line-height: 1.35;
}

.esim-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.esim-close:hover,
.esim-close:focus {
  background: #f1f1f1;
}

.esim-search-input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font: inherit;
}

.esim-search-input:focus {
  outline: 2px solid #2526b2;
  outline-offset: 1px;
}

.esim-results {
  max-height: 300px;
  overflow-y: auto;
  border-top: 1px solid #f1f1f1;
}

.esim-result-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 8px;
  border-bottom: 1px solid #f1f1f1;
  line-height: 1.35;
}

.esim-supported {
  color: #157a25;
  font-weight: 700;
  white-space: nowrap;
}

.esim-empty-state {
  margin: 14px 4px;
  color: #666;
  font-size: 14px;
}

.esim-popup-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 12px;
  line-height: 1.45;
}

body.esimguiden-popup-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .esim-single-card {
    max-width: 97vw;
    padding: 20px 2vw 18px;
  }

  .esim-logo-blue {
    font-size: 28px;
  }

  .esim-price-main-blue {
    font-size: 23px;
  }

  .esim-btn-blue {
    font-size: 18px;
    padding: 13px 0;
  }

  .esim-popup {
    padding: 12px;
  }

  .esim-popup-content {
    margin-top: 40px;
  }
}
