/* SITE05 WPCR3 LEGACY DESIGN COMPATIBILITY */

/* 旧テーマ .hreview の外観 */
div.wpcr3_review {
    width: 95%;
    box-sizing: border-box;
    color: #471e18;
    padding: 20px 16px;
    margin: 20px auto;
    background-color: #fff6d7;
    border: 0;
    box-shadow:
        inset 0 0 0 10px #fff6d7,
        inset 0 0 0 11px rgba(71,30,24,0.3),
        1px 2px 2px rgba(0,0,0,0.2);
}

/* 旧テーマのタイトル装飾 */
div.wpcr3_review div.wpcr3_review_title {
    display: block !important;
    font-size: 17px;
    font-weight: bold;
    font-style: normal;
    color: #471e18;
    margin: 5px 2px 8px;
}

div.wpcr3_review div.wpcr3_review_title::before {
    content: "\f08d";
    font-family: FontAwesome, fontawesome, sans-serif;
    margin-right: 5px;
    color: #a52a2a;
}

/* 星評価 */
div.wpcr3_review div.wpcr3_review_ratingValue {
    position: relative;
    top: 2px;
    margin-right: 5px;
}

/* 投稿日・投稿者 */
div.wpcr3_review div.wpcr3_review_datePublished {
    font-size: 0.9em;
    font-style: italic;
}

div.wpcr3_review div.wpcr3_review_author {
    font-size: 0.8em;
    font-style: italic;
}

/* 追加項目 */
div.wpcr3_review div.wpcr3_review_customs {
    margin-bottom: 5px;
}

div.wpcr3_review div.wpcr3_review_custom {
    font-size: 12px;
    float: left;
    margin-right: 60px;
}

/* レビュー本文：旧プラグインの指定を踏襲 */
div.wpcr3_review blockquote.wpcr3_content {
    display: block !important;
    color: #471e18;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.8;
    padding-bottom: 30px;
}

