.wc-cpo-listing-content {
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    justify-items: center;
    width: 100%;
}

.wc-cpo-listing-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: flex-start;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
}

.wc-cpo-listing-element {
    flex: 0 1 auto;
    min-width: 0;
}

.wc-cpo-listing-row--columns-2 {
    flex-wrap: nowrap;
}

.wc-cpo-listing-row--columns-2 > .wc-cpo-listing-element {
    flex: 0 1 auto;
    min-width: 0;
}

.wc-cpo-listing-title-suffix-element {
    display: inline;
    white-space: nowrap;
}

.wc-cpo-listing-title-separator {
    margin: 0 0.25em;
}

.wc-cpo-listing-title-suffix-element .wc-cpo-configured-field,
.wc-cpo-listing-title-suffix-element .wc-cpo-configured-field-value,
.wc-cpo-listing-title-suffix-element .wc-cpo-product-attribute,
.wc-cpo-listing-title-suffix-element .wc-cpo-listing-acf-field,
.wc-cpo-listing-title-suffix-element .wc-cpo-configured-field-label {
    margin-right: 0.25em;
}

.wc-cpo-listing-title-suffix-element .wc-cpo-attribute-value {
    display: inline;
}

.wc-cpo-listing-title-suffix-element .wc-cpo-attribute-value + .wc-cpo-attribute-value::before {
    content: ", ";
}

.wc-cpo-field-has-color,
.wc-cpo-field-has-color a:not(:hover) {
    color: var(--wc-cpo-field-color);
}

