﻿.store-selection-modal {
  display: none;
  position: fixed;
  z-index: 9999; /* High z-index to ensure it stays on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

  /* Modal content box */
  .store-selection-modal .modal-content {
    z-index: 9999; /* High z-index to ensure it stays on top */
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
  }

  /* Close button */
  .store-selection-modal .close {
    background-color: #4ab2f1;
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin: -20px -0px -15px auto;
    border: none;
  }

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.store-selection-modal #store-selection-window {
  z-index: 9999; /* High z-index to ensure it stays on top */
}

.store-selection-modal .modal-body-text {
  margin-top: 20px;
  margin-bottom: 20px;
}

.store-selection-modal #MarketAreaZipCodeMappingId {
  min-width: 200px;
}

.store-selection-modal .store-selection-btn {
  color: #fff;
  background-color: #248ece;
  min-width: 140px;
  border: 0;
  padding: 10px 30px;
  text-align: center;
  font-size: 15px;
  text-transform: uppercase;
}

.store-selection-modal .store-selection-admin-btn {
  background-color: #1495a5;
  color: #fff;
  min-width: 140px;
  border: 0;
  padding: 10px 30px;
  text-align: center;
  font-size: 15px;
  text-transform: uppercase;
}

  .store-selection-modal .store-selection-admin-btn:hover {
    background-color: #257781;
  }

.store-selection-modal .store-selection-save-btn {
  color: #fff;
  background-color: #4ab2f1;
}

.store-selection-modal .store-selection-close-btn {
  color: #fff;
  background-color: #bb4a4a;
}

.store-selection-modal .modal-header {
  background-color: #4ab2f1;
  color: #fff; /* Optional: Change text color for better contrast */
  text-align: center; /* Center the text */
  padding: 15px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

  .store-selection-modal .modal-header .modal-title {
    text-transform: uppercase;
  }

  .store-selection-modal .modal-header h4 {
    color: #fff; /* Optional: Change text color for better contrast */
  }


.store-selection-modal .modal-footer {
  text-align: center;
  padding-top: 10px;
}

.store-selection-modal .store-selection-inputs {
  margin-bottom: 30px;
}

.store-selection-modal .label-wrapper {
  margin-bottom: 10px;
}

#zip-code-input {
  width: 100%;
  min-height: 30px;
  border-radius: 0;
  min-width: 130px;
}
#store-selection-window .fieldset .form-fields {
    text-align:left;
}
#store-selection-window .fieldset .form-fields label {
    color: var(--white);
}
#store-selection-window .buttons .login-button {
  background: var(--white);
  color: var(--primary-color);
  border-radius: 0;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  border: none;
  width: auto;
}
/*store selection and popup login step handling*/
#store-selection-window .modal-content .step:not(.active) {
  display: none;
}
#store-selection-window .modal-content .step.active {
  display: block;
  animation: stepFadeIn 0.5s ease-in-out;
}

.postcode-or-login-selection:not(.authenticated) {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}
.store-selection-modal .postcode-or-login-selection:not(.authenticated) .store-selection-inputs {
  margin-bottom: 10px !important;
  max-width: 110px;
  margin: auto;
}
.postcode-or-login-selection.authenticated .postcode-selection {
    padding-inline: 10px;
}
/*store selector polygon pup*/
.store-selection-modal .modal {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.store-selection-modal .modal-content {
  background: var(--primary-color) !important;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  padding: 80px 0 0;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  max-width: 400px !important;
  border-radius: 3px;
  overflow: visible;
  position: relative;
  border: none !important;
}
.store-selection-modal .close {
  background-color: var(--primary-color) !important;
  color: #fff;
  float: right;
  font-size: 20px !important;
  font-weight: bold;
  border: 0;
  position: absolute;
  right: 0px;
  top: 20px;
  padding: 4px 10px;
  padding-top: 2px;
  border-bottom-left-radius: 3px;
}
.store-selection-modal .store-selection-admin-btn {
  background-color: #1495a5;
  color: #fff;
  min-width: 140px;
  border: 0;
  padding: 10px 30px;
  text-align: center;
  font-size: 15px;
  text-transform: uppercase;
  width: 49%;
  border-radius: 0;
}
.close-admin {
  display: flex;
}
.store-selection-modal .store-selection-close-btn {
  color: #fff;
  background-color: #bb4a4a;
  width: 50%;
  display: inline;
  border-radius: 0px !important;
}
.store-selection-modal .button-1 {
  flex:1;
}
.store-selection-modal .button-1:not(:disabled):hover {
  border: none;
}
.store-selection-modal .red-dot {
  color: red;
}

.store-selection-modal .gold-dot {
  color: #f0b323;
}

.store-selection-modal h3 {
  color: white;
  margin-bottom: 15px;
}

.store-selection-modal .postcode-input {
  width: 90%;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

.store-selection-modal p {
  font-size: 13px;
  color: var(--white);
  font-weight: 700;
  max-width: 342px;
  margin-inline: auto !important;
  padding-inline: 20px;
}
.store-selection-modal p.age {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 300;
  text-transform: uppercase;
}

.store-selection-modal .question {
  color: #FFC000;
  font-weight: 700;
  margin: 0px 0 10px;
  font-size: 18px;
}

.store-selection-modal .button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.store-selection-modal .yes-btn,
.store-selection-modal .no-btn {
  background: var(--white);
  border: none;
  color: var(--dark-grey);
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 0;
  /*cursor: pointer;*/
}

.store-selection-modal .save-btn {
  background: #fff;
  border: none;
  color: var(--primary-black);
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 25px;
  margin-top: 10px;
  margin-bottom: 10px;
  min-width: 150px;
}

.store-selection-modal .action-buttons-group button:not(:disabled):hover {
  cursor: pointer;
}

.store-selection-modal #current-zipcode {
  color: #C09443;
}

.store-selection-modal .id25-badge .circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #c6953c;
  display: inline-block;
  background-image: url(../images/id.svg);
  background-size: cover;
  background-repeat: no-repeat;

}