div.wpcr3_review blockquote.wpcr3_content p {
    display: inline !important;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

/* 管理者返信 */
div.wpcr3_review blockquote.wpcr3_content.wpcr3_admin_response {
    margin-left: 30px;
    color: #00c;
}

/* 区切り線 */
div.wpcr3_review div.wpcr3_dotline {
    display: block !important;
    border-bottom: 1px dotted #ccc !important;
    margin-bottom: 10px !important;
    clear: both !important;
}

/* 投稿フォーム */
.wpcr3_table_2,
.wpcr3_div_2 {
    margin-left: 2%;
}

@media only screen and (max-width: 600px) {
    div.wpcr3_review {
        padding: 18px 14px;
    }
}


/* SITE-WPCR3-LEGACY-LAYOUT-START */

/* Review layout */
div.wpcr3_review {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
}

/* Title */
div.wpcr3_review > .wpcr3_review_title {
    order: 1;
    flex: 0 0 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
}

/* Rating */
div.wpcr3_review > .wpcr3_review_ratingValue {
    order: 2;
    flex: 0 0 auto;
}

/* Date */
div.wpcr3_review > .wpcr3_review_datePublished {
    order: 3;
    flex: 0 0 auto;
    margin-left: 12px;
}

/* Hide current author display */
div.wpcr3_review > .wpcr3_review_author {
    display: none !important;
}

/* Custom fields */
div.wpcr3_review > .wpcr3_review_customs {
    order: 5;
    flex: 0 0 100%;
    box-sizing: border-box;
    margin-top: 8px;
    margin-bottom: 12px;
}

div.wpcr3_review .wpcr3_review_custom {
    float: none;
    display: inline-block;
    margin-right: 18px;
}

/* Separator and review body */
div.wpcr3_review > blockquote.wpcr3_content:not(.wpcr3_admin_response) {
    order: 7;
    flex: 0 0 100%;
    box-sizing: border-box;
    border-top: 1px dashed #8b5a40;
    padding-top: 16px;
    margin-top: 6px;
}

/* Admin reply */
div.wpcr3_review > blockquote.wpcr3_admin_response {
    order: 8;
    flex: 0 0 100%;
    box-sizing: border-box;
    margin-top: 10px;
}

/* Clear elements should not occupy a row */
div.wpcr3_review > .wpcr3_clear {
    display: none !important;
}

/* Responsive */
@media only screen and (max-width: 600px) {
    div.wpcr3_review > .wpcr3_review_customs {
        line-height: 1.9;
    }

    div.wpcr3_review .wpcr3_review_custom {
        margin-right: 12px;
    }
}

/* SITE-WPCR3-LEGACY-LAYOUT-END */


/* SITE-WPCR3-LEGACY-HEADINGS-START */

/* Reviewer heading */
div.wpcr3_review > blockquote.wpcr3_content:not(.wpcr3_admin_response)::before {
    content: "\f007  投稿者さん：";
    display: block;
    font-family: FontAwesome, fontawesome, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #471e18;
    margin-bottom: 8px;
}

/* Administrator heading */
div.wpcr3_review > blockquote.wpcr3_admin_response::before {
    content: "\f112  カリーハウスコロンボ：";
    display: block;
    font-family: FontAwesome, fontawesome, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #00c;
    margin-bottom: 8px;
}

/* Preserve review paragraphs */
div.wpcr3_review > blockquote.wpcr3_content p {
    line-height: 1.8;
}

/* SITE-WPCR3-LEGACY-HEADINGS-END */


/* SITE-WPCR3-DATE-291 */

/* Published date */
div.wpcr3_review > div.wpcr3_review_datePublished {
    color: #228b22 !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

/* Compact custom fields */
div.wpcr3_review > div.wpcr3_review_customs {
    display: flex !important;
    flex-wrap: wrap;
    column-gap: 1em;
    row-gap: 2px;
}

div.wpcr3_review div.wpcr3_review_custom {
    float: none !important;
    display: inline-block !important;
    margin: 0 !important;
}


/* SITE-WPCR3-LAYOUT-293-START */

/* Keep rating and date on the first line */
div.wpcr3_review > .wpcr3_review_ratingValue {
    order: 2;
    flex: 0 0 auto;
    margin-right: 0 !important;
}

/* Published date */
div.wpcr3_review > .wpcr3_review_datePublished {
    order: 3;
    flex: 0 0 auto;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: #228b22 !important;
    margin-left: 10px !important;
}

/* Second line: demographics */
div.wpcr3_review > .wpcr3_review_customs {
    order: 5;
    flex: 0 0 100%;
    box-sizing: border-box;
    padding-left: 36px;
    margin-top: 7px;
    margin-bottom: 12px;
    display: flex !important;
    flex-wrap: wrap;
    column-gap: 1em;
    row-gap: 3px;
    align-items: baseline;
}

/* Custom field text */
div.wpcr3_review .wpcr3_review_custom,
div.wpcr3_review .wpcr3_review_custom_label,
div.wpcr3_review .wpcr3_review_custom_value {
    font-size: 16px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: 1.5;
}

div.wpcr3_review .wpcr3_review_custom {
    margin: 0 !important;
    float: none !important;
}

/* Narrow screens */
@media only screen and (max-width: 600px) {
    div.wpcr3_review > .wpcr3_review_customs {
        padding-left: 36px;
        column-gap: 0.8em;
    }
}

/* SITE-WPCR3-LAYOUT-293-END */


/* SITE-WPCR3-LAYOUT-294 */

div.wpcr3_review > .wpcr3_review_datePublished {
    font-size: 14px !important;
    font-weight: 700 !important;
}

div.wpcr3_review > .wpcr3_review_customs {
    padding-left: var(--wpcr3-date-offset, 0px) !important;
    column-gap: 1em !important;
}

div.wpcr3_review .wpcr3_review_custom,
div.wpcr3_review .wpcr3_review_custom_label,
div.wpcr3_review .wpcr3_review_custom_value {
    font-size: 14px !important;
    font-weight: 700 !important;
}


/* SITE-WPCR3-LAYOUT-295-START */

/* Align rating, date and demographics */
div.wpcr3_review {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 0;
    align-items: center;
}

/* Title occupies full width */
div.wpcr3_review > .wpcr3_review_title {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 12px;
}

/* Stars */
div.wpcr3_review > .wpcr3_review_ratingValue {
    grid-column: 1;
    grid-row: 2 / 4;
    align-self: center;
    margin: 0 !important;
}

/* Date */
div.wpcr3_review > .wpcr3_review_datePublished {
    grid-column: 2;
    grid-row: 2;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    font-size: 14px !important;
}

/* Demographics directly below date */
div.wpcr3_review > .wpcr3_review_customs {
    grid-column: 2;
    grid-row: 3;
    width: auto !important;
    min-width: 0;
    margin: 0 0 8px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    align-self: start;
    display: flex !important;
    flex-wrap: wrap;
    column-gap: 1em !important;
    row-gap: 0 !important;
}

/* Font size */
div.wpcr3_review .wpcr3_review_custom,
div.wpcr3_review .wpcr3_review_custom_label,
div.wpcr3_review .wpcr3_review_custom_value {
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1.35 !important;
}

/* Body */
div.wpcr3_review > blockquote.wpcr3_content:not(.wpcr3_admin_response) {
    grid-column: 1 / -1;
    grid-row: 4;
}

/* Admin response */
div.wpcr3_review > blockquote.wpcr3_admin_response {
    grid-column: 1 / -1;
    grid-row: 5;
}

/* Hidden and clearing elements */
div.wpcr3_review > .wpcr3_clear,
div.wpcr3_review > .wpcr3_hide {
    display: none !important;
}

/* SITE-WPCR3-LAYOUT-295-END */


/* SITE-WPCR3-296 */

/* Align stars with the top date row */
div.wpcr3_review > .wpcr3_review_ratingValue {
    align-self: start !important;
}


/* SITE-WPCR3-BUTTON-309 */

/* Review submission button */
.wpcr3_respond_3 .wpcr3_button_1.wpcr3_show_btn {
    display: inline-block !important;
    position: relative;
    box-sizing: border-box;
    background: #ff7417 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-bottom: 3px solid #71351e !important;
    border-radius: 4px !important;
    box-shadow: 0 3px 3px rgba(0,0,0,0.22) !important;
    padding: 9px 14px !important;
    margin: 10px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
}

/* Hide original English label visually */
.wpcr3_respond_3 .wpcr3_button_1.wpcr3_show_btn {
    font-size: 0 !important;
}

/* Japanese button label */
.wpcr3_respond_3 .wpcr3_button_1.wpcr3_show_btn::after {
    content: "お客様の声を書く";
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

/* Hover */
.wpcr3_respond_3 .wpcr3_button_1.wpcr3_show_btn:hover {
    background: #ed650a !important;
}

/* SITE-WPCR3-BUTTON-309-END */


/* SITE-WPCR3-FORM-POSITION-315 */

/* Arrange review components vertically */
#voice_form .wpcr3_respond_1 {
    display: flex;
    flex-direction: column;
}

/* Reviews first */
#voice_form .wpcr3_reviews_holder {
    order: 10;
}

/* Pagination second */
#voice_form .wpcr3_pagination {
    order: 20;
}

