/* --------- ------------ ------------ ------------
    Checkout component
 --------- ------------ ------------ ------------*/

.checkout-cart {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

/* Hide steps by default */
.step {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Show active step */
.step.active {
  display: block;
  opacity: 1;
}

.checkout-cart__button {
  background: #f7f3f3;
  border: 6px solid #ccc;
  color: #999;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: 0.4s;
  font-size: smaller;
  position: relative;
}

/* Styling the active step button */
.checkout-cart__button.active {
  border: 6px solid #7b1414;
  color: #7b1414;
  background: #f7f3f3 !important;
}

/* Styling the title of the active or completed step */
.checkout-cart__button.active ~ .checkout-cart__title,
.checkout-cart__button--done ~ .checkout-cart__title {
  color: #7b1414;
}

.checkout-cart__button--done {
  background: #7b1414;
  border: 6px solid #7b1414;
  color: #fff;
}

.checkout-cart__item {
  z-index: 10;
  text-align: center;
}

.checkout-cart__title {
  display: none;
  margin-top: 10px;
}

.checkout-cart__progress {
  -webkit-appearance: none;
  position: absolute;
  width: 91%;
  z-index: 5;
  height: 6px;
  right: 50%;
  transform: translateX(50%);
  margin-bottom: 0px;
}

.checkout-cart__progress::-webkit-progress-value {
  background: #7b1414;
  transition: 0.5s ease;
}

.checkout-cart__progress::-webkit-progress-bar {
  background: #ccc;
}

/* Block: discount-box - Container for input and button */
.discount-box {
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
}

/* Element: input field */
.discount-box__input {
  flex: 1;
  border: none !important;
  outline: none !important;
  padding: 10px;
  font-size: 16px;
  background-color: unset !important;
}

/* with error */
.discount-box.error {
  border: 2px solid red;
}

/* step1*/
.count-btn{
  height: 24px;
  line-height: 17px;
}

/* step2  */

.form-select {
  padding: 12px;
  background-position: left 10px center;
}
.form-control {
  padding: 12px;
}
.switch-address label{
  margin-right: 43px;
  margin-top: 5px;
  color: rgba(13, 13, 13, 1);
  font-weight: 700;
  font-size: 14px;
}

.switch-address input[type="checkbox"]{
  float: right !important;
}

#savedAddresses label{
  margin-right: 31px;
}

#savedAddresses .form-check > div:first-child{
  margin-bottom: 10px;
}

input[type="radio"] {
  -webkit-appearance: none;
  background-color: #999 !important;
  border-color: #999;
  box-shadow: none !important;
  height: 20px !important;
  width: 20px !important;
  border-radius: 0 !important;
}

#savedAddresses input[type="radio"]{
  background-color: #fff !important;
  border-radius: 3px !important;
}

input[type="radio"]:checked {
  background-color: #15542b !important;
}

#savedAddresses input[type="radio"]:checked {
  background-color: #15542b !important;
}

