/* === WK Login Popup Modal === */
.header-auth-modal {
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 1055 !important;
}

.header-auth-modal.show {
  display: -ms-flexbox !important;
  /* display: flex !important; */
  -ms-flex-align: center !important;
  align-items: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
}

.header-auth-modal:not(.show) {
  display: none !important;
}

.header-auth-modal .modal-dialog {
  max-width: 620px;
  position: relative;
  z-index: 1060;
}

.header-auth-email-submit-button {
  text-align: center;
}

.header-auth-alt {
  display: none;
}

.header-auth-modal .modal-content {
  /* border-radius: 24px; */
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  padding: 2rem 2rem 1.5rem;
}

.header-auth-modal__close {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  font-size: 1.6rem;
  opacity: 0.6;
}

.header-auth-modal__header {
  text-align: left;
  margin-bottom: .5rem;
}

.header-auth-modal__title {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.header-auth-modal__subtitle {
  color: var(--cc-muted);
  margin-bottom: 0;
}

.header-auth-email-form .form-group {
  margin-bottom: 1.25rem;
}

.header-auth-modal .wk-hide-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.header-auth-modal .header-auth-form-container[data-auth-form="register"] .form-group,
.header-auth-modal .header-auth-form-container[data-auth-form="register"] .form-field {
  position: relative;
}

.header-auth-modal .header-auth-form-container[data-auth-form="register"] .form-group,
.header-auth-modal .header-auth-form-container[data-auth-form="register"] .form-field {
  margin-bottom: 12px;
}

.header-auth-modal .header-auth-form-container[data-auth-form="register"] .form-control,
.header-auth-modal .header-auth-form-container[data-auth-form="register"] select.form-control,
.header-auth-modal .header-auth-form-container[data-auth-form="register"] textarea.form-control,
.header-auth-modal .header-auth-form-container[data-auth-form="register"] input.form-control {
  width: 100% !important;
}

.header-auth-modal .header-auth-form-container[data-auth-form="register"] .form-group .col-md-9,
.header-auth-modal .header-auth-form-container[data-auth-form="register"] .form-group .col-md-6,
.header-auth-modal .header-auth-form-container[data-auth-form="register"] .form-group .col-md-3 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.header-auth-email-submit.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.header-auth-email-hint {
  margin-top: 1rem;
}

.header-auth-step__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.header-auth-step__header h4 {
  margin-bottom: 0;
}

.header-auth-step-register .header-auth-step__header h4 {
  display: none;
}

.header-auth-modal .header-auth-form-container[data-auth-form="register"] .form-control-comment,
.header-auth-modal .header-auth-form-container[data-auth-form="register"] .help-block,
.header-auth-modal .header-auth-form-container[data-auth-form="register"] .field-comment {
  display: none !important;
}

form#login-form .wk-password-group {
    display: flex;
}
form#login-form .wk-password-group .col-md-9 {
    width: 100%;
}
#login-form .wk-password-group .form-control-label span {
    display: none;
}

.header-auth-step-login .header-auth-step__title {
  display: none;
}

.header-auth-back {
  font-size: 0.9rem;
}

.header-auth-email-summary{
  margin: 0 0 .3rem;
}
.header-auth-register-summary {
  margin: 0 0 .3rem;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

#customer-form button {
    text-transform: none;
}

form#customer-form .col-md-9 {
    width: 100%;
    padding: 0rem 1rem;
}

.header-auth-email-summary__value,
.header-auth-register-summary__value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #232323;
  margin-bottom: 0.25rem;
}

.header-auth-email-summary__modify,
.header-auth-register-summary__modify {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--cc-primary);
  text-decoration: none;
}

a.header-auth-email-summary__modify,
a.header-auth-register-summary__modify {
    color: var(--cc-primary) !important;
}

.header-auth-email-summary__modify:hover,
.header-auth-register-summary__modify:hover {
  text-decoration: underline;
}