/* Review button third */
#voice_form .wpcr3_respond_3 {
    order: 30;
    align-self: flex-start;
}

/* Submission form immediately below button */
#voice_form .wpcr3_respond_2 {
    order: 40;
    width: 100%;
}

/* SITE-WPCR3-FORM-POSITION-315-END */


/* SITE-WPCR3-FORM-DESIGN-318 */

/* Form typography */
#voice_form .wpcr3_respond_2 {
    color: #471e18;
    font-size: 16px;
}

#voice_form .wpcr3_respond_2 .wpcr3_leave_text {
    display: none !important;
}

/* Form positioning */
#voice_form .wpcr3_respond_2 .wpcr3_div_2,
#voice_form .wpcr3_respond_2 .wpcr3_table_2 {
    margin-left: 0 !important;
}

#voice_form .wpcr3_respond_2 .wpcr3_table_2 {
    width: auto !important;
    border-collapse: separate;
    border-spacing: 0 10px;
}

#voice_form .wpcr3_respond_2 .wpcr3_table_2 td {
    padding: 0 10px 0 0;
    vertical-align: middle;
    border: 0;
}

#voice_form .wpcr3_respond_2 .wpcr3_table_2
tr.wpcr3_review_form_text_field td:first-child,
#voice_form .wpcr3_respond_2 .wpcr3_table_2
tr.wpcr3_review_form_rating_field td:first-child {
    width: 165px;
}

