/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
 

form#loyalty_form {
  padding: 20px;
  background: #F5F4F2;
}

form#loyalty_form * {
  color: #000;
 
  font-family: "Narkiss Block", Sans-serif;
  font-size: 15px;
  font-weight: 300; 

  line-height: 30px;
  letter-spacing: 0.5px;
}

form#loyalty_form h2 {
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 40px; 
  line-height: 30px;
  letter-spacing: 0.5px;
  color: #5C6053;
}
form#loyalty_form .loyalty-container input,
form#loyalty_form .loyalty-container select {
  height: 41px;  box-shadow: none;
  background: #fff;
  border:0;    border-radius: 0px;
  border: 1px solid #dbdada;
  font-size: 16px;
  font-weight: 300;
    line-height: 24px;
    color:#000
}
form#loyalty_form input:focus-visible,
form#loyalty_form select:focus-visible,
form#loyalty_form button:focus-visible,
form#loyalty_form textarea:focus-visible { 
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}

 #loyalty_wrap{
  max-width: 500px;
    margin: auto;
 }

.loyalty-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.loyalty-container label {
  max-width: 48%;
  width: 100%;
  font-weight: 400;
}

.loyalty_terms_wrap {
  margin-bottom: 20px;
}

.loyalty-element-checkbox {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-weight: 400;
}

.loyalty-element-checkbox p {
  margin: 0;    font-weight: 300;
}

.loyalty-required {
  color: red !important;
}

html[dir="rtl"] input#loyalty_anniversary,
html[dir="rtl"] input#loyalty_birthday {
  text-align: right;
}

.loyalty_submit_message {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #f1f0ec;
  padding: 50px 50px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

 
form#loyalty_form button.loyalty_submit_message_close,
form#loyalty_form #loyalty_submit {
  background: #5C6053;
  color: #fff ;
  border: 1px solid #5C6053;
  padding: 0px 30px;
  font-size: 15px;
  height: 40px;    box-shadow: none;
  line-height: 40px;
  width:100%;
  margin:0 auto;
  border-radius: 0;
  font-weight: 400;
  display: block;
}
.loyalty_terms_wrap p{
  font-size: 10px;
  font-weight: 600;
  line-height: 24px;
}
form#loyalty_form #loyalty_submit:focus,
form#loyalty_form button.loyalty_submit_message_close:focus{
  background: #000;
  color: #fff; 
}
@media (hover: hover) {
  form#loyalty_form button.loyalty_submit_message_close:hover, 
  form#loyalty_form #loyalty_submit:hover {
    background: #fff;
    color: #5C6053; 
  }
}

.loyalty_link {
  color: #036A88 !important;
}

.loyalty_link:hover {
  text-decoration: underline;
}

#loyalty_popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  z-index: 1000;
  padding: 50px;
  width: 100%;
  max-width: 90vw;
  max-height: 95vh;
  overflow: auto;
}

html[dir='ltr'] #loyalty_popup {
  left: unset;
  right: 50%;
}

#loyalty_popup button {
  border: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
}

html[dir='ltr'] #loyalty_popup button {
  right: unset;
  left: 15px;
}

#loyalty_popup h1,
#loyalty_popup h2,
#loyalty_popup h3,
#loyalty_popup h4,
#loyalty_popup h5,
#loyalty_popup h6 {
  color: #000;
}

#loyalty_popup h2 {
  text-align: center;
}

#loyalty_popup,
#loyalty_popup div,
#loyalty_popup p {
  color: #000;
}

#loyalty_popup button:hover {
  color: #000;
  border: none;
  background: none;
}

.ui-datepicker-title {
  display: flex;
  gap: 2%;
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
  width: 48% !important;
  height: auto;
  padding: 5px;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  margin-top: 5px;
}



form#loyalty_form .loyalty_err_handler,form#loyalty_form .loyalty_err_handler_general{
  color:red;  
}
.loyalty-element-checkbox {
  flex-wrap: wrap; margin-bottom: 10px;
}
.loyalty-element-checkbox input{
  flex: 0;
}
.loyalty-element-checkbox .loyalty_err_handler{
  flex: 0 0 100%;
}
.loyalty-element-checkbox p{
  flex: 0 0 calc(100% - 30px);
}

.loyalty-container{
  display: grid;
  gap:10px;
  margin-bottom: 20px;
  grid-template-columns: 1fr 1fr;
}
.loyalty-container label{max-width: 100%; width: 100%;}
.loyalty-container label p{margin:0 ;}
form#loyalty_form .loyalty-container input, form#loyalty_form .loyalty-container select{
  width:100%;
}

.loyalty-container label[for="loyalty_pass"]{
  grid-column:1 / span 2;
}

@media screen and (max-width: 850px) {
  .loyalty-container label {        display: block;
    max-width: 100%; margin-bottom: 20px;
    width: 100%;
  }
  .loyalty-container label p {
      margin: 0 0 5px;
  }
  .loyalty-container{display: block;}
  #loyalty_submit{
    width:100%; height: 50px;
  }
}