﻿/* Modal giftVoucher */

#modal-giftVoucher {
    display: none;
    width: 410px;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-radius: 20px;
    background: var(--color-white);
}

#modal-giftVoucher.active {
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
}

span#giftVoucher-closeIcon {
    position: absolute;
    right: 20px;
    font-size: 20px;
    top: 20px;
    cursor: pointer;
}

.giftVoucher-modal-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    align-self: stretch;
}

section.giftVoucher-modal-header i {
    font-size: 15px;
}

.giftVoucher-modal-header h5 {
    text-transform: uppercase;
    color: var(--color-black);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.giftVoucher-imageAndInfo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    align-self: stretch;
}

.giftVoucher-img-section {
    display: flex;
    height: 170px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    align-self: stretch;
}

.giftVoucher-img-section img {
    height: 170px;
    width: 100%;
    object-fit: cover;
}

.giftVoucher-img-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

/* Titre de la carte cadeau */

.giftVoucher-modal-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-black);
    text-align: center;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    width: 100%;
}

.giftVoucher-modal-name-wrapper input {
    border: none;
    outline: none;
    color: var(--color-black);
    text-align: left;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.giftVoucher-modal-name-wrapper button {
    border: none;
    background: none;
    color: var(--color-black);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-decoration-line: underline;
}

/* Modal infos */
.giftVoucher-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 5px;
    align-self: stretch;
    color: var(--color-black);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.giftVoucher-modal-info-room {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
}

.giftVoucher-modal-info-room span {
    color: var(--color-black);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.giftVoucher-modal-info-date {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.giftVoucher-modal-info-date i {
    display: flex;
}

.giftVoucher-modal-info-date span {
    color: var(--color-black);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.modal-giftVoucher-action-txt {
    color: var(--color-black);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-decoration-line: underline;
    cursor: pointer;
}

.modal-giftVoucher-personnal-txt {
    position: relative;
    display: flex;
    align-self: stretch;
    flex-direction: column;
    gap: 10px;
}

div#charCount {
    position: absolute;
    bottom: -1px;
    right: 26px;
    font-size: 14px;
}

textarea.personnal-notification {
    font-family: 'Inter';
    display: block;
    align-self: stretch;
    height: 100px;
    border-width: 0.25px;
    border-style: solid;
    border-color: #000;
    border-radius: 5px;
    padding: 5px;
    outline: none;
}

/* Ligne avec la quantité et le prix */

.wrap-bottom-quantity-giftVoucher {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    align-self: stretch;
}

.modal-giftVoucher-quantity-prices span {
    color: var(--color-black);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Section sur le bouton d'ajout au panier */

.giftVoucher-modal-btn-section {
    width: 100%;
}

.giftVoucher-modal-btn-section > div {
    padding: 10px 50px;
    text-align: center;
    border-radius: 5px;
    background: var(--MAIN-COLOR);
    color: var(--color-white);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: .2s ease-in-out;
}

.giftVoucher-modal-btn-section > div:hover {
    background: var(--MAIN-COLOR);
    transition: .2s ease-in-out;
}

.giftVoucher-modal-btn-section > p {
    margin-top: 5px;
    font-size: 14px;
}


/*Media Query*/


@media (max-width: 768px) {

    #modal-giftVoucher.active {
        top: 50%;
        width: calc(100% - 40px);
        margin: 0 20px;
        transform: translateY(-50%);
        left: 0;
    }


    #modal-giftVoucher .modal-content {
        height: 100%;
        position: fixed;
    }

    .giftVoucher-imageAndInfo-wrapper {
        gap: 16px;
    }


}


