.wim-eal-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: inherit;
}

.wim-eal-popup.is-hidden {
  display: none;
}

.wim-eal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.wim-eal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  background: var(--white, #fff);
  color: var(--black2, #353536);
  border-radius: 5px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  overflow: visible;
}

.wim-eal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  padding: 0 4px;
}

.wim-eal-close:hover,
.wim-eal-close:focus {
  color: #fff;
  opacity: 0.8;
}

.wim-eal-header {
  background: var(--mainblue, #003680);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  padding: 24px 52px 20px 28px;
  text-align: center;
}

.wim-eal-header h2,
.wim-eal-popup .wim-eal-header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
}

.wim-eal-body {
  padding: 32px 32px 36px;
  background: var(--white, #fff);
  border-radius: 0 0 5px 5px;
}

.wim-eal-body p {
  margin: 0 0 28px;
  color: var(--black2, #353536);
  font-size: 14px;
  line-height: 1.5;
}

.wim-eal-body p.wim-eal-note {
  margin: 16px 0 0;
  color: var(--darkgrey, #838383);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.wim-eal-popup .wim-eal-note a {
  color: var(--darkgrey, #838383);
  text-decoration: underline;
  font-weight: 400;
}

.wim-eal-popup .wim-eal-note a:hover,
.wim-eal-popup .wim-eal-note a:focus {
  color: var(--mainblue, #003680);
}

.wim-eal-popup button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.wim-eal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wim-eal-select-wrap {
  position: relative;
  z-index: 3;
}

.wim-eal-select,
.wim-eal-option {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--mainblue, #003680);
  border-radius: 5px;
  background: var(--white, #fff);
  color: var(--black2, #353536);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.wim-eal-select {
  min-height: 48px;
}

.wim-eal-select[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.wim-eal-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.wim-eal-select-label {
  flex: 1;
}

.wim-eal-caret {
  width: 0;
  height: 0;
  margin-left: auto;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--mainblue, #003680);
}

.wim-eal-options {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 4;
  background: var(--white, #fff);
  border: 1px solid var(--mainblue, #003680);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.wim-eal-option {
  border: 0;
  border-radius: 0;
  font-weight: 500;
}

.wim-eal-option:hover,
.wim-eal-option:focus,
.wim-eal-option.is-selected {
  background: var(--mainblue, #003680);
  color: #fff;
}

.wim-eal-continue {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 5px;
  background: var(--mainblue, #003680);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.wim-eal-continue:hover,
.wim-eal-continue:focus {
  background: #00285e;
  color: #fff;
}

@media (max-width: 767px) {
  .wim-eal-dialog {
    max-width: 96%;
  }

  .wim-eal-header {
    padding: 22px 44px 18px 20px;
  }

  .wim-eal-header h2,
  .wim-eal-popup .wim-eal-header h2 {
    font-size: 15px;
  }

  .wim-eal-body {
    padding: 22px 20px 24px;
  }
}