.header-auth-form-container .form-footer {
  margin-top: 1rem;
  text-align: center;
}

button#submit-login, .header-auth-email-submit {
    text-transform: none;
}

.header-auth-modal .form-footer .btn,
.header-auth-modal .form-footer .form-control-submit {
  float: none !important;
  display: inline-block;
}

.header-auth-alt {
  margin-top: 1rem;
}

.header-auth-choice {
  text-align: center;
}

.header-auth-choice__text {
  margin-bottom: 1rem;
}

.header-auth-choice__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wk-auth-notifications .alert {
  margin-bottom: 1rem;
}

.modal-backdrop {
  display: none !important;
  z-index: 10 !important;
}

.header-auth-form-container .forgot-password {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Eye icon for password toggle inside login popup */
#wkLoginPopupModal .wk-password-group .input-group,
#wkLoginPopupModal .input-group {
  width: 100%;
  position: relative;
}

#wkLoginPopupModal .wk-password-group .input-group .form-control,
#wkLoginPopupModal .input-group .form-control {
  width: 100%;
  padding-right: 2rem;
  position: relative;
  z-index: 1;
}

#wkLoginPopupModal .wk-password-group .input-group .input-group-btn,
#wkLoginPopupModal .input-group .input-group-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 1.75rem;
  height: 1.75rem;
  pointer-events: auto;
}

#wkLoginPopupModal .wk-password-group .input-group .input-group-btn .btn[data-action="show-password"],
#wkLoginPopupModal .input-group .input-group-btn .btn[data-action="show-password"] {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0 !important;
  line-height: 1;
  text-indent: -9999px;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  outline: none;
  box-shadow: none;
}

#wkLoginPopupModal .wk-password-group .input-group .input-group-btn .btn[data-action="show-password"]:focus,
#wkLoginPopupModal .wk-password-group .input-group .input-group-btn .btn[data-action="show-password"]:active,
#wkLoginPopupModal .input-group .input-group-btn .btn[data-action="show-password"]:focus,
#wkLoginPopupModal .input-group .input-group-btn .btn[data-action="show-password"]:active {
  outline: none;
  box-shadow: none;
}

#wkLoginPopupModal .wk-password-group .input-group .input-group-btn .btn[data-action="show-password"]::before,
#wkLoginPopupModal .input-group .input-group-btn .btn[data-action="show-password"]::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.25rem auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.25rem 1.25rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%237a7a7a' viewBox='0 0 24 24'><path d='M12 5c-7 0-10 7-10 7s3 7 10 7 10-7 10-7-3-7-10-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-8a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/></svg>");
}

#wkLoginPopupModal .wk-password-group .input-group.is-password-visible .btn[data-action="show-password"]::before,
#wkLoginPopupModal .wk-password-group .input-group input.js-visible-password[type="text"] ~ .input-group-btn .btn[data-action="show-password"]::before,
#wkLoginPopupModal .input-group.is-password-visible .btn[data-action="show-password"]::before,
#wkLoginPopupModal .input-group input.js-visible-password[type="text"] ~ .input-group-btn .btn[data-action="show-password"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%237a7a7a' viewBox='0 0 24 24'><path d='M2.1 4.93 3.5 3.5l17 17-1.41 1.41-3.03-3.03A10.9 10.9 0 0 1 12 19c-7 0-10-7-10-7a18 18 0 0 1 5.06-5.86L2.1 4.93zm7.03 7.03a3 3 0 0 0 3.94 3.94l-1.1-1.1a1.5 1.5 0 0 1-1.74-1.74l-1.1-1.1zm2.87-6.4c7 0 10 7 10 7a18 18 0 0 1-4.11 5.3l-2.2-2.2a5 5 0 0 0-6.6-6.6l-1.7-1.7a10.2 10.2 0 0 1 4.61-1.8z'/></svg>");
}

