.review-page {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
}

.review-page section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 20%;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.review-header p  {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
}

.review-card {
    width: 100%;
    background-color: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.phone-card, .code-card, .success-card, .mobile_app_widget {
	display: none;
	border: 1px solid transparent;
	transition: border 1s;
}

.code-card {
	padding: 20px;
}

.code-card .review-card-body {
	gap: 10px;
}

.review-card-label p  {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.phone-card .review-card-label p, .code-card .review-card-label p, .success-card .review-card-label p {
	margin-bottom: 15px;
}

.review-card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.review-input-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.review-input-text {
    background-color: #fefefe !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    color: #111 !important;
    width: 100% !important;
}

.review-description {
	display: none;
}

.review-error, .review-phone-error {
	display: none;
}

.review-error p, .review-phone-error p {
	color: red;
	text-align: center;
    margin: 0;
}

@media (max-width:700px) {
    .review-page section {
        width: 90%;
    }
}

@media (min-width: 701px) and (max-width:1400px) {
    .review-page section {
        width: 50%;
    }
}

@media (min-width: 1401px) and (max-width:2000px) {
    .review-page section {
        width: 35%;
    }
}

.code-card .review-card-body .review-input-container {
	flex-direction: row;
	gap: 3px;

}

.code-card .review-card-body .review-input-container .review-input-text {
	width: 10% !important;
	border-radius: 10px !important;
	padding: 10px !important;
	text-align: center;
    max-width: 40px;
}

:root {
    --d-right: -1;
    --review-stars-count: 5;
    --review-stars-size: 60px;
    --review-stars-size-max: calc(var(--review-stars-size) * var(--review-stars-count));
    --review-stars-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"/></svg>');
}

.review-input-container input {
    cursor: default !important;  
}

.stars-input {
    appearance: none;
    background: transparent;
    -webkit-filter: drop-shadow(4px 4px 4px #dad7cd);
    height: 100%;
    width: var(--review-stars-size-max) !important;
    --bg-color: transparent;
}

.stars-input::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    mask: var(--review-stars-image) repeat-x;
    -webkit-mask: var(--review-stars-image) repeat-x;
    mask-position: left center;
    -webkit-mask-position: left center;
    mask-size: calc(100% / var(--review-stars-count));
    -webkit-mask-size: calc(100% / var(--review-stars-count));
    height: var(--review-stars-size);    
    background: whitesmoke;
}

.stars-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: var(--review-stars-size);
    box-shadow: calc(var(--review-stars-size-max) * var(--d-right)) 0 0 var(--review-stars-size-max) var(--bg-color);
}

#review_submit {
    border-radius: 15px;
    padding: 19px 50px;
    font-size: 18px;
}

#review_submit p {
    margin: 0;
}

.review-bottom {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
}

.review-addons {
    gap: 10px;
}

.review-addon {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 0;
}

#rec_modal .modal-dialog {
    width: 350px;
}

#rec_modal .modal-body {
    padding: 20px;
}

#rec_modal .h3 {
    margin: 10px 0 20px;
}

#rec_modal .button_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.review-audio {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-audio.is-recording {
    border-color: var(--temecolor);
    background-color: var(--temecolor);
}

.rec_refresh {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #ababab;
    font-weight: 500;
    margin: 0;
    font-size: 12px;
}

.audio-ui {
    display:flex;
    align-items:center;
    gap:12px;
}
  
.audio-progress {
    width:160px;
    height:8px;
    background:#e6e6e6;
    border-radius:999px;
    overflow:hidden;
}
  
.audio-progress-bar {
    height:100%;
    width:0%;
    background:#ababab;
    border-radius:999px;
}
  
.audio-time {
    font-variant-numeric: tabular-nums;
    font-size:12px;
    color:#666;
}

.audio-toggle {
    height: 40px;
    width: 40px;
    background-color: var(--temecolor);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.audio-toggle .audio-toggle-play, .audio-toggle.is-playing .audio-toggle-stop {
    display: block;
}

.audio-toggle .audio-toggle-stop, .audio-toggle.is-playing .audio-toggle-play {
    display: none;
}

.audio-confirm {
    width: 100%;
    font-size: 16px;
    background-color: #fff;
    color: var(--temecolor);
    border-radius: 10px;
    padding: 12px;
    transition: all 250ms ease;
    border: 1px solid var(--temecolor);
}

.audio-confirm:hover {
    background-color: var(--temecolor);
    color: #fff;
}

#open_rec_modal_btn.confirmed {
    border-color: var(--temecolor);
}

#open_rec_modal_btn .review_audio_icon {
    fill: #ababab;
}

#open_rec_modal_btn.confirmed .review_audio_icon {
    fill: var(--temecolor);
}

.review-link-container {
    margin-bottom: 5px;
    text-align: center;
}

.review-link {
    margin-left: auto;
    border: 1px solid transparent;
    border-radius: 15px;
    color: var(--temecolor);
    padding: 5px 10px;
    font-size: 15px;
    line-height: 15px;
    font-weight: 500;
}

.review-link:hover {
    text-decoration: underline;
}