/* commonで利用するstyle */
:root {
    --base-20: #d7d7d7;
    --base-70: #474747;
    --base-80: #212121;
    --typography-secondary: #757575;
    --typography-link: #0091EA;
    --border-munulist: #DFDFDF;
    --fill-primaryInverted: #373A49;
}

.ellipsis-3lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* item_detail.xhtml */
#review-size,
#review-average {
    padding: 16px 0;
    /* */
}
#review-list-count{
    border-bottom: 1px solid var(--border-munulist);
}
.section__headline.u-mb0{
    height: unset;
}

#review-average .review-star__star {
    width: 30px;
    height: 30px;
}

.review-heading__write-review {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--typography-link);
    font-size: 16px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.review-average {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.review-average__head,
.review-average__num {
    line-height: 1;
    color: var(--base-70);
}

.review-average__head {
    font-size: 12px;
}

.review-average__cnt {
    font-size: 16px;
}

.review-average__num {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--base-70);
}

.review-rate__stars {
    display: flex;
    gap: 4px;
}

.review-size__scale {
    margin-top: 11px;
    margin-bottom: 16px;
}

.review-size__scale__conteiner {
    position: relative;
    margin-bottom: 7px;
}

.review-size__scale__conteiner::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 2px;
    background-color: var(--base-20);
    z-index: -1;
}

.review-size__scale__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--base-20);   
}

.review-size__scale__conteiner::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    left: calc( var(--indicator-position) - 6px );
    background-color: var(--fill-primaryInverted);   
}

.review-size__scale__text {
    font-size: 14px;
    line-height: 1;
    color: var(--base-80);   
}

.review {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-munulist);
}

.review__title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: var(--base-80);
}

.review__desc {
    color: var(--typography-secondary);
    font-size: 14px;
    line-height: 1;
}

.review__heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review__content {
    font-size: 14px;
    line-height: 1.5;
    color: var(--base-70);
    margin: 8px 0;   
}

.review__content--more {
    font-size: 14px;
    line-height: 1.5;
    text-align: right;
    color: var(--typography-link);
}

.review-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review__body {
    display: flex;
    flex-direction: column;
    gap: 8px;   
}

.review__images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.review__images > img {
    aspect-ratio: 1 / 1;
    width: 106px;
    object-fit: cover;
}

/* review_edit.xhtml */
.review-edit .review-edit__radio input[type="radio"] {
    /* accent-color: #FF6E80; */
    inline-size: 18px;
    block-size: 18px;
    margin: 0;
    margin-right: 12px;
}

.review-edit .desc {
    font-size: 12px;
    line-height: 1.2;
    color: #212121;
}

.review-dialog {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.54);
}
.review-dialog__container {
    background-color: #fff;
    padding: 24px 16px;
    border-radius: 8px;
    width: 90%;
    max-width: 343px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.review-dialog__text {
    color: #373A49;
    font-size: 16px;
    line-height: 1.5;
}
.review-dialog__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}
.review-dialog__actions > button {
    width: calc(50% - 16px);
    height: 46px;
    text-align: center;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1.2;
}
.review-dialog__left {
    border: 1px solid #373A49;
    color: #212121;
    background-color: #fff;
}
.review-dialog__right {
    border: 1px solid #373A49;
    color: #fff;
    background-color: #373A49;
}

#modal .navi-review-wrapper .navi-review-rate{
    display: flex;
    justify-content: start;
    align-items: center;
    margin-bottom: 8px;
    gap: 0.3em;
}
#modal .navi-review-rate-text{
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

#toast{
    display: none;
}
#toast.toast--active{
    display: block;
}

.review__edit__button{
    display: block;
    font-size: 16px;
    line-height: 1;
    padding: 8px 16px;
    margin-left: auto;
    background-color: var(--fill-primaryInverted);
    color: #fff;
    border-radius: 4px;
}
.review__item-link{
    color: var(--typography-link);
}
.review__item-link:link{
    color: var(--typography-link);
}
.review__item-link:visited{
    color: var(--typography-link);
}
.popup {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  background-color: Rgba(0, 0, 0, 0.5);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.popup__button {
  cursor: pointer;
}
.popup__inner {
    width: 80%;
    height: 90%;
    background-color: #ffffff;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.popup__heading {
  position: relative;
  box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.12);
  z-index: 1;
}
.popup__title {
  padding: 1.2142857143rem 4.8571428571rem;
  text-align: center;
  background-color: #ffffff;
  box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.12);
  z-index: 1;
}
.popup__close,
.popup__langs-head {
  text-align: center;
  cursor: pointer;
}
.popup__langs-head {
  top: 24%;
  left: 1.1428571429rem;
}
.popup__close {
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #373A49;
    color: #FFF;
    cursor: pointer;
}
.popup__close-image,
.popup__langs-head-image {
  width: 1.7142857143rem;
  height: 1.7142857143rem;
  line-height: 1.2em;
}
.popup__close-text,
.popup__langs-head-text {
  font-size: 16px;
  line-height: 1em;
}
.popup__body {
    overflow: auto;
    background: #ffffff;
    text-align: left;
    position: relative;
    height: calc(100% - 4rem - 55px); /* headerとfooterの高さを引く */
    width: 100%;
}
.popup__body--overflow-hidden {
  overflow: hidden;
}
.popup--active {
  opacity: 1;
  visibility: visible;
}
.popup__footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 4px 14px 2px rgba(0, 0, 0, 0.26);
  padding: 1.1428571429rem;
  box-sizing: border-box;
  border-top: 1px solid #CBCBCB;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1428571429rem;
}
.popup__footer__button {
  width: calc(100% / 2 - 16px);
  height: 43px;
  font-size: 18px;
  line-height: 43px;
  line-height: 1.5;
  text-align: center;
  border-radius: 8px; 
  cursor: pointer;
  border: none;
}
.popup__footer__close {
  background-color: #fff;
  color: #373A49;
  border: 1px solid #373A49;
}
.popup__footer__submit {
  background-color: #FF4662;
  color: #fff;
}

#more-review-link .link-text {
  color: #0091ea !important;
  display: inline-block;
  cursor: pointer;
}
#more-review-link .link-text:link {
  color: #0091ea !important;
}

.user-review-edit__row{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.user-review-edit__title{
    width: calc(38% - 4.75rem);
    padding-left: 0;
}

.user-review-edit__body{
    width: 62%;
}

.user-review-edit .form-input-textarea__note {
    font-size: 14px;
    color: #757575;
    text-align: right;
}

.user-review-edit .js-input-maxlength {
    display: inline-block;
}
.user-review-edit .u-w-ratio100{
    width: 20rem;
}

.user-review-edit .chiyodaform__textarea-s{
    display: inline-block;
}

.popup.user-review-edit input[type=text], 
.popup.user-review-edit input[type=password], 
.popup.user-review-edit input[type=email], 
.popup.user-review-edit select{
    padding: 0.8125rem;
}
.popup input[type=text], 
.popup input[type=password], 
.popup input[type=email], 
.popup select{
    padding:unset;
}

#review-delete-action{
    cursor: pointer;
}

.review__edit__approval{
    display: inline-block;
    font-size:16px;
    padding: 6px 16px;
    border-radius: 4px;
    color:var(--Base-50, #757575);
    background: var(--Base-10, #F0F0F0);
}
.navi-review-note-text{
    padding: 16px;
    font-size: 16px;
    color: #656565;
}