.wc-cpo-configured-field {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.product-summary .wc-cpo-configured-field-label {
    font-size: 14px;
}

.single-product .wc-cpo-configured-field-label {
    font-size: unset;
}

.wc-cpo-configured-field-label {
    flex: 0 0 auto;
}

.wc-cpo-configured-field-value {
    min-width: 0;
}

.wc-cpo-configured-field-value > :first-child {
    margin-top: 0;
}

.wc-cpo-configured-field-value > :last-child {
    margin-bottom: 0;
}

.single-product div.product .product_meta a,
.single-product div.product .wc-cpo-configured-field .wc-cpo-single-product-attribute a {
    text-decoration: underline;
}

.single-product div.product .wc-cpo-configured-field-value .product_meta {
    margin: 0;
}

.wc-cpo-listing-element > .wc-cpo-configured-field {
    justify-content: center;
}

.wc-cpo-empty-value {
    visibility: hidden;
}

.wc-cpo-product-taxonomy {
    display: inline-block;
}

.wc-cpo-product-attribute {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.875em;
}

.wc-cpo-attribute-value {
    display: block;
}

.wc-cpo-image-attributes {
    position: absolute;
    z-index: 6;
    bottom: 5px;
    right: 5px;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    max-width: calc(100% - 10px);
    text-align: right;
    pointer-events: none;
}

.wc-cpo-image-attribute {
    display: block;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 3px;
    background: #fff;
    overflow: hidden;
    pointer-events: auto;
    cursor: help;
}

.wc-cpo-product-image-attributes .wc-cpo-image-attribute {
    width: 70px;
    height: 70px;
}

.wc-cpo-image-attribute img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wc-cpo-image-attribute.is-empty {
    visibility: hidden;
}

.wc-cpo-image-attribute-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.wc-cpo-image-attribute-group.is-empty {
    visibility: hidden;
}

.wc-cpo-image-attributes--top-left {
    top: 5px;
    right: auto;
    bottom: auto;
    left: 5px;
    align-items: flex-start;
    text-align: left;
}

.wc-cpo-image-attributes--top-right {
    top: 5px;
    right: 5px;
    bottom: auto;
    left: auto;
    align-items: flex-end;
    text-align: right;
}

.wc-cpo-image-attributes--bottom-left {
    top: auto;
    right: auto;
    bottom: 5px;
    left: 5px;
    align-items: flex-start;
    text-align: left;
}

.wc-cpo-image-attributes--bottom-right {
    top: auto;
    right: 5px;
    bottom: 5px;
    left: auto;
    align-items: flex-end;
    text-align: right;
}

.wc-cpo-image-attributes--top-left .wc-cpo-image-attribute-group,
.wc-cpo-image-attributes--bottom-left .wc-cpo-image-attribute-group {
    align-items: flex-start;
}

.single-product .woocommerce-product-gallery {
    position: relative;
}

.single-product div.product .entry-summary .wc-cpo-product-element .price {
    display: flex;
    align-items: center;
}

.single-product div.product .entry-summary .wc-cpo-product-element .price .wc-cpo-price-discount-percentage {
    margin-left: 15px;
    padding: 4px 8px;
    font-size: 18px;
    border-radius: 5px;
}

.woocommerce .price:has(.wc-cpo-unit-price) {
    flex-wrap: wrap;
}

.wc-cpo-unit-price {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    margin-top: 4px;
    color: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.wc-cpo-unit-price--empty {
    visibility: hidden;
}

.woocommerce-badges.wc-cpo-sale-badges,
.woocommerce-badges:has(> .wc-cpo-sale-badge) {
    z-index: 10 !important;
    top: 0 !important;
    right: auto !important;
    left: 0 !important;
}

.wc-cpo-sale-badge {
    width: auto !important;
    height: auto !important;
    padding: 10px 20px 8px !important;
    overflow: visible;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    clip-path: none;
    background: var(--wc-cpo-sale-badge-color, #8d0a0b) !important;
    color: #fff !important;
    text-transform: uppercase;
}

.woocommerce-badges > .wc-cpo-sale-badge {
    position: relative !important;
}

.wc-cpo-sale-badge > .wc-cpo-sale-badge__content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wc-cpo-sale-badge__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: uppercase !important;
    white-space: nowrap;
}

.wc-cpo-price-discount-percentage {
    margin-left: 10px;
    padding: 2px 8px;
    background-color: var(--wc-cpo-discount-percentage-color, #8d0a0b);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 5px;
}

.wc-cpo-product-configuration {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: left;
}

.wc-cpo-product-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 4px;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
}

.wc-cpo-product-element {
    flex: 0 1 auto;
    min-width: 0;
    text-align: left;
}

.wc-cpo-product-row--columns-2 {
    flex-wrap: nowrap;
}

.wc-cpo-product-row--columns-2 > .wc-cpo-product-element {
    flex: 0 1 auto;
    min-width: 0;
}

.wc-cpo-product-row--fixed > .wc-cpo-product-element {
    flex-basis: 100%;
    width: 100%;
}

.wc-cpo-product-row--fixed {
    align-self: stretch;
    width: 100%;
}

.single-product .wc-cpo-product-element--title .product_title,
.single-product .wc-cpo-product-element--title h1 {
    font-size: 28px !important;
    margin-bottom: 0;
}

.single-product div.product .wc-cpo-product-element .product_meta {
    margin: 20px 0 0;
}

.wc-cpo-listing-acf-field img,
.wc-cpo-single-product-acf img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wc-cpo-product-element > :first-child {
    margin-top: 0;
}

.wc-cpo-product-element > :last-child {
    
}

.wc-cpo-single-product-taxonomy {
    margin: 0;
}

.wc-cpo-single-product-meta > span {
    display: block;
}

.wc-cpo-single-product-attribute {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wc-cpo-single-product-attribute__label {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
}

.wc-cpo-single-product-attribute__values {
    line-height: 1.4;
}

.wc-cpo-product-element--purchase form.cart {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .wc-cpo-product-row {
        gap: 10px;
        align-self: stretch;
        width: 100%;
    }

    .wc-cpo-product-element {
        flex-basis: 100%;
        min-width: 0;
    }

    .wc-cpo-product-row--columns-2 {
        align-self: stretch;
        width: 100%;
    }

    .wc-cpo-product-row--columns-2 > .wc-cpo-product-element {
        flex-basis: auto;
    }
}
.wc-cpo-read-all-wrap {
    margin-top: 8px;
}

.wc-cpo-read-all {
    cursor: pointer;
}

.wc-cpo-related-products {
    position: relative;
    clear: both;
    width: 100%;
    margin: 60px 0;
}

.wc-cpo-related-products > h2 {
    margin: 0 0 45px;
    font-size: 28px;
    text-align: center;
}

.wc-cpo-related-products .linked-products-carousel {
    overflow: hidden;
    width: 100%;
}

.wc-cpo-related-products .swiper-container-initialized ul.products,
.wc-cpo-related-products ul.products.swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.wc-cpo-related-products ul.products li.product.swiper-slide {
    clear: none;
    flex-shrink: 0;
    margin-bottom: 0;
    padding-right: 0;
    padding-left: 0;
}

.wc-cpo-related-products .swiper-scrollbar {
    position: static;
    width: 100%;
    max-width: 570px;
    height: 4px;
    margin: 40px auto 0;
    border-radius: 0;
    background-color: #e5e5e5;
    cursor: pointer;
}

.wc-cpo-related-products .swiper-scrollbar-drag {
    background-color: var(--rz-background-color-primary, #8d0a0b);
    cursor: pointer;
}

.wc-cpo-related-products--listing-top {
    margin-top: 30px;
}
