.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 500
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);

}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(255, 254, 167, 0.2);
    border-radius: 10px;
    animation: modalOpen 0.5s ease-in-out forwards;
    display: flex;
    flex-direction: column;
    width: 295px;
}


.modal-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500 !important;
    font-size: 1.2em;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
}


@keyframes modalOpen {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* FORZAR CAMBIOS EN GRAVITY */
.gform_footer {
    padding: 0 !important;
}

/* SELLER */
.seller-title h2 {
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* max-width: 527px; */
    white-space: normal;
    max-height: 20px;
    margin-bottom: 7.5px;
}

.seller-title span {
    font-size: 13px;
    margin-top: -10px;
    display: block;
}

/* INFORMACIÓN ENTIDAD */
#info-entidad .modal-content {
    width: auto !important;
}

.info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
}

.info-header {
    width: 100%;
    margin-bottom: 20px;
}

.more-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 50%;
    flex: 0 0 50%;
}

.more-info span {
    margin-left: auto;
    cursor: pointer;
}

.reviews {
    display: flex;
    align-items: center;
}

.stars {
    display: flex;
    margin-right: 8px;
}

.info-tab {
    flex: 1;
    text-align: justify;
}

.info-item {
    display: flex;
    align-items: center;
    justify-items: center;
}
.mb-6{
    margin-bottom: 15px;
}
.info-item i {
    margin-right: 10px;
    margin-bottom: 3px;
    font-size: 15px;
}
.info-item i.fa-envelope {
    font-size: 13px !important;
}
.info-item i.fa-map-marker {
    font-size: 18px !important;
    margin-bottom: 5px;
}


.info-item span {
    margin-right: 5px;
    font-weight: 600;
} 
.info-item p {
    margin-bottom: 9px !important;
}
#mb-info-entidad h3 {
    line-height: 1em;
}

.map-container {
    flex: 1;
    width: auto;
    padding-right: 40px;
}

.map-container iframe {
    width: 100%;
    position: relative;
    top: -100%;
}

.map-container .shade {
    background-color: #3382a2;
    height: 100%;
    position: relative;
    left: 18px;
    top: 18px;
}

@media (max-width: 1432px) {
    #info-entidad .modal-content {
        width: 80vw;
        height: 60vh;
    }

    .info-container {
        flex-direction: column;
        padding: 0;
    }

    #mb-info-entidad {
        overflow: auto;
        padding: 5px 10px;
    }

    .map-container {
        margin-top: 20px;
        padding: 0;
        order: 2;
    }

 
    .info-tab {
        order: 1;
    }
}

@media (max-width: 500px) {

    .text-more-info,
    .info-item span {
        display: none;
    }
}

#error .modal-content,
#confirmationPopup .modal-content,
#msg-body .modal-content {
    width: 350px;
    text-align: center;
}

#confirmationPopup .modal-title,
#msg-body .modal-title,
#error .modal-title {
    justify-content: center;
    font-size: 3.2em;
}

#confirmationPopup .modal-body,
#msg-body .modal-body {
    margin-top: 15px;
    display: block;
}

#mb-msg-body .fa {
    font-size: 2em;
    color: #f2cf45 !important;
}

/* Eliminar */
#confirmationPopup i {
    color: #dd4444;
}

.group-btn {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.group-btn button {
    border: 2px solid #3382a2;
    color: #3382a2;
    width: 90px;
    height: 29px;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out
}

.group-btn button.confirm {
    border: 2px solid #3382a2;
    color: #3382a2;
}

.group-btn button:hover {
    background-color: #3382a2;
    color: #fff;
    border-radius: 0;
}

.group-btn button:hover:after {
    opacity: 0;
}
.text-center {
    text-align: center;

}

.modal-body h3 {
    line-height: 1.8em !important;
}

/* MSG-BODY */
#msg-body h3 {
    margin-top: 20px;
}

#msg-body .modal-content {
    width: 350px;
}

#msg-body .content-img {
    display: flex;
    justify-content: center;
}

#msg-body img {
    width: 50px;
}

/* Exchange Confirmation new user */
@media (min-width: 999px) {
    #exchange-experienced-user .modal-content,
    #exchange-confirmation-new-user .modal-content {
        width: 400px;
    }
}

@media (max-width: 999px) {
    #exchange-experienced-user .group-btn button{
        height: auto;
        padding-bottom: 4px;
    }
    #exchange-experienced-user .group-btn button:first-child {
        margin-right: 10px;
    }
}

#exchange-experienced-user .seller-title,
#exchange-confirmation-new-user .seller-title{
    text-align: center;
    font-weight: 600;
    width: 100%;
}
.content-text {
    padding: 15px 0;
}
.content-text .container-text{
    width: 100%;
    display: flex;
    background: #eee;
    border-radius: 32px;
    position: relative;
    padding: 10px 8px;
}
textarea.textfield {
    width: 87%;
    border: none;
    background: transparent;
    resize: none;
    font-size: 14px;
    padding: 0px;
    height: 34px;
    align-content: center;
    display: flow;
    padding-left: 6px;

}
.button-send{
    width: 25px;
    height: 25px;
    background-position: center center;
    background-size: 25px 25px;
    position: absolute;
    right: 14px;
    top: 15px;
    border: none;
    align-content: center;
    display: flow;
}
.button-send:hover{
    cursor: pointer;
}
.btn-exchange {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #028090;
    width: 100%;
    border-radius: 4px;
    background: transparent;
    color: #028090;
    cursor: pointer;
    font-size: 15px;
    padding: 5px 15px;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease, border-radius 0.3s ease;
    overflow: hidden;
    padding-bottom: 7px;
    margin-top: 25px;
}

.btn-exchange span {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.btn-exchange:hover {
    background-color: #3382a2;
    color: #fff;
    border-radius: 0;
}
.btn-reserve{
    border: 2px solid #969292;
    color: #969292
}
.btn-reserve:hover{
    background-color: #969292;
    border: 2px solid #969292;
}
/* Exchange Confirmation Experienced User */
#exchange-experienced-user .group-btn button{
    width: auto;
}
#exchange-experienced-user .group-btn {
    margin-top: 20px;
}
#exchange-experienced-user .msg,
#exchange-confirmation-new-user .msg{
    border-top: solid 0.1px #0000000f;
    border-bottom: solid 0.1px #0000000f;
    text-align: justify;
    padding: 18px 0px;
}
#exchange-experienced-user .msg i,
#exchange-confirmation-new-user .msg i{
    color: #FFC107;
    position: relative;
    top: -1px;
}

/*Exchange - Reserve Option*/
#exchange-reserve .modal-content {
   padding: 0 9px 9px;
}
#mb-exchange-reserve{
    margin-top: -1px;
}
.exchange-reserve h4{
    font-size: 1.1em;
    font-weight: 600;
}
.exchange-reserve span{
    font-size: 0.9em;
    line-height: 0;
}
.exchange-reserve .option:first-of-type{
    margin-bottom: 7px;
}
.exchange-reserve .option:nth-of-type(2) {
    margin-top: 7px;
}
.exchange-reserve .option{
    padding: 5px;
    border-radius: 5px;
    display: flex;
}
.exchange-reserve .content-icon{
    display: flex;
    align-items: center;
    margin-right: 10px;
}
.exchange-reserve .icon-exchange{
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: 75%;
    background-color: #00000011;
    background-repeat: no-repeat;
    background-position: center;
}
.exchange-reserve .option img{
    width: 30px;
    height: 30px;
}
.exchange-reserve .option:hover{
    background-color: rgb(245, 245, 245);
    cursor: pointer;
}

