/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 /* loading spinner */
.odsr-spinner {
    position: initial;
    visibility:visible;
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #2271b1;
    border-radius: 50%;
    animation: odsr-spin 0.8s linear infinite;
    vertical-align: middle;
    top: 10px;
    margin: 5px !important;
}

@keyframes odsr-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.odsr-message.error {
    color: #e80000;
}

.odsr-message.success {
    color: #008000;
}

/* Star in the reviews forms */
.odsr-stars {
    display: flex;
    cursor: pointer;
}

.odsr-star {
    font-size: 36px;
    line-height: 1.2;
    color: #ccc;
    transition: color 0.2s ease;
}

.odsr-star:hover,
.odsr-star:hover ~ .odsr-star {
    color: #ccc;
}

.odsr-star.active {
    color: #f5a623;
}

.odsr-summary-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.odsr-form-field input, .odsr-form-field textarea {
    width: 100%;
    color: #000 !important;
    padding: 20px 20px !important;
    font-size: 24px !important;
    border-radius: 10px !important;
}

.submit-review-btn {
    margin-top: 20px;
    padding-top: 15px;
    padding-right: 30px;
    padding-bottom: 15px;
    padding-left: 30px;
    background-color: #2D95A2;
    box-shadow: 0em 0.15em 0.65em 0em rgba(0, 0, 0, 0.25);
    font-family: inherit;
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    text-shadow: unset;
    border-radius: 10px;
    border-color: rgba(172, 17, 0, 0);
}

.submit-review-btn:hover {
    background-color: #3CBFD0;
    text-shadow: unset;
}

/* Star in the reviews summary */
.odsr-stars-outer {
    position: relative;
    display: inline-block;
    color: #ccc;
    font-size: 36px;
}

.odsr-stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #f5a623;
}

.odsr-stars-display {
    margin: 5px 0;
}

.odsr-form-field > span {
    display: block;
    margin-bottom: 10px;
}

/* Slider show in the reviews display */
.odsr-slider-wrapper {
    position: relative;
    overflow: hidden;
    transition: height 0.35s ease;
}

.odsr-slider {
    display: flex;
    transition: transform 0.4s ease;
}

.odsr-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.7);
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}
.odsr-arrow.prev {
    left: 0;
}

.odsr-arrow.next {
    right: 0;
}
.odsr-slide-stars {
    display: flex;
}

.odsr-slide-stars span,
.odsr-stars-display span {
    color: #ccc;
    font-size: 18px;
}

.odsr-slide-stars span.active,
.odsr-stars-display span.active {
    color: #f5a623;
}

.odsr-summary {
    text-align: center;
    margin-bottom: 30px;
}

.odsr-average {
    font-size: 36px;
    font-weight: bold;
}

.odsr-slider-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.odsr-avatar img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.odsr-slide-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.odsr-slide-wrapper {
    min-width: 0;
}

.odsr-title,
.odsr-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.odsr-slide,
.odsr-slide-wrapper,
.odsr-slider-field {
    min-width: 0;
}

.odsr-date, .odsr-title  {
    font-style: italic;
}

.odsr-title  {
    font-weight: bold;
}

.odsr-slide {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    box-sizing: border-box;
    min-width: 0;
    padding: 0 40px;
}

.odsr-average, .odsr-text, .odsr-date, .odsr-title, .odsr-description, .odsr-name {
    color: #fff;
}

.odsr-text {
    font-size: 20px;
}

.odsr-date, .odsr-title, .odsr-description, .odsr-name {
    font-size: 16px;
}

@media (max-width: 1024px) {
    .odsr-slider {
        align-items: flex-start;
    }
    .odsr-slide {
        flex: 0 0 50%;
        min-width: 50%;
    }
}

@media (max-width: 768px) {
     .odsr-slider {
        align-items: flex-start;
    }
    .odsr-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
}