/* ------------ [ choose city jq_modal , choose phone jq_modal , cnf_remove_cart_modal] ------------------ */

/* blocker bg for all popups */
.jquery-modal.blocker {
  background-color: rgba(0, 0, 0, 0.92) !important;
}
/* ----------- */
#choose_city_modal,
#choose_phone_modal,
#cnf_remove_cart_modal {
  padding: 5px;
  top: -15% !important; /* move it up little bit */
}

#choose_city_modal .modal_just_wrap,
#choose_phone_modal .modal_just_wrap,
#cnf_remove_cart_modal .modal_just_wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
  /* width: 100%; */
  padding: 5px;
  background-color: white;
}

#choose_city_modal .modal_just_wrap > *,
#choose_phone_modal .modal_just_wrap > *,
#cnf_remove_cart_modal .modal_just_wrap > * {
  user-select: none;
}
.c_c_nt {
  background-color: black;
  border-radius: 5px;
  padding: 4px 10px;
  color: var(--MAIN-MASTARD);
  font-size: 16px;
  align-self: center;
}
.city_opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.city_opts .sub_city {
  background-color: grey;
  color: #1f1f1f;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 16px;
  font-weight: bold;
}

.city_opts .sub_city.active {
  background-color: green;
  color: white;
  box-shadow: 0 0 5px green;
  scale: 1.1;
}

.choose_cart_phone {
  border: 2px solid black;
  outline: none;
  border-radius: 5px;
  padding: 4px 8px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: blue;
  max-width: 95%;
}
.choose_cart_phone::placeholder {
  font-size: 15px;
  font-weight: normal;
  color: grey;
}

.choose_cart_phone:focus::placeholder {
  color: transparent;
}

#cnf_choose_city_btn,
#cnf_choose_phone_btn {
  background-color: black;
  box-shadow: 0 0 5px black;
  width: calc(100% - 100px);
  color: white;
  padding: 4px 15px;
  border-radius: 5px;
  font-size: 17px;
  font-weight: bold;
  margin-top: 15px;
  border: none;
  outline: none;
}
#cnf_choose_phone_btn {
  width: max-content;
}

.crt_btns {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.cnf_rem_cart_h {
  text-wrap: wrap;
  color: black;
  text-align: center;
  padding: 5px;
  font-family: q_bold;
}
.cnf_rem_cart_btn,
.cancel_rem_cart_btn {
  font-family: q_bold;
  cursor: pointer;
  font-size: 16px;
  color: white;
  padding: 5px 10px;
  border: none;
  outline: none;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  margin: 0 15px;
}
.cnf_rem_cart_btn {
  background-color: maroon;
}
.cancel_rem_cart_btn {
  background-color: black;
}
/* #################### sanf_popup_dialog modal dialog #################### */

#sanf_popup_dialog {
  max-height: 70vh;
  top: 40%;
  left: 50%;
  width: 700px;
  overflow: auto;
  transform: translate(-50%, -40%);
  padding: 5px;
  background: black;
  border-radius: 10px;
  box-shadow: 0 0 20px white;
  /* Closed state of the dialog   */
  opacity: 0;
  display: none; /* the <dialog> element is display none by default no need for css */
  transition: all 0.7s allow-discrete;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}

/* ---- x_close_sp_dialog ------  */
#sanf_popup_dialog .x_close_sp_dialog {
  color: red;
  background-color: black;
  box-shadow: 0 0 3px #d3d3d3;
  border-radius: 20px;
  padding: 3px;
  cursor: pointer;
  align-self: flex-end;
  user-select: none;
}
/* ---------------  */

#sanf_popup_dialog .sanf_details {
  display: flex;
  column-gap: 16px;
  width: 100%;
  justify-content: center;
}

.sanf_details .popup_img_wrap {
  height: auto;
  max-width: 120px;
  max-height: 120px;
  background-color: white;
  border-radius: 6px;
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* popup_img_wrap img */
.popup_img_wrap > img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  display: block;
  margin: auto;
  object-fit: contain;
}

/* --- sanf_data ---- */
.sanf_details .sanf_data {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  row-gap: 5px;
  padding: 0 4px 4px 0;
  color: var(--MAIN-MASTARD);
}
.sanf_data .popup_sanf_name {
  font-family: "Cairo";
  font-size: 15px;
  line-height: 15px;
  text-align: end;
}

