.rzmc-header-flag {
  display: block;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.rzmc-currency-switcher {
  position: relative;
  display: inline-flex;
  width: 77px;
  height: 21px;
  margin-left: 16px;
  border-right: 1px solid #3d3d3d;
}

.service-bar__settings > .rzmc-currency-switcher {
  margin-left: 16px;
}

.rzmc-currency-switcher .setting-button {
  width: 77px !important;
  border: 0;
}

.rzmc-currency-menu {
  position: absolute;
  z-index: 10030;
  top: calc(100% + 12px);
  right: 0;
  width: 211px;
  height: 254px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #404040;
  box-shadow: 0 6px 15.2px 4.8px rgba(41, 41, 41, .33);
  color: #fff;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
}

.rzmc-currency-menu[hidden] { display: none !important; }

.rzmc-currency-search {
  display: block;
  width: 211px;
  height: 47px;
  padding: 8px;
}

.rzmc-currency-search input {
  display: block;
  width: 195px;
  height: 31px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
  outline: 0;
  background: #303030;
  box-shadow: none;
  color: #fff;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 21px;
}

.rzmc-currency-search input::placeholder {
  color: #aaa;
  opacity: 1;
}

.rzmc-currency-results {
  width: 204px;
  height: 200px;
  margin: 0 0 7px 7px;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #777 #303030;
  scrollbar-width: thin;
}

.rzmc-currency-menu button {
  display: flex;
  width: 100%;
  height: 33px;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d7d7d7;
  font-family: Tajawal, Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 21px;
  text-align: start;
  white-space: nowrap;
}

.rzmc-currency-menu button:hover,
.rzmc-currency-menu button:focus,
.rzmc-currency-menu button[aria-checked="true"] {
  outline: 0;
  background: #262626;
  color: #fff;
}

.rzmc-currency-menu button[hidden] { display: none !important; }

.rzmc-location-modal.in {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.rzmc-location-modal .modal-dialog {
  width: 400px;
  max-width: calc(100% - 24px);
  margin: 30px auto;
}

.rzmc-location-modal .modal-content {
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
}

.rzmc-location-modal .modal-header {
  min-height: 57px;
  padding: 15px 30px;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: #efefef;
}

.rzmc-location-modal .modal-title {
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
}

.rzmc-location-modal .close {
  margin-top: -2px;
  color: #333;
  font-size: 28px;
  font-weight: 300;
  opacity: .65;
}

.rzmc-location-modal .modal-body { padding: 15px 30px; }

.rzmc-location-intro {
  margin: 0;
  padding: 0 0 10px;
  color: #333;
  font-size: 13px;
  line-height: 21px;
}

.rzmc-address-link.btn {
  display: block;
  width: max-content;
  max-width: 100%;
  min-height: 31px;
  margin: 0 auto;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fecb00;
  color: #333;
  font-size: 12px;
  line-height: 17px;
  text-decoration: none;
}

.rzmc-address-link.btn:hover,
.rzmc-address-link.btn:focus {
  border-color: #adadad;
  background: #e8ba00;
  color: #222;
}

.rzmc-divider {
  position: relative;
  height: 30px;
  margin: 5px 0 10px;
  color: #777;
  text-align: center;
}

.rzmc-divider hr {
  position: absolute;
  top: 14px;
  width: 100%;
  margin: 0;
  border-color: #e1e1e1;
}

.rzmc-divider span {
  position: relative;
  top: 7px;
  display: inline-block;
  padding: 0 10px;
  background: #fff;
  font-size: 12px;
}

.rzmc-field { margin-bottom: 15px; }
.rzmc-field label {
  display: inline-block;
  margin: 0 0 5px;
  color: #333;
  font-size: 13px;
  font-weight: 400;
}

.rzmc-field .form-control {
  height: 34px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: none;
  color: #333;
  font-size: 13px;
}

.rzmc-field .form-control:focus {
  border-color: #fecb00;
  box-shadow: 0 0 0 2px rgba(254, 203, 0, .14);
}

.rzmc-select-with-flag { position: relative; }
.rzmc-select-with-flag img {
  position: absolute;
  z-index: 2;
  top: 9px;
  inset-inline-start: 10px;
  width: 25px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, .08);
  object-fit: cover;
  pointer-events: none;
}
.rzmc-select-with-flag select { padding-inline-start: 43px; }

.rzmc-city-combobox { position: relative; }
.rzmc-city-results {
  position: absolute;
  z-index: 1080;
  top: calc(100% + 2px);
  right: 0;
  left: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.rzmc-city-results[hidden] { display: none !important; }
.rzmc-city-results button {
  display: block;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #333;
  font-size: 13px;
  text-align: start;
}
.rzmc-city-results button:hover,
.rzmc-city-results button:focus,
.rzmc-city-results button.is-active { outline: 0; background: #f1f1f1; }
.rzmc-city-empty { padding: 9px; color: #777; font-size: 12px; text-align: center; }

.rzmc-form-status {
  min-height: 18px;
  margin-top: -8px;
  color: #777;
  font-size: 11px;
}
.rzmc-form-status.is-error { color: #b42318; }

.dark-theme .rzmc-location-modal .modal-content { background: #303030; color: #e1e1e1; }
.dark-theme .rzmc-location-modal .modal-header { background: #404040; }
.dark-theme .rzmc-location-modal .modal-title,
.dark-theme .rzmc-location-modal .close,
.dark-theme .rzmc-location-intro,
.dark-theme .rzmc-field label { color: #e1e1e1; }
.dark-theme .rzmc-divider hr { border-color: #555; }
.dark-theme .rzmc-divider span { background: #303030; color: #bcbcbc; }
.dark-theme .rzmc-field .form-control { border-color: #555; background: #404040; color: #fff; }
.dark-theme .rzmc-city-results { border-color: #555; background: #404040; }
.dark-theme .rzmc-city-results button { color: #fff; }
.dark-theme .rzmc-city-results button:hover,
.dark-theme .rzmc-city-results button:focus,
.dark-theme .rzmc-city-results button.is-active { background: #555; }
.dark-theme .rzmc-city-empty { color: #ccc; }

html[dir="ltr"] .rzmc-currency-menu { right: auto; left: 0; }
html[dir="ltr"] .rzmc-currency-results { margin-right: 7px; margin-left: 0; }

@media (max-width: 767px) {
  .rzmc-location-modal .modal-dialog { margin: 12px auto; }
  .rzmc-location-modal .modal-header,
  .rzmc-location-modal .modal-body { padding-right: 20px; padding-left: 20px; }
  .rzmc-currency-switcher { margin-left: 4px; }
}

/* Footer licenses shared with the AL3B storefront. */
.footer-side.footer-trust {
  display: flex;
  height: 257.2px;
  flex-direction: column;
  gap: 10px;
}

.footer-trust__numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.footer-trust__number {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fafafa;
  color: #555;
  font-size: 9px;
  line-height: 1.35;
}

.footer-trust__number img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer-trust__number strong {
  display: block;
  margin-top: 2px;
  color: #222;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: -.15px;
  white-space: nowrap;
}

.footer-trust__logos {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(70px, 1fr);
  align-items: center;
  gap: 6px 8px;
}

.footer-trust__logos a {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.footer-trust__logos img {
  display: block;
  width: 100%;
  max-width: 145px;
  height: 100%;
  max-height: 58px;
  object-fit: contain;
}

.dark-theme .footer-trust__number {
  border-color: #444;
  background: #303030;
  color: #ddd;
}

.dark-theme .footer-trust__number strong {
  color: #fff;
}

/* Keep the main header logo white on its dark background. */
.main-header .brand-logo img {
  filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
  .footer-side.footer-trust {
    display: flex;
    height: 200.7px;
    gap: 8px;
  }

  .footer-trust__number {
    min-height: 55px;
    grid-template-columns: 42px minmax(0, 1fr);
    font-size: 10px;
  }

  .footer-trust__number img {
    width: 42px;
    height: 42px;
  }

  .footer-trust__number strong {
    font-size: 10px;
  }

  .footer-trust__logos {
    grid-template-rows: minmax(58px, 1fr);
  }
}
