/* ==========================================================================
   REVIEWS WIDGET
   ========================================================================== */

.review-widget{
    font-family:Arial,sans-serif;
}

/* ==========================================================================
   BOX
   ========================================================================== */

.review-box{
    position:relative;
    background:rgba(252,252,252,0.8);
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    width:100%;
    max-width:180px;
    border-bottom: 3px solid #f2f2f2;
    border-top: 3px solid #f2f2f2;    
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;    
    margin-bottom: 5px;
    flex-direction: column;
    align-content: center;
    flex-wrap: wrap;
}

.review-stars{
    color:#f5b301;
    font-size:34px;
    line-height:1;
    white-space:nowrap;
    margin: 0 auto;
}

.review-info {
    color: #0099cc;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
}

.review-info strong{
    font-size:18px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.review-menu-buttons {
    display: flex;
    gap: 0;
    flex-direction: column;
}

.review-menu-buttons button{
    flex:1;
    border:none;
    background:#f2f2f2;
    color:#0086b3;
    padding:12px;
    cursor:pointer;
    font-size:15px;
    transition:0.2s;
    border-bottom: 1px solid #fff;
    border-top: 1px solid #ccc;
}

.review-menu-buttons button:hover{
    background:#fafafa;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #ccc;    
    opacity:0.9;
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.review-modal{

    position:fixed;

    inset:0;

    display:none;

    align-items:center;

    justify-content:center;

    background:rgba(0,0,0,0.72);

    z-index:2147483647;

    padding:20px;

    box-sizing:border-box;

    isolation:isolate;

    overscroll-behavior:contain;
}

.review-modal-content{
    background:#fff;
    width:100%;
    max-width:720px;
    max-height:80vh;
    overflow:auto;
    border-radius:3px;
    padding: 0 28px 28px;
    position:relative;
    box-sizing:border-box;
    margin-top: -10vh;
}
.review-modal-content h4 {
    color: #999;
    font: 400 1.20rem/1.6rem "Montserrat", sans-serif;
}
.review-modal-title {
    line-height: 2;
    font-size: 24px;
    color: #006080;
    border-bottom: 2px solid #ccc;
    margin: 0px -28px 30px;
    font-weight: 700;
    background: #f2f2f2;
    text-align:center;
}

.review-modal-content{
    position:relative;
    z-index:1;
}

.review-widget{
    contain:layout style;
}

.review-summary{
    cursor:pointer;
    user-select:none;
}

/* ==========================================================================
   CLOSE
   ========================================================================== */

.review-modal-close{
    position:absolute;
    top: 0;
    right:18px;
    font-size:45px;
    cursor:pointer;
    line-height:1;
    color:#444;
}

/* ==========================================================================
   LIST
   ========================================================================== */

.review-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.review-item{
    border-bottom:1px solid #eee;
    padding-bottom:18px;
}

.review-item:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.review-item-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-bottom:10px;
}

.review-item-author{
    font-weight:700;
    color:#007399;
    font-size:18px;
}

.review-item-stars{
    color:#f5b301;
    font-size:25px;
    line-height:1;
}

.review-item-content{
    color:#808080;
    line-height:1.2;
    margin-bottom:10px;
    font-size:16px;
    padding-right:20%;
    text-align: left;    
}

.review-item-date {
    color: #b3b3b3;
    font-size: 13px;
    text-align: left;
}

/* ==========================================================================
   EMPTY
   ========================================================================== */

.review-empty{
    text-align:center;
    color:#666;
    padding:30px 0;
    font-size:15px;
}

/* ==========================================================================
   FORM
   ========================================================================== */

.review-form{
    display:flex;
    flex-direction:column;
}

.review-form textarea,
.review-form input{
    width:100%;
    border:1px solid #ccc;
    border-radius:8px;
    padding:14px;
    margin-bottom:16px;
    font-size:15px;
    font-family:inherit;
    box-sizing:border-box;
    transition:0.2s;
}

.review-form textarea{
    min-height:140px;
    resize:vertical;
}

.review-form textarea:focus,
.review-form input:focus{
    outline:none;
    border-color:#999;
}

.review-form button {
    border: none;
    background: #0099cc;
    color: #fff;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    font-size: 20px;
    transition: 0.2s;
    font-weight: 700;
}

.review-form button:hover{
    background:#1ac6ff;    
    opacity:0.92;
}

/* ==========================================================================
   STARS SELECT
   ========================================================================== */

.review-stars-select{
    display:flex;
    gap:6px;
    margin-bottom:22px;
}

.review-star-select{
    font-size:36px;
    cursor:pointer;
    color:#ccc;
    transition:0.15s;
    line-height:1;
    user-select:none;
}

.review-star-select.active{
    color:#f5b301;
}

.review-star-select:hover{
    transform:scale(1.08);
}

/* ==========================================================================
   ALERT
   ========================================================================== */

.review-alert{
    border-radius:8px;
    padding:14px;
    margin-bottom:18px;
    font-size:14px;
}

.review-alert.success{
    background:#d4edda;
    color:#155724;
}

.review-alert.error{
    background:#f8d7da;
    color:#721c24;
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width:768px){

    .review-box{
        max-width:150px;
    }

    .review-stars {
        font-size: 25px;
    }
    .review-info strong {
        font-size: 16px;
    }
    .review-summary{
        flex-direction:column;
        align-items:flex-start;
        gap:5px;
    }
    .review-menu-buttons{
        flex-direction:column;
    }
    .review-item-header{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }
    .review-info {
        font-size: 13px;
    }
    .review-modal-title {
        font-size: 20px;
    }
    .review-item-author {
        font-size: 16px;
    }  
    .review-item-content {
        font-size: 14px;
        padding-right: 0;
        text-align:left;
    }  
    .review-modal-content {
        border-radius: 4px;
        margin-top: -4vh;
    }    
    .review-item-date {
        color: #b3b3b3;
        font-size: 13px;
        text-align: left;
    }    
    .review-form button {
        border-radius: 8px;
        padding: 8px;
        cursor: pointer;
        font-size: 16px;
    }
    .review-modal-close {
        top: 0;
        right: 10px;
        font-size: 40px;
    }   
}


/* ==========================================================
   TOGGLE MENU
   ========================================================== */

.review-actions{
    overflow:hidden;

    max-height:0;

    opacity:0;

    visibility:hidden;

    transition:
        max-height .35s ease,
        opacity .25s ease;

    will-change:max-height;
}

.review-actions.open{
    max-height:140px;

    opacity:1;

    visibility:visible;
}

.review-summary{
    cursor:pointer;
}

/* ==========================================================
   FORM
   ========================================================== */

.review-hp{
    position:absolute;
    left:-9999px;
    opacity:0;
    pointer-events:none;
}