.popup_unit_name {
  font-size: 12px;
  color: #999999;
  padding-right: 2px;
}

.popup_price {
  color: var(--MAIN-MASTARD);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  margin-top: auto;
  font-size: 14px;
  line-height: 14px;
  padding-right: 2px;
}

.popup_price .prc {
  height: max-content;
  font-family: "Poppins";
}

.popup_price .crn {
  color: #a5a5a5;
  margin-bottom: 2px;
}
.popup_price img {
  width: 12px;
  height: auto;
  margin-bottom: 2px;
}

/* --- pick_data --- */

.pick_data {
  display: flex;
  width: 100%;
  gap: 4px;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  margin-top: 7px;
  padding-top: 4px;
  border-top: 1px dashed var(--MAIN-MASTARD);
}
.pick_data .fractions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 5px;
  box-shadow: 0 0 5px black;
  border-radius: 5px;
}

.fractions .frc {
  text-wrap: nowrap;
  padding: 2px 15px;
  color: gray;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
  border: 1px solid gray;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
}
.fractions .frc.active {
  color: white;
  border-color: var(--MAIN-MASTARD);
  background-color: #004b00;
}

.popup_unit_measure {
  color: gray;
  width: max-content;
  font-size: 15px;
  margin: 12px 0 3px;
}

/* ------------------------[num_wrap]------------------------------ */

.num_wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
}

.num_wrap .decrease,
.num_wrap .increase {
  width: 35px;
  height: max-content;
  font-size: 18px;
  border: none;
  outline: none;
  border-radius: 5px;
  cursor: pointer;
  align-self: center;
  background: transparent;
  user-select: none;
  color: var(--MAIN-MASTARD);
  box-shadow: 0 0 2px white;
}

.num_wrap .increase:disabled,
.num_wrap .decrease:disabled {
  cursor: not-allowed;
  color: gray;
  box-shadow: 0 0 2px gray;
}

.num_wrap input[type="number"] {
  width: 70px;
  font-size: 18px;
  padding: 4px;
  text-align: center;
  border-radius: 4px;
  background: transparent;
  color: var(--MAIN-MASTARD);
  border: none;
  outline: none;
}

/* Hide default arrows */
.num_wrap input::-webkit-outer-spin-button,
.num_wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.num_wrap input[type="number"] {
  -moz-appearance: textfield;
}

.num_wrap input:focus {
  box-shadow: 0 2px 5px black;
}

/* //---------------------------- */
/* ------------------------[popup_sanf_total]------------------------------ */

.popup_sanf_total {
  font-size: 17px;
  line-height: 17px;
  background-color: black;
  box-shadow: 0 0 4px var(--MAIN-MASTARD);
  align-self: flex-start;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  margin: 25px 0;
}

.popup_sanf_total > span {
  direction: rtl;
}

.popup_sanf_total .pre {
  color: white;
}

.popup_sanf_total .crn {
  color: grey;
}

.popup_sanf_total .sn_total {
  color: #febe00;
  /* color: #0e005a; */
}

/* //--------------[sanf popup btns]-------------- */
.popup_action_btns {
  display: flex;
  width: max-content;
  gap: 15px;
  font-size: 14px;
  height: max-content;
}

.close_dialog,
.add_to_cart {
  padding: 3px 8px;
  color: white;
  font-size: 17px;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  outline: none;
  cursor: pointer;
}
.close_dialog {
  background-color: maroon;
}
.add_to_cart {
  background-color: green;
}
/* //---------------------------- */

/* --------[ manipulating order details dialog show hide animations  ]------ */
/* after Open state of the dialog  */
#sanf_popup_dialog:open {
  display: flex;
  opacity: 1;
}
/* Before open state  */
/* Needs to be after the previous dialog:open rule to take effect,
      as the specificity is the same */
/* @starting-style must be placed below the same state of it  */

@starting-style {
  #sanf_popup_dialog:open {
    opacity: 0;
  }
}
/* Transition the :backdrop when the dialog modal is promoted to the top layer */
#sanf_popup_dialog::backdrop {
  background-color: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: all 0.7s allow-discrete;
}
#sanf_popup_dialog:open::backdrop {
  background-color: #00000080;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* This starting-style rule cannot be nested inside the above selector
  because the nesting selector cannot represent pseudo-elements. */