#voice_form .wpcr3_respond_2 label.comment-field {
    color: #471e18;
    font-size: 16px;
    font-weight: 700;
}

/* Compact text fields */
#voice_form .wpcr3_respond_2 input.text-input {
    box-sizing: border-box;
    width: 270px !important;
    max-width: 100%;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #d5d5d5;
    border-radius: 5px;
    background: #fff;
    font-size: 15px;
}

/* Comment field */
#voice_form .wpcr3_respond_2 textarea.wpcr3_ftext {
    box-sizing: border-box;
    width: 710px !important;
    max-width: 100%;
    min-height: 135px;
    padding: 10px;
    border: 1px solid #d5d5d5;
    border-radius: 5px;
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
}

/* Confirmation checkbox */
#voice_form .wpcr3_respond_2 .wpcr3_check_confirm {
    color: #471e18;
    font-size: 15px;
}

/* Submit and Cancel buttons */
#voice_form .wpcr3_respond_2 .wpcr3_submit_btn,
#voice_form .wpcr3_respond_2 .wpcr3_cancel_btn {
    display: inline-block !important;
    box-sizing: border-box;
    background: #ff7417 !important;
    color: #fff !important;
    border: 0 !important;
    border-bottom: 3px solid #71351e !important;
    border-radius: 4px !important;
    box-shadow: 0 3px 3px rgba(0,0,0,.22) !important;
    padding: 9px 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

#voice_form .wpcr3_respond_2 .wpcr3_submit_btn {
    min-width: 260px;
    text-align: center;
}

#voice_form .wpcr3_respond_2 .wpcr3_cancel_btn:hover,
#voice_form .wpcr3_respond_2 .wpcr3_submit_btn:hover {
    background: #ed650a !important;
}

/* Legacy pagination */
#voice_form .wpcr3_pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 20px 0 25px;
    color: #471e18;
    font-size: 14px;
    font-weight: 700;
}

#voice_form .wpcr3_pagination .wpcr3_pagination_page {
    display: none !important;
}

#voice_form .wpcr3_pagination::before {
    content: "PAGE:";
    color: #471e18;
    font-weight: 700;
    margin-right: 3px;
}

#voice_form .wpcr3_pagination .wpcr3_a {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    min-width: 30px;
    height: 34px;
    padding: 0 6px;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #471e18 !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

#voice_form .wpcr3_pagination .wpcr3_a.wpcr3_current {
    background: #a8efad !important;
}

#voice_form .wpcr3_pagination .wpcr3_a.wpcr3_disabled {
    display: none !important;
}

#voice_form .wpcr3_pagination .wpcr3_a:hover:not(.wpcr3_disabled) {
    background: #e6f7e6 !important;
}

/* Mobile */
@media (max-width: 600px) {
    #voice_form .wpcr3_respond_2 .wpcr3_table_2 {
        width: 100% !important;
    }

    #voice_form .wpcr3_respond_2 .wpcr3_table_2
    tr.wpcr3_review_form_text_field td:first-child,
    #voice_form .wpcr3_respond_2 .wpcr3_table_2
    tr.wpcr3_review_form_rating_field td:first-child {
        width: 85px;
    }

    #voice_form .wpcr3_respond_2 input.text-input {
        width: 100% !important;
    }

    #voice_form .wpcr3_respond_2 textarea.wpcr3_ftext {
        width: 100% !important;
    }

    #voice_form .wpcr3_respond_2 .wpcr3_submit_btn {
        min-width: 180px;
    }
}

/* SITE-WPCR3-FORM-DESIGN-318-END */