.store-selection-modal #marketarea-list .ui-menu-item {
  background-color: white;
}

  .store-selection-modal #marketarea-list .ui-menu-item:hover {
    color: white;
    background-color: rgb(98, 97, 99);
  }

.store-selection-modal .selected-zipcode-div {
  display: none;
}

.store-selection-modal .selected-zipcode {
  color: #fff;
  font-weight: bold;
}
#store-selection-window .action-buttons button:disabled {
  background: #b3b3b3;
  color: white;
  cursor: not-allowed;
}

#store-selection-window .selected-zipcode-div {
  padding-left: 20px;
  padding-right: 20px;
  font-weight: 400;
}
.store-selection-modal .action-buttons-group {
  padding: 20px 10px;
  background: none;
  padding-top: 36px;
  position: relative;
  overflow: hidden;
}
.store-selection-modal .action-buttons-group * {
    position: relative;
    z-index: 2;
}
.store-selection-modal .action-buttons-group::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 110%;
  background: var(--secondary-color);
  border-radius: 50% 50% 0 0 ; 
  z-index: 1;
}
.store-selection-modal .zip-or-login h4 {
    color: var(--white);
}
.store-selection-modal .zip-or-login::after {
  content: "";
  display: block;
  height: 70px;
  width: 0;
  border-right: 1px solid var(--white);
  margin: 10px auto;
  opacity: 0.4
}
.store-selection-modal footer {
  font-size: 14px;
  color: var(--white);
  background: var(--secondary-color);
  padding-block: 10px;
  padding-bottom: 60px;
  font-weight: 500;
  padding-inline: 50px;
}
h2#store-selection-window-title {
  font-size: 20px;
  font-weight: 700;
  background: #fff;
  padding-top: 12px;
}
.store-selection-modal .logo {
  background: #fff;
  padding-block: 7px;
}
.store-selection-modal .logo-image {
  background: url(../images/login-top-logo.png) center no-repeat;
  background-size: 100%;
  width: 160px;
  margin: 0 auto;
  display: block;
  padding: 20px;
}
.modal-body {
  position: relative;
}
.store-selection-modal .form-group.row .area-select {
  position: absolute;
  left: 0;
}
.popup-login-trigger a {
  color: var(--primary-color);
  display: block;
  background: #fff;
  padding: 10px 20px;

}
.popup-logo {
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translate(-50%, -50%);
  width: 240px;
}
.popup-footer-logo {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%,50%);
  width: 80px;
}
.back-pm-button {
  background: none;
  padding: 10px 20px;
  color: var(--white);
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  border: none;
  cursor: pointer;
}
  .back-pm-button::before {
    content: "\e98a";
    font-family: 'icomoon';
    display: inline-block;
    margin-right: 10px;
  }

#marketarea-list li {
  list-style-type: none;
}
#marketarea-list li span{
     display: block;
    padding: 4px 10px;
    text-align: left;
}
#marketarea-list {
  position: absolute;
  left: 27px;
  z-index: 999;
  box-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.postcode-or-login-selection.authenticated .postcode-selection {
    position: relative;
}
.postcode-or-login-selection.authenticated .postcode-selection #marketarea-list {
  left: 10px;
  width: calc(100% - 20px);
}
.postcode-or-login-selection.authenticated .postcode-selection #zip-code-input {
    width: auto;
}
.store-selection-modal .popup-login-form a {
    color:var(--white);
}
.store-selection-modal .popup-login-form {
    padding-bottom: 30px;
}
.store-selection-modal .popup-login-form .inputs {
    max-width: 300px;
    margin-inline: auto;
}
.store-selection-modal .popup-login-form .forgot-password {
  float: right;
}
@media (max-width: 768px) {
  .store-selection-modal .modal {
      align-items: flex-start;
  }

  .postcode-or-login-selection:not(.authenticated) {
    padding-inline: 10px;
  }
  #zip-code-input {
    min-width: 110px;
  }
  .store-selection-modal .zip-or-login h4 {
    display: none;
  }
  .store-selection-modal h3 {
      font-size: 14px;
  }
  .postcode-or-login-selection:not(.authenticated) > .zip-or-login {
      margin-inline: auto;
  }
  .postcode-or-login-selection:not(.authenticated) > div:not(.zip-or-login) {
    width: calc(50% - 4px);
    flex-grow: 1;
  }
  .popup-login-trigger a {
    max-width: 110px;
    margin: auto;
    height: 44px;
  }
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}