/* This class is not present in shadow dom it's the wrapper for shadow dom*/
#r_rpw_product_widget_container_wrapper {
  margin: 0 !important;
  width: 100%;
  max-width: 100% !important;
}

:root {
  --r-f-toast-success-bg-color: #0c2b14;
  --r-f-toast-error-bg-color: #530606;
  --r-f-toast-success-color: #06a606;
  --r-f-toast-error-color: #d48888;
  --r-f-toast-font-name: inherit, serif, ui-monospace;
}

.r_f_toast_container {
  position: fixed;
  top: 50px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r_f_toast {
  position: relative;
  color: #fff;
  border-radius: 5px;
  animation: r_f_toast_show 1s ease 1 forwards;
  background: #1b3b1b;
  padding: 10px;
  width: 300px;
  display: flex;
  align-items: center;
}

.r_f_toast.success {
  color: var(--r-f-toast-success-color);
  background: var(--r-f-toast-success-bg-color);
}

.r_f_toast.error {
  color: var(--r-f-toast-error-color);
  background: var(--r-f-toast-error-bg-color);
}

.r_f_toast .r_f_toast_title {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--r-f-toast-font-name);
}

@keyframes r_f_toast_show {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0%);
  }
}

.r_f_toast::before {
  position: absolute;
  bottom: 0;
  left: 0;
  color: white;
  width: 100%;
  height: 3px;
  background: white;
  content: "";
  animation: r_f_toast_underline_timeout 3s linear 1 forwards;
}

@keyframes r_f_toast_underline_timeout {
  to {
    width: 0;
  }
}

/* Reserve space for widget containers before JS/shadow DOM content loads to prevent CLS */
.yuko-reviews-carousal-widget-container {
  min-height: 200px;
}

.yuko-reviews-product-widget-iframe-container {
  min-height: 300px;
}

.yuko-all-reviews-widget {
  min-height: 300px;
}

/* Sidebar Widget */

#sidebar-widget-iframe-container {
  overflow: hidden;
  padding-top: 80%;
  position: relative;
}

#sidebar-widget-iframe-container iframe {
  aspect-ratio: 16/9;
  border: 0;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

/* Rating Widget */

.wd_preview_content {
  background: white;
}

.r_rw__product_wrapper {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.frame-root {
  width: 100%;
  display: flex;
  justify-content: center;
}

.frame-content {
  width: 50%;
}

.wd_preview_content {
  padding: 1rem;
  overflow-y: auto;
}

.r_rw__product_image_wrapper {
  width: 50%;
  flex: 1;
}

.r_rw__product_image_wrapper img {
  width: 100%;
}

.r_rw__product_details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: start;
  flex: 1;
}

.r_rw__product_title {
  font-size: 2rem;
  margin: 0;
}

.r_rw__product_price {
  font-size: 1.5rem;
  margin: 0;
}

.r_rw__product_description {
  font-size: 1rem;
  margin: 0;
}

.r_rw__add_to_cart_btn {
  background: white;
  width: max-content;
  margin: 0;
}

.r_rw_rating_details {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
  word-break: normal;
}

.r_rw_rating_icons {
  display: inline-flex;
  gap: 0.2rem;
  color: var(--r-rw-icon-color);
}

.r_rw_rating_icons p {
  display: flex;
  flex-direction: row;
  justify-content: start;
  gap: 0.3rem;
}

.r_rw_rating_icons:hover {
  color: var(--r-rw-icon-color);
}

.r_rw_single_rating_icon {
  display: inline-flex;
  gap: 0.5rem;
  color: var(--r-rw-icon-color) !important;
}

.r_rw_single_rating_icon:hover {
  color: var(--r-rw-icon-color) !important;
}

.r_rw_preview_element__text {
  color: var(--r-rw-text-color);
}

.r_rw_qna_separator {
  color: var(--r-rw-text-color);
  opacity: 0.5;
  order: 2;
}

.r_rw_qna_count_text {
  color: var(--r-rw-text-color);
  order: 3;
}

.r_rw_qna_count_separate_row {
  color: var(--r-rw-text-color);
  display: flex;
  align-items: center;
  justify-content: var(--r-rw-flex-justify-content);
  font-size: inherit;
  flex-basis: 100%;
  width: 100%;
  order: 4;
}

.r_rw_container_wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: var(--r-rw-flex-justify-content);
  align-items: center;
  font-size: inherit;
}

.r_rw_direction_wrapper {
  display: flex;
  flex-direction: var(--r-rw-flex-direction, "row");
  gap: 0.2rem;
  align-items: center;
  order: 1;
}

html {
  scroll-behavior: smooth;
}

@media screen and (max-width: 650px) {
  .r_rw__product_wrapper {
    flex-direction: column;
  }
}

/* Sidebar Tab Widget */

.r_sbw__container {
    display: flex;
    position: fixed;
    padding: 10px;
    gap: 10px;
    top: 46%;
    font-size: 20px;
    writing-mode: tb-rl;
    color: var(--r-r_sbw-text-color);
    background-color: var(--r-r_sbw-bg-color);
    z-index: 9999;
    cursor: pointer;
}

.r_sbw__top_bottom {
    display: flex;
    writing-mode: tb-rl;
}

.r_sbw__bottom_top {
    display: flex;
    flex-direction: row-reverse;
    writing-mode: tb-rl;
}

.r_sb_wrapper {
    transition: .25s;
    overflow: hidden;
    width: 50%;
    outline: unset;
    background-color: #ffffff;
    box-shadow: 0px -2px 12px rgba(0, 0, 0, .08);
}

.r_sbw__pl_tb {
    flex-direction: row-reverse;
}

.r_sbw__pl_tb .r_sbw__btn_icon {
    transform: rotateZ(270deg);
}

.r_sbw__pl_tb .r_sbw__btn_text {
    transform: rotateZ(180deg);
}

.r_sbw__pl_bt {
    flex-direction: row;
}

.r_sbw__pl_bt .r_sbw__btn_icon {
    transform: rotateZ(90deg);
}

.r_sbw__pl_bt .r_sbw__btn_text {
    transform: rotateZ(0deg);
}

.r_sbw__pr_bt {
    flex-direction: row-reverse;
}

.r_sbw__pr_bt .r_sbw__btn_icon {
    transform: rotateZ(270deg);
}

.r_sbw__pr_bt .r_sbw__btn_text {
    transform: rotateZ(180deg);
}

.r_sbw__pr_tb {
    flex-direction: row;
}

.r_sbw__pr_tb .r_sbw__btn_icon {
    transform: rotateZ(90deg);
}

.r_sbw__pr_tb .r_sbw__btn_text {
    transform: rotateZ(0deg);
}

.r_sbw__left {
    border-radius: 0 10px 10px 0;
    left: 0;
}

.r_sbw__right {
    border-radius: 10px 0 0 10px;
    right: 0;
}
