body.no-padding-right {
    padding-right: 0 !important;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4000;

    display: none !important;
    justify-content: center;
    align-items: center;

    padding: 2vh 2vw !important;
    max-width: 100vw;

    overflow: hidden !important;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    transition: .5s all ease;
}

.modal.mp-open {
    opacity: 1 !important;
}

.modal.mp-close {
    opacity: 0 !important;
}

.modal#modalLoadingSkeleton {
    padding: 2vh 2vw !important;
}

.modal-open {
    overflow: hidden;
}

.modal.fade .modal-dialog {
    transform: translate(0, -25%);
    transition: transform .3s ease-out, -webkit-transform .3s ease-out, -o-transform .3s ease-out;
}

.modal.in {
    display: flex !important;
}

.modal.in .modal-dialog {
    transform: translate(0, 0);
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-dialog {
    display: flex;
    justify-content: center;

    position: relative;
    margin: 0;
    width: auto;
    height: fit-content;
    max-height: 100%;
    overflow: hidden;
    border-radius: 30px;
}

.modal-content {
    position: relative;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 30px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    outline: 0;

    width: 100%;
    height: auto;
    max-height: 100%;
    display: flex;
    flex: 1;
    flex-direction: column;
    transition: .2s all ease;
}

.modal-content.in-loadding {
    opacity: 0;
    position: absolute;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.in {
    opacity: 1;
}

.modal-header {
    position: relative;
    z-index: 50;
    padding: 10px 20px;
    min-height: 60px;
    border-bottom: none;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.modal-header::after,
.modal-header::before {
    display: none;
}

.modal-header button.close {
    min-width: 32px;
    min-height: 32px;
    background: #d0d0d0;
    border: 1px solid #bababa;
    border-radius: 50px;
    opacity: .6;
    margin: 0;
    transition: .3s all ease;
}

.modal-header button.close:hover {
    opacity: 1;
}

.modal-title-overflow,
.modal-title {
    color: #585858;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.42857143;
    padding: 0;
    margin: 0;
}

.modal-title svg {
    min-height: 24px;
    min-width: 24px;
}

.modal-title-overflow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 375px;
    flex: 1;
}

.modal-body {
    position: relative;
    padding: 15px;
    flex: 1;
    overflow: auto !important;
}

.modal-footer {
    position: relative;
    z-index: 50;
    padding: 12px 20px;
    height: 66px;
    width: 100%;
    text-align: right;
    border: none;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.modal-footer::before,
.modal-footer::after {
    display: none;
}

.modal-footer .btn+.btn {
    margin-bottom: 0;
}

.modal-footer .btn,
.modal-footer .btn+.btn,
.modal-footer a.btn,
.modal-footer button.btn {
    border: none !important;
    box-shadow: none !important;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 16px;
}

.modal-footer .btn-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.modal-footer .btn-group .btn+.btn {
    margin-left: -1px;
}

.modal-footer .btn-block+.btn-block {
    margin-left: 0;
}

.modal-footer .modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

@keyframes skeleton {
    0% {
        background-position: -200%;
    }

    100% {
        background-position: 200%;
    }
}

@keyframes shine {
    to {
        background-position: right -40px top 0;
    }
}

.skeleton-text,
.skeleton-image,
.skeleton-prod {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-animation {
    background-color: #e2e5e7;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    background-size: 40px 100%;
    background-repeat: no-repeat;
    background-position: left -40px top 0;
    animation: shine 1s ease infinite;
}


/**
 * Skeleton do produto
 */
.skeleton-prod {
    margin-top: 0px;
}
.skeleton-prod__image {
    width: 100%;
    height: 35vh;
    border-radius: 30px;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

.skeleton-prod__image__lazy {
    height: 35vh;
    width: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.skeleton-prod__description {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.skeleton-prod__description--large {
    width: 100%;
    height: 16px;
    border-radius: 5px;
}

.skeleton-prod__description--medium {
    width: 80%;
    height: 13px;
    border-radius: 3px;
}

.skeleton-prod__description--small {
    width: 60%;
    height: 11px;
    border-radius: 2px;
}

.skeleton-prod__group {
    display: flex;
    flex-direction: column;
}

.skeleton-prod__group__body,
.skeleton-prod__group__head {
    width: 100%;
    padding: 16px 15px;
    border: 1px solid #d3d3d3;

    display: flex;
}

.skeleton-prod__group__head {
    height: 65px;
    background-color: #f8f8f8;
    border-radius: 4px 4px 0 0;
    border-bottom: none;

    flex-direction: column;
    gap: 5px;
}

.skeleton-prod__group__body__text__title,
.skeleton-prod__group__head__title {
    width: 80%;
    height: 15px;
    border-radius: 5px;
}

.skeleton-prod__group__body__text__description,
.skeleton-prod__group__head__description {
    width: 60%;
    height: 11px;
    border-radius: 3px;
}

.skeleton-prod__group__body {
    border-radius: 0 0 4px 4px;

    display: flex;
    gap: 15px;
}

.skeleton-prod__group__body__image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
}

.skeleton-prod__group__body__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.skeleton-prod__comment {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.skeleton-prod__comment__title {
    width: 40%;
    height: 20px;
    border-radius: 5px;
}

.skeleton-prod__comment__textarea {
    width: 100%;
    height: 100px;
    border-radius: 5px;
}


/**
 * Skeleton de texto
 */
.skeleton-text__title {
    width: 100%;
    height: 20px;
    border-radius: 5px;
}

.skeleton-text__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.skeleton-text__body__font--small {
    width: 60%;
    height: 10px;
    border-radius: 5px;
}

.skeleton-text__body__font--medium {
    width: 80%;
    height: 12px;
    border-radius: 5px;
}

.skeleton-text__body__font--large {
    width: 100%;
    height: 15px;
    border-radius: 5px;
}


/**
 * Skeleton da imagem
 */
.skeleton-image__image {
    width: 100%;
    height: 332px;
    border-radius: 30px;
}

.skeleton-image__description {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.skeleton-image__description--large {
    width: 100%;
    height: 16px;
    border-radius: 5px;
}

.skeleton-image__description--medium {
    width: 80%;
    height: 13px;
    border-radius: 3px;
}

@media (min-width: 768px) {

    .modal-dialog {
        width: 600px;
    }

    .modal-sm {
        width: 300px;
    }

    .skeleton-prod {
        margin-top: -15px;
    }
}

@media (min-width: 992px) {
    .modal {
        padding: 4vh 7vw;
        max-width: 96vw;
    }

    .modal-lg {
        width: 900px;
    }

    .modal-header {
        padding: 17px 32px;
        min-height: 71px;
        gap: 30px;
    }

    .modal-header button.close {
        min-width: 39px;
        min-height: 39px;
    }

    .modal-title {
        font-size: 23px;
    }

    .modal-footer {
        padding: 17px 32px;
        height: 71px;
        gap: 25px;
    }
}