/* @starting-style must be placed below the same state of it  */

@starting-style {
  #sanf_popup_dialog:open::backdrop {
    background-color: transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
  }
}

/* //--------------------------- */
.flying-clone {
  background: transparent;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  pointer-events: none;
}
/* -------- shopping cart ------- */
.cart_icon {
  position: fixed;
  bottom: 45px;
  right: 14px;
  z-index: 1100;
}
.cart_icon span {
  color: white;
  background-color: blue;
  border-radius: 50%;
  z-index: 1101;
  text-align: center;
  padding: 4px;
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 12px;
}
.cart_icon .wr {
  border-radius: 50%;
  background-color: #000000;
  cursor: pointer;
  box-shadow: 0 0 8px var(--MAIN-MASTARD);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  padding: 2px;
}
.cart_icon img {
  width: auto;
  height: 17px;
  background-color: transparent;
  display: block;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(5px);
  }
}

.cart-bounce {
  animation: bounce 0.5s ease;
}
/* ------------------[ shopping_cart_modal ]-------------------- */

#shopping_cart_modal {
  padding: 5px;
  background: transparent;
  width: 95%;
  top: -5% !important; /* move it up little bit */
}
#shopping_cart_modal .modal_just_wrap {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 5px;
  gap: 15px;
  align-items: center;
  justify-content: flex-start;
  max-height: 70vh;
  min-height: 40vh;
  overflow-y: auto;
  width: 100%;
  padding: 5px 10px;
}
#shopping_cart_modal .modal_just_wrap > * {
  user-select: none;
}
.sc_nt {
  background-color: black;
  border-radius: 5px;
  padding: 5px 20px;
  color: var(--MAIN-MASTARD);
  font-size: 16px;
}
.sc_asnaf_wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: 35px;
  border-bottom: 2px dashed var(--MAIN-MASTARD);
  /* padding: 5px; */
}
.sc_sanf_wrap {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  background: transparent;
  box-shadow: 0 0 4px black;
  border-radius: 8px;
}
.details_wrap {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sc_sanf_details {
  width: 100%;
  display: flex;
  gap: 5px;
}
.sc_sanf_details .sc_sanf_img_wrap {
  height: auto;
  max-width: 70px;
  max-height: 70px;
  background-color: white;
  /* border-radius: 6px; */
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* sc_sanf_img_wrap img */
.sc_sanf_img_wrap > img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  display: block;
  margin: auto;
  object-fit: contain;
}
/* --- sc_sanf_data ---- */
.sc_sanf_details .sc_sanf_data {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  row-gap: 3px;
  padding: 4px 4px 4px 0;
  color: black;
}
.sc_sanf_data .sc_sanf_name {
  font-family: "Cairo";
  font-size: 13px;
  line-height: 13px;
  text-align: end;
  font-weight: bold;
}
.sc_unit_name {
  font-size: 12px;
  color: #4d4d4d;
  padding-right: 2px;
}
.sc_price {
  color: var(--MAIN-MASTARD);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  margin-top: auto;
  font-size: 12px;
  line-height: 12px;
  padding-right: 2px;
  background-color: black;
  padding: 2px 5px;
  border-radius: 4px;
}
.sc_price .prc {
  height: max-content;
  font-family: "Poppins";
}
.sc_price .crn {
  color: #a5a5a5;
  margin-bottom: 2px;
}
.sc_price img {
  width: 12px;
  height: auto;
  margin-bottom: 2px;
}
/* --- sc_sn_chosen_data --- */
.sc_sn_chosen_data {
  margin: 4px 0;
  font-size: 13px;
  line-height: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  padding: 0 4px;
}
.sc_sn_chosen_data span {
  direction: rtl;
}
.sc_tot_wrap,
.sc_sn_am_wrap {
  color: var(--MAIN-MASTARD);
  background-color: black;
  padding: 2px 4px;
  border-radius: 2px;
  box-shadow: 0 0 2px black;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sc_sn_chosen_data .pre {
  color: white;
}
.sc_sn_chosen_data .crn {
  color: #a5a5a5;
}
.sc_sn_tot,
.sc_sn_amount {
  color: #febe00;
  font-weight: bold;
  /* color: #0e005a; */
}
/* --------------------------------------------- */
.sc_rem_sanf,
.sc_edit_sanf {
  padding: 0 7px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sc_rem_sanf {
  background-color: red;
  border-radius: 0 8px 8px 0;
}
.sc_edit_sanf {
  background-color: blue;
  border-radius: 8px 0 0 8px;
}

.sc_rem_sanf img,
.sc_edit_sanf img {
  width: 18px;
  height: auto;
}

/* ------- money_wrap  - order_total delivery_fees grand_total ----------- */

.money_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: max-content;
  background-color: var(--MAIN-MASTARD);
  border-radius: 5px;
  padding: 8px;
}
.money_wrap span {
  direction: rtl;
}

.money_wrap > div,
.money_wrap > span {
  display: flex;
  gap: 10px;
  width: max-content;
  justify-content: center;
  align-items: center;
}
.money_wrap > div {
  border-radius: 10px;
  padding: 2px 10px;
}

.sc_dlv_fees_wrap,
.sc_ord_tot_wrap,
.sc_grand_tot_wrap {
  display: flex;
  align-items: center;
  gap: 3px;
}

.sc_grand_tot_wrap {
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 18px;
  background-color: var(--MAIN-MASTARD);
  box-shadow: 0 0 5px black;
}
.sc_grand_tot_wrap .pre,
.sc_grand_tot_wrap .crn {
  font-size: 16px;
  font-weight: bold;
}

.sc_dlv_fees,
.sc_ord_tot {
  color: blue;
}

.money_wrap .pre,
.money_wrap .crn {
  font-size: 12px;
  line-height: 12px;
}
.money_wrap .pre {
  color: black;
  font-weight: bold;
}
.money_wrap .crn {
  color: #575757;
}

/* ------- sc_phone_wrap sc_city_wrap ------- */

.sc_city_wrap,
.sc_phone_wrap {
  width: calc(100% - 60px);
  border-radius: 5px;
  /* padding: 5px; */
  display: flex;
  gap: 5px;
  align-items: stretch;
  justify-content: space-between;
  color: white;
  background-color: black;
}
.sc_city_wrap,
.sc_phone_wrap {
  margin-top: -10px;
}
.sc_city_wrap > span,
.sc_phone_wrap > span {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}
.sc_edit_phone,
.sc_edit_city {
  background-color: blue;
  border-radius: 5px 0 0 5px;
}
.sc_edit_phone img,
.sc_edit_city img {
  width: 17px;
  height: auto;
}
/* -------- btn_confirm_cart  btn_edit_cart ------- */
.cart_below_btn {
  padding: 4px 18px;
  border: none;
  outline: none;
  border-radius: 8px 8px 0 0;
  font-size: 15px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
  /* font-family: "Cairo"; */
  box-shadow: 0 0 5px black;
}

.btn_confirm_cart {
  /* background-color: green; */
  color: #da0000;
}
.btn_send_cart_changes {
  /* background-color: transparent; */
  color: #0000c5;
}
.btn_cart_sent {
  background-color: #c2c2c2;
  color: #007000;
  box-shadow: none;
}
.will_contact_you_nt {
  font-size: 14px;
  width: 100%;
  text-align: center;
}
.saved_wr {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ------------------- */

.loader-dots {
  margin: 10px 0 -10px;
  background-color: var(--MAIN-MASTARD);
  color: var(--MAIN-MASTARD);
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0px 0 0 0, 14px 0 0 2px, 28px 0 0 4px, 42px 0 0 2px, 56px 0 0 0;
  transform: translateX(-28px);
  animation: l21 0.8s infinite alternate linear;
  animation-delay: 1s;
}

@keyframes l21 {
  50% {
    box-shadow: 0px 0 0 2px, 14px 0 0 4px, 28px 0 0 2px, 42px 0 0 0,
      56px 0 0 2px;
  }
  100% {
    box-shadow: 0px 0 0 4px, 14px 0 0 2px, 28px 0 0 0, 42px 0 0 2px,
      56px 0 0 4px;
  }
}
.loader-dots.paused {
  animation: none !important;
}

/* ----------[btn_remove_cart]--------- */
.btn_remove_cart {
  background-color: maroon;
  color: white;
  border-radius: 5px;
  padding: 3px 6px;
  border: none;
  outline: none;
  box-shadow: 0 0 5pc maroon;
  align-self: flex-start;
  width: max-content;
}
