/* MODAL
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
    --lightgray: #efefef;
    --blue: steelblue;
    --white: #fff;
    --black: rgba(38, 38, 38, 0.2);
    --bounceEasing: cubic-bezier(0.51, 0.92, 0.24, 1.15);
  }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--black);
  visibility: hidden;
  opacity: 0;
  transition: all 0.35s ease-in;
}

.modal.is-visible {
  visibility: visible;
  opacity: 1;
}

.modal-dialog {
  position: relative;
  max-width: 500px;
  max-height: 80vh;
  background: var(--white);
  overflow: hidden;
  overflow-y: auto;
  font-family: 'Open Sans';
}

.modal-dialog > * {
  padding: 1rem;
  overflow-y: auto;
}

.modal-content {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
}

.modal-footer {
  display: block;
  position: sticky;
  height: fit-content;
  padding: 0 5px  1rem 5px;
  bottom: 0;
  z-index: 10;
  border: none;
  width: 100%;
  padding: 0;
  margin: 10px 0 0 0;
}


.modal p + p {
  margin-top: 10px;
  margin-bottom: 10px;
}
.p_title{
  font-family: 'Open Sans';
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}
.p_sub_title {
  font-weight: 400;
  font-size: 20px;
  font-family: 'Open Sans';
  margin: 0;
}
.p_regular {
  font-weight: 400;
  font-size: 16px;
  font-family: 'Open Sans';
  margin: 0;
}


/* Start: card Popup */
.accept_buttons_cards {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  font-family: 'Open Sans';
}

.addCard {
  cursor: pointer !important;
  background-color: #fff;
  text-decoration: none !important;
  text-align: center;
  color: #528400c2 !important;
  border: 1px solid #528400c2;
  padding: 10px;
  border-radius: 7px;
  width: 50%;
  margin-right: 2%;
}

.addCard:hover {
  color: #528400c2;
  border-color: #528400c2;
}

.withoutCard {
  cursor:wait;
  background-color: #fff;
  text-decoration: none !important;
  text-align: center;
  color: #fff !important;
  background: #528400;
  border: 1px solid #528400;
  padding: 10px;
  border-radius: 7px;
  width: 50%;
}

.withoutCard:hover {
  color: #575757;
  border-color: #528400c2;
}

.giftCardBox {
    width: 98%;
    margin: 5px auto;
    padding: 20px 0;
    background-color: #f1f1f1;
    border-radius: 10px;
}



    .giftCardBox span {
        color: #000;
        font-size: 16px;
        font-weight: 400;
        text-align: center;
        margin-left: 2%;
        margin-right: 2px;
        display: block;
        text-align: left;
        font-family: 'Open Sans';
    }

    .giftCardBox input {
        width: 80%;
        max-width: 260px;
        padding: 6px;
        border: 1px solid #000;
        border-radius: 5px;
        margin: 6px 3px 6px 2%;
        display: inline-block;
    }

#use_gift_card {
    background-color: white;
    display: inline-block;
    margin-left: 0px;
    cursor: pointer;
    padding: 6px 4px 6px;
    color: #528400;
    border-color: #528400;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 6px;
    min-width: 75px;
    max-width: 526px;
    font-weight: 400;
    text-align: center;
    border-width: 1px;
    border-style: solid;
}

    #use_gift_card:hover{
        color: #fff;
        background-color: #528400;
    }

#existingGiftCards {
    width: 98%;
    margin: 5px auto;
    padding: 20px 0;
    background-color: #f1f1f1;
    border-radius: 3px;
    display: flex;
    color: #000;
}

#existingGiftCards div {
    margin-left: 8px;
    display: flex;
}

#existingGiftCards .existingGiftCardBox .left_side {
    font-size: 32px;
    margin: auto;
    margin-left: 8px;
    margin-right: 5px;
    display: flex;
    margin-top: 10px;
    width: 90px;
}

#existingGiftCards .existingGiftCardBox .left_side:before {
    margin-left: -2px;
}

.existingGiftCardBox {
    width: 50%;
    flex-wrap: wrap;
}

.existing_gift_card_right_side {
    width: 50%;
    display: flex;
    flex-direction: row-reverse;
}

    .existing_gift_card_right_side span {
        min-width: 85px;
        margin-top: auto;
        margin-bottom: auto;
        text-align: right;
        padding-right: 10px;
    }

.existingGiftCardBox .right_side {
    display: flex;
    margin-left: 5px;
}

.existingGiftCardBox .middle {
    display: flex;
    flex-direction: column;
    margin-right: 5px;
}

.existingGiftCardBox .remove_gift_card {
    background-color: #fff;
    border-color: #000;
    color: #000;
    font-size: 16px;
    text-align: center;
    border-style: solid;
    border-width: 1px;
    width: 160px;
    margin: auto;
    padding: 7px 12px 7px 12px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-radius: 5px;
    margin-top: 7px;
    cursor: pointer;
}

#gift_card_error {
    width: fit-content;
    padding: 8px;
    border-radius: 5px;
    background-color: #FBCECF;
    margin-right: 16px;
    min-width: 260px;
}

#giftCardTotalSumDiv, #before_gift_card_total_div {
    display: flex;
    flex-direction: row-reverse;
    width: 98%;
    margin-left: 11px;
    margin: auto;
}

#order_total_gift_card_sum, #order_total_price_cell {
    width: 7.7%;
    padding-right: 10px;
    min-width: 77px;
    text-align: right;
}

#order_total_gift_card_label, #before_gift_card_total_label {
    width: 23.4%;
    min-width: 71px;
    max-width: 160px;
}


@media screen and (max-width: 990px), screen and (max-height: 600px) {
    .giftCardBox, #existingGiftCards {
        width: 99%;
        min-width: 350px;
        margin-left: 1%;
        border-radius: 5px 0px 0px 5px;
    }

    .existing_gift_card_right_side span {
        padding-left: 1%;
    }

    #giftCardTotalSumDiv, #before_gift_card_total_div {
        width: 99%;
        margin-left: 1%;
    }



}
@media screen and (max-width: 768px) {
    .giftCardBox, #existingGiftCards {
        width: 100%;
        min-width: 300px;
        border-radius: 0px 0px 0px 0px;
        margin-left: 0;
    }

    .giftCardBox input {
        max-width: 240px;
    }
    
    #gift_card_error {
        min-width: 240px;
    }


}


    @media only screen and (max-width: 600px) {
        .accept_buttons_cards {
            flex-direction: column;
        }

        .addCard,
        .withoutCard {
            width: 60%;
            margin: 0;
        }

        .withoutCard {
            margin-top: 3%;
        }

        .giftCardBox span, .giftCardBox input {
            margin-left: 16px;
        }
    }

    @media only screen and (max-width: 400px) {
        .addCard,
        .withoutCard {
            width: 80%;
            margin: 0;
        }

        .withoutCard {
            margin-top: 4%;
        }
    }

    /* End: card Popup */