#wkLoginPopupModal .wk-password-group .input-group .input-group-btn .btn[data-action="show-password"]:hover::before,
#wkLoginPopupModal .wk-password-group .input-group .input-group-btn .btn[data-action="show-password"]:focus::before,
#wkLoginPopupModal .wk-password-group .input-group .input-group-btn .btn[data-action="show-password"]:focus-visible::before,
#wkLoginPopupModal .input-group .input-group-btn .btn[data-action="show-password"]:hover::before,
#wkLoginPopupModal .input-group .input-group-btn .btn[data-action="show-password"]:focus::before,
#wkLoginPopupModal .input-group .input-group-btn .btn[data-action="show-password"]:focus-visible::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23ff5a7a' viewBox='0 0 24 24'><path d='M12 5c-7 0-10 7-10 7s3 7 10 7 10-7 10-7-3-7-10-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-8a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/></svg>");
}

#wkLoginPopupModal .wk-password-group .input-group.is-password-visible .btn[data-action="show-password"]:hover::before,
#wkLoginPopupModal .wk-password-group .input-group.is-password-visible .btn[data-action="show-password"]:focus::before,
#wkLoginPopupModal .wk-password-group .input-group.is-password-visible .btn[data-action="show-password"]:focus-visible::before,
#wkLoginPopupModal .input-group.is-password-visible .btn[data-action="show-password"]:hover::before,
#wkLoginPopupModal .input-group.is-password-visible .btn[data-action="show-password"]:focus::before,
#wkLoginPopupModal .input-group.is-password-visible .btn[data-action="show-password"]:focus-visible::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23ff5a7a' viewBox='0 0 24 24'><path d='M2.1 4.93 3.5 3.5l17 17-1.41 1.41-3.03-3.03A10.9 10.9 0 0 1 12 19c-7 0-10-7-10-7a18 18 0 0 1 5.06-5.86L2.1 4.93zm7.03 7.03a3 3 0 0 0 3.94 3.94l-1.1-1.1a1.5 1.5 0 0 1-1.74-1.74l-1.1-1.1zm2.87-6.4c7 0 10 7 10 7a18 18 0 0 1-4.11 5.3l-2.2-2.2a5 5 0 0 0-6.6-6.6l-1.7-1.7a10.2 10.2 0 0 1 4.61-1.8z'/></svg>");
}

/* Password field styling to match reference */
#wkLoginPopupModal .wk-password-group .form-control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #7a7a7a;
  margin-bottom: 6px;
}

#wkLoginPopupModal .wk-password-group .form-control {
  /* border: 1px solid #ff5a7a; */
  border-radius: 2px;
  height: 38px;
  padding-right: 2rem;
}

.form-group.row input[name="psgdpr"], .form-group.row .js-input-column:has(input[name="psgdpr"]) {
    margin-top: -18px;
}

#wkLoginPopupModal .custom-checkbox input[type=checkbox] {
    width: 0px !important;
}

.form-group.row input[name="customer_privacy"], .form-group.row .js-input-column:has(input[name="customer_privacy"]) {
    margin-top: -25px;
}

div#header-item\ user-info\ header_user_info .dropdown-toggle {
  color: white !important;
  margin-left: 5px;
}

div#header-item\ user-info\ header_user_info .material-icons {
  color: white;
}

div#header-item\ user-info\ header_user_info .dropdown-menu a {
  padding: 8px 1.5rem !important;
}

#wkLoginPopupModal .modal-dialog-centered {
    display: block !important;
    margin: 60px auto !important;
}

.term-and-condition-feedback {
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 991px) {
  .header-auth-modal .modal-content {
    padding: 1.5rem 1.5rem 1.25rem;
  }
  #wkLoginPopupModal .modal-dialog-centered {
      margin: 90px auto !important;
      margin-left: 0px !important;
  }
  .header-auth-modal__body{
    margin-top: 20px;
  }
}