input[type="radio"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  position: relative;
  top: 0px;
  z-index: 1;
  width: 11px;
  height: 11px;
  cursor: pointer;
  -webkit-box-shadow: 0px 6px 5px 0px rgba(0, 0, 0, 0.6);
  -moz-box-shadow: 0px 6px 5px 0px rgba(0, 0, 0, 0.6);
  box-shadow: 0px 6px 5px 0px rgba(0, 0, 0, 0.6);
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  border-radius: 40px;
  background-image: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, #ebf1f6),
    color-stop(50%, #abd3ee),
    color-stop(51%, #89c3eb),
    color-stop(100%, #d5ebfb)
  ) !important;
}

.form-check-input:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.label-switch {
  cursor: pointer;
  font-size: 15px;
  color: #3c3c3c;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

input[type="checkbox"]:not(.selectCheckBox) {
  -webkit-appearance: none;
  background-color: #999 !important;
  border-color: #999;
  box-shadow: none !important;
  height: 20px !important;
  width: 37px !important;
}

input[type="checkbox"]:not(.selectCheckBox):checked {
  background-color: #15542b !important;
}

input[type="checkbox"]:not(.selectCheckBox)::-webkit-slider-thumb {
  -webkit-appearance: none;
  position: relative;
  top: 0px;
  z-index: 1;
  width: 11px;
  height: 11px;
  cursor: pointer;
  background-color: #fff;
  -webkit-box-shadow: 0px 6px 5px 0px rgba(0, 0, 0, 0.6);
  -moz-box-shadow: 0px 6px 5px 0px rgba(0, 0, 0, 0.6);
  box-shadow: 0px 6px 5px 0px rgba(0, 0, 0, 0.6);
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  border-radius: 40px;
  background-image: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, #ebf1f6),
    color-stop(50%, #abd3ee),
    color-stop(51%, #89c3eb),
    color-stop(100%, #d5ebfb)
  );
}

input[type="range"] {
  -webkit-appearance: none;
  box-shadow: none !important;
  height: 1px !important;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  position: relative;
  top: 0px;
  z-index: 1;
  width: 16px;
  height: 16px;
  cursor: pointer;
  background-color: #15542b !important;
  -webkit-box-shadow: 0 !important;
  -moz-box-shadow: 0 !important;
  box-shadow: 0 !important;
  -webkit-border-radius: 50% !important;
  -moz-border-radius: 50% !important;
  border-radius: 50% !important;
}

.address-cart {
  border: 1px solid #d7d7d7;
  border-radius: 5px;
  padding: 16px;
}

.address-cart__title {
  color: #666666;
  margin-left: 4px;
}

.address-cart__info {
  color: #0d0d0d;
}

.address-part .form-check {
  max-width: 90px;
  flex: 0 0 90px;
  padding-left: 0 !important;
}

.address-part input[type="checkbox"] {
  float: none !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 0 !important;
  margin-left: 5px !important;
}

.address-part input[type="checkbox"]:checked {
  background-color: #15542b !important;
}
/* استایل برای اورلی */
.overlay-container {
  position: relative;
  /* display: inline-block; */
}

/* استایل برای لایه اورلی */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* اپسیتی 50 درصد */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%; /* گرد کردن اورلی برای هماهنگی با شکل تصویر */
  opacity: 0; /* پیش‌فرض مخفی */
  transition: opacity 0.3s ease; /* افکت نرم هنگام نمایش اورلی */
}

/* نمایش اورلی زمانی که کلاس selected اضافه شود */
.overlay-container.selected .overlay {
  opacity: 1; /* نمایان شدن اورلی */
}

/* استایل برای آیکون تیک */
.overlay i {
  color: #fff; /* رنگ سفید برای آیکون */
  font-size: 2.5rem;
}

.bg-darkred {
  background: #7b1414;
}

@media screen and (min-width: 992px) {
  .bg-lg-white {
    background: #fff !important;
  }
  .checkout-cart__title {
    display: flex !important;
  }
  .checkout-cart__progress {
    margin-bottom: 25px !important;
  }
  .checkout-cart__button {
    background: #fff !important;
  }

  /* Styling the active step button */
  .checkout-cart__button.active {
    background: #fff !important;
    color: #7b1414 !important;
  }

  .checkout-cart__button--done {
    background: #7b1414 !important;
    color: #fff !important;
  }
  #step5 {
    width: 37% !important;
  }

  .step5-btns{
    padding: 0 8%;
  }
  /* step1 */
  .show-table-lg{
    display: table!important;
  }
  .hide-lg{
    display: none!important;
    
  }
  .show-lg{
    display: block!important;
  }
}

@media screen and (min-width: 768px) {
  .hide-md {
    display: none !important;
  }

  .show-md {
    display: flex!important;
  }
  .w-md-unset{
    width: unset!important;
  }
  .w-md-50{
    width: 50%!important;
  }}
  @media screen and (max-width: 999px) and (min-width: 576px) {
  .show-tablet {
    display: flex!important;
  }
  .hide-tablet {
    display: none!important;
  }
}

@media screen and (max-width: 576px) {
  .hide-sm-max {
    display: none !important;
  }

  .show-sm-max {
    display: flex!important;
  }
  .w-sm-unset{
    width: unset!important;
  }
  .w-sm-50{
    width: 50%!important;
  }

  .checkout-cart__progress{
    width: 82%;
  }

  .product-garanty{
    margin-right: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-price{
    font-size: 13.17px;
    font-weight: 500;
    line-height: 26px;
  }

  .site-price{
    font-size: 16px;
    font-weight: 700;
    line-height: 30px;
  }

  .site-price span{
    font-weight: 300 !important;
  }

  .next-step-btn{
    width: 100%;
  }

  #savedAddresses .form-check{
    padding-left: 0 !important;
  }

  .checkout-icons{
    margin: 0 !important;
    padding: 0 !important;
  }

}

.checkout-footer{
  margin-top: 80px;
}

button.btn.btn-success  {
  height: 48px;
}

/* step 3*/
.select-bank{
  svg{
    font-size: 25px;
  }
}

/* step5 */

#step5 button.btn{
  height: 48px !important;
  border-radius: 6px !important;
}

.btn-outline-dark{
  border-color: #15542b !important;
  color: #15542b !important;
  background-color: transparent !important;

  svg{
    color: #15542b !important;
  }
}

.delete-icon svg.fa-trash-can.text-danger{
  color: #AA0E13 !important;
  font-size: 20px !important;
}

.right-float input{
  float: right !important;
  margin-left: 10px !important;
  margin-top: 0 !important;
}


@media only screen and (min-width: 768px) and (max-width: 992px){
  .address-cart{
    margin-bottom: 25px;
  }
}