/***********/
/* Widgets */
/***********/
/* Rating and RatingSmall widgets */
.reco-woo-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 120%;
    position: relative;
}

.reco-woo-rating-strip {
    margin: 0 -2px;
    height: 16px;
    width: 100px;
    background-image:
            linear-gradient(var(--rwoo-brand-color, #000000) 0 100%),
            linear-gradient(color(from var(--rwoo-brand-color, #000000) srgb r g b / 0.2) 0 100%);
    background-size:
            calc(var(--rating, 0) * 20%),
            100%;
    background-repeat: no-repeat;
    display: block;
    position: relative;
    background-color: #e0e0e0; /* Fallback background */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M8.98.78a1.06 1.06 0 0 1 2.04 0l1.15 3.7c.15.46.56.77 1.03.77h3.72c1.04 0 1.48 1.4.63 2.03l-3 2.29c-.4.29-.54.8-.4 1.26l1.15 3.7c.32 1.03-.81 1.89-1.65 1.25l-3.02-2.29a1.04 1.04 0 0 0-1.26 0l-3.02 2.29c-.84.64-1.97-.22-1.65-1.26l1.15-3.7c.14-.46-.01-.96-.4-1.25l-3-2.29c-.85-.64-.41-2.03.63-2.03H6.8c.47 0 .88-.31 1.03-.78L8.98.77v.01Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M8.98.78a1.06 1.06 0 0 1 2.04 0l1.15 3.7c.15.46.56.77 1.03.77h3.72c1.04 0 1.48 1.4.63 2.03l-3 2.29c-.4.29-.54.8-.4 1.26l1.15 3.7c.32 1.03-.81 1.89-1.65 1.25l-3.02-2.29a1.04 1.04 0 0 0-1.26 0l-3.02 2.29c-.84.64-1.97-.22-1.65-1.26l1.15-3.7c.14-.46-.01-.96-.4-1.25l-3-2.29c-.85-.64-.41-2.03.63-2.03H6.8c.47 0 .88-.31 1.03-.78L8.98.77v.01Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 20px 16px;
    mask-size: 20px 16px;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
}

.reco-woo-rating-strip.reco-woo-rating-strip--large {
    height: 24px;
    width: 150px
}

.reco-woo-rating-single {
    width: 20px;
    height: 16px;
    background: var(--rwoo-brand-color);
    margin: 0 -2px;
}

.reco-woo-rating-single[data-size-large] {
    width: 30px;
    height: 24px;
}

.reco-woo-rating-primary {
    font-weight: bold;
    color: var(--rwoo-brand-color);
}

/* ---- Distribution Widget */
.reco-woo-distribution {
    padding: 16px;
    background-color: #fff;
}

.reco-woo-distribution-row {
    display: grid;
    grid-template-columns: 24px 1fr 48px;
    align-items: center;
    color: #000;
    line-height: 28px;
}

.reco-woo-distribution-row span:nth-child(1){
    font-weight: bold;
}

.reco-woo-distribution-row span:nth-child(2){
    height: 8px;
    background-image:
            linear-gradient(var(--rwoo-brand-color) 0 100%),
            linear-gradient(color(from var(--rwoo-brand-color) srgb r g b / 0.1) 0 100%);
    background-size:
            calc(var(--value) * 100%),
            100%;
    background-repeat: no-repeat;
}

.reco-woo-distribution-row span:nth-child(3){
    text-align: right;
    color: #808080;
}

/* ---- Reviews */
.reco-woo-reviews {}

.reco-woo-review {
    list-style: none;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    row-gap: 24px;
}

.reco-woo-review + .reco-woo-review {
    border-top: 1px solid #e5e5e5;
}

.reco-woo-review .reco-woo-review-footer {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
    color: #808080;
}

.reco-woo-review .reco-woo-review-footer strong {
    font-weight: bold;
    font-size: 16px;
}

.reco-woo-reviews .reco-woo-reviews-footer {
    border-top: 1px solid #e5e5e5;
    padding: 48px;
    display: flex;
    flex-direction: column;
    row-gap: 24px;
    text-align: center;
}

.reco-woo-reviews .reco-woo-reviews-footer .reco-woo-button {
    width: 280px;
    margin: 0 auto;
}

.reco-woo-reviews .reco-woo-reviews-footer small {
    font-size: 12px;
    line-height: 1.5;
    color: #808080;
}

/***********/
/* Utility */
/***********/

.reco-woo-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.reco-woo-surface {
    padding: 24px;
    background-color: #f6f6f6;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---- Accordion */
details.reco-woo-accordion summary {
    list-style: none;
}

details.reco-woo-accordion summary::marker,
details.reco-woo-accordion summary::-webkit-details-marker {
    content: '';
    display: none;
}

details.reco-woo-accordion summary span {
    cursor: pointer;
}

details.reco-woo-accordion:not([open]) summary span:last-child {
    display: none;
}

details.reco-woo-accordion[open] summary span:first-child {
    display: none;
}

details.reco-woo-accordion[open] {
    position: relative;
    padding-bottom: 40px
}

details.reco-woo-accordion[open] summary {
    position: absolute;
    bottom: 0;
}

/* ---- Button */
.reco-woo-button {
    display: inline-block;
    background-color: var(--rwoo-brand-color);
    color: white;
    padding: 16px;
    border-radius: 4px;
    cursor: pointer;
}

/* review sidebar */
.reco-review-launcher {
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    margin: 10px 0;
}

.reco-review-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -3px 0 8px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 9999;
    overflow-y: auto;
}

.reco-review-sidebar.open {
    right: 0;
}

.reco-review-sidebar-content {
    padding: 20px;
}

.reco-sidebar-close {
    font-size: 20px;
    cursor: pointer;
    float: right;
}

.reco-review-item {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}