#respond {
	margin-bottom: 2em;
}

.comment-reply-title {
	text-align: center;
}

.comment-list .comment {
	border-bottom: 1px solid rgba(0,0,0,.05);
	display: block;
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
}

.comment-list .comment .review-heading {
	margin-bottom: 0.5em;
	line-height: 24px;
}

.comment-list .comment .review-heading strong {
	line-height: 24px;
	display: inline-block;
	vertical-align: top;
	font-family: sans-serif;
}

.comment-list .comment .review-heading .pending {
	font-size: 12px;
	line-height: 24px;
	display: inline-block;
	vertical-align: top;
	opacity: 0.7;
	margin-left: 4px;
}

.comment-list .comment .review-warning {
    font-weight: bold;
    margin-bottom: 15px;
}

.comment-list .comment .review-text {
	position: relative;
	padding: 40px;
	margin-bottom: 20px;
	background: #f2f2f2;
	border-radius: 5px;
	overflow-wrap: break-word;
	word-break: break-word;
}

.comment-list .comment .review-text .quote {
	font-size: 40px;
	line-height: 0;
	position: absolute;
	font-family: 'Arial', sans-serif;
}

.comment-list .comment .review-text .quote.quote-left {
	top: 35px;
    left: 20px;
}

.comment-list .comment .review-text .quote.quote-right {
	bottom: 20px;
	right: 20px;
}

.comment-list .comment .review-text p:last-of-type {
	margin-bottom: 0;
}

.comment-list .comment .review-meta .review-date {
	font-size: 0.75em;
}

/* Prevent Bootstrap .row negative margins from overflowing the viewport on mobile */
.comment-list .comment .review-meta .row {
	margin-left: 0;
	margin-right: 0;
}

.comment-list .comment .review-actions {
	user-select: none;
	display: inline-block;
	vertical-align: top;
}

.comment-list .comment .comment-reply-link-wrapper {
	border-left: 1px solid #626262;
	display: inline-block;
	vertical-align: top;
    height: 20px;
	padding-left: 18px;
}

.comment-list .comment .comment-reply-link-wrapper .comment-reply-link {
	display: inline-block;
	vertical-align: top;
    height: 20px;
    line-height: 20px;
    font-size: 0.875em;
}

.comment-list .comment .review-actions .review-action {
	display: inline-block;
	vertical-align: top;
	margin-right: 10px;
	cursor: pointer;
}

.comment-list .comment .review-actions .review-action .review-action-icon {
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: top;
}

.comment-list .comment .review-actions .review-action .review-action-content {
	height: 20px;
	line-height: 20px;
	font-size: 0.875em;
	display: inline-block;
	vertical-align: top;
	width: 0;
	opacity: 0;
	overflow: hidden;
	transition: all 250ms ease;
	transform: translate3d(-5px, 0, 0);
	padding: 0 0 0 4px;
	white-space: nowrap;
}

.comment-list .comment .review-actions .review-action .review-action-content .share-icon {
	width: 20px;
	height: 20px;
	display: inline-block;
	margin-left: 6px;
}

.comment-list .comment .review-actions .review-action:hover .review-action-content {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.comment-list .comment .review-actions .review-action.review-action-share:hover .review-action-content {
	width: 62px;
}

.comment-list .comment .review-actions .review-action.review-action-report:hover .review-action-content {
	width: 116px;
}

.comment-list ol.children {
	width: 100%;
	padding: 20px 0 0 20px;
}

.comment-list ol.children .review-text {
	background: #F0F7FF;
}

.comment-list .comment-content,
.comment-list #respond {
	width: 100%;
}

.rewct-rating-form {
	display: inline-block;
	position: relative;
	height: 40px;
	line-height: 40px;
	font-size: 45px;
	margin-bottom: 10px;
	user-select: none;
}

.um-account-main .rewct-rating-form label {
	font-size: 28px;
}

.rewct-rating-form.no-margin {
	margin-bottom: 0;
}

.rewct-rating-form label {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	cursor: pointer;
}

.rewct-rating-form label:last-child {
	position: static;
}

.rewct-rating-form label:nth-child(1) {
  	z-index: 5;
}

.rewct-rating-form label:nth-child(2) {
	z-index: 4;
}

.rewct-rating-form label:nth-child(3) {
	z-index: 3;
}

.rewct-rating-form label:nth-child(4) {
	z-index: 2;
}

.rewct-rating-form label:nth-child(5) {
	z-index: 1;
}

.rewct-rating-form label input {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
}

.rewct-rating-form label .icon {
	float: left;
	color: transparent;
}

.rewct-rating-form label:last-child .icon {
	color: #626262;
}

.rewct-rating-form:not(:hover) label.active .icon,
.rewct-rating-form:hover label:hover .icon {
	color: #00cece;
}

.rewct-rating-form:not(:hover) label input.error ~ .icon {
	color: #ff0033;
}

.rewct-single-rating {
	font-size: 22px;
	line-height: 24px;
	margin-left: 6px;
	color: #00cece;
	display: inline-block;
	vertical-align: top;
}

textarea.error, input.error {
	border-color: #ff0033;
}

.rewct-star-rating-wrapper {
	display: flex;
	flex-direction: column;
	margin: 0 0 10px 0;
}

.rewct-star-rating-wrapper .rewct-star-rating {
	display: flex;
	gap: 4px;
	margin-bottom: 10px;
}

.rewct-star-rating-wrapper .rewct-star {
	width: 28px;
	height: 28px;
	fill: lightgrey;
}

.rewct-star-rating-wrapper .rewct-star.active {
	fill: #00cece;
}

.rewct-star-rating-wrapper .rewct-star-rating-data {
	font-size: 16px;
}

#comments {
	padding: 0;
}

#comments .comment-list .comment-content {
	margin: 0;
	padding: 0;
}

.widget .widget-title, .widget .widgettitle {
	padding-bottom: 0.5em;
	margin-bottom: 0.5em;
}

.widget {
	margin-bottom: 2em;
}

#user-review {
	margin-bottom: 2em;
	background-color: #f2f2f2;
	padding: 2.617924em;
	border-radius: 5px;
}

#user-review h2 {
	margin-bottom: 0;
}

#user-review .rewct-single-rating {
	font-size: 28px;
	margin-left: 0;
	margin-bottom: 30px;
}

#user-review p:last-of-type {
	margin-bottom: 0;
}

.um-account-tab .comments-area {
	padding: 30px 0 0 0 !important;
}

.edit-comment .edit-comment-header {
	padding-top: 10px;
}

.edit-comment .edit-comment-header .comment-action {
	text-decoration: underline;
	margin-right: 5px;
	display: inline-block;
	vertical-align: top;
	color: #00cece;
	cursor: pointer;
}

.edit-comment .edit-comment-header .comment-action.delete-comment-action {
	color: #D11A2A;
}

.edit-comment .edit-comment-header .comment-action.validate-comment-action {
	color: #00796b;
}

.edit-comment .edit-comment-header .comment-action.validate-comment-submitted {
	color: #999;
	cursor: default;
	text-decoration: none;
}

.edit-comment .edit-comment-form {
	margin: 20px 0;
	padding: 20px;
	background: #ececec;
	display: none;
}

.recaptcha-wrapper {
	margin: 0 0 1.41575em;
}

input[type="date"] {
	background: #fff;
	box-shadow: none;
	border: 1px solid rgb(98,98,98,0.4);
	padding: .6180469716em;
	color: #43454b;
	box-sizing: border-box;
	font-weight: 400;
}

input[type="date"]:focus {
	background-color: #ededed;
}

#respond .comment-form-surname input,
#respond .comment-form-date-of-experience input {
	width: 100%;
}

#respond .comment-form-author,
#respond .comment-form-email {
	margin-right: 0;
	width: 100%;
	float: none;
}

.required-field-message {
	font-size: 75%;
	display: block;
}

.comment-form-email-check .button,
.form-submit .submit {
    background-color: #00cec9 !important;
    border-color: #00cec9 !important;
    color: #fff !important;
}

.comment-form-email-exists {
    padding: 20px;
    background: #e9e9e9;
}

.verified-badge {
	background: #e0f7fa;
	color: #00796b;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 6px;
	position: absolute;
	top: 10px;
	right: 20px;
	border-radius: 3px;
	display: inline-flex;
	align-items: center;
}

.company-response-badge {
	background: #0056B3;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 6px;
	position: absolute;
	top: 10px;
	right: 20px;
	border-radius: 3px;
	display: inline-flex;
	align-items: center;
}

.uca-company-comment-wrapper {
	border: none;
	padding: 0;
	border-radius: 0;
	background: transparent;
}

.review-rating-filter {
	margin-top: 15px;
	margin-bottom: 15px;
}

.review-rating-filter__select {
	display: inline-block;
	max-width: 100%;
	height: 34px;
	padding: 6px 30px 6px 15px;
	font-size: 14px;
	color: #4b5563;
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 20px;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;

	/* Remove default styling */
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;

	/* Custom Arrow SVG */
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 12px;
}

.review-rating-filter__select:hover {
	border-color: #9ca3af;
}

.review-rating-filter__select:focus {
	border-color: #66afe9;
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

/* Enable flexbox for visual reordering */
.comment-list {
	display: flex;
	flex-direction: column;
}

/* Pagination styling */
.pagination ul {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

.pagination li {
	margin: 0;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
	background: #f5f5f5;
	border-color: #999;
}

.pagination .page-numbers.current {
	background: #333;
	color: #fff;
	border-color: #333;
	font-weight: bold;
	cursor: default;
}

.pagination .page-numbers.dots {
	border: none;
	background: none;
	cursor: default;
}

.pagination .page-numbers.dots:hover {
	background: none;
	border: none;
}

.pagination .prev.page-numbers,
.pagination .next.page-numbers {
	font-weight: bold;
}

.pagination .pagination-arrow {
	font-size: 16px;
}

.pagination {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.pagination ul {
	min-width: max-content;
}

/* Loading state for AJAX comment loading */
.comments-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	gap: 10px;
}

.comments-loading__spinner {
	width: 24px;
	height: 24px;
	border: 3px solid #ddd;
	border-top-color: #00cece;
	border-radius: 50%;
	animation: rewct-spin 0.8s linear infinite;
}

@keyframes rewct-spin {
	to { transform: rotate(360deg); }
}

.comments-loading__text {
	font-size: 14px;
	color: #666;
}

#js-comment-list {
	transition: opacity 0.2s ease;
}

.rewct-email-sent-notice {
	background: #e8f4fd;
	border: 1px solid #90caf9;
	border-left: 4px solid #1976d2;
	border-radius: 4px;
	padding: 14px 18px;
	margin-bottom: 24px;
	font-size: 15px;
	line-height: 1.5;
	color: #0d47a1;
}

.single-post .site-header {
    margin-bottom: 0;
}

.single-post .review-layout {
    display: grid;
    grid-template-columns: 35% 1fr;
    align-items: start;
    gap: 2.5em;
    padding: 2em 0;
}

.single-post .review-main {
    min-width: 0;
}

.single-post .review-sidebar-inner.is-sticky {
    position: fixed;
    top: 20px;
}

.single-post .review-sidebar img {
    max-width: 100px;
    max-height: 100px;
}

.single-post .review-sidebar h1 small {
    display: block;
    font-size: 40%;
}


.single-post .review-main .about {
    margin-bottom: 1.5em;
    text-align: center;
}

.single-post .review-main .about p {
    font-size: 0.875em;
    margin-bottom: 1em;
}

@media only screen and (max-width: 767px) {
    .single-post .review-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .single-post .review-sidebar {
        margin-bottom: 1.5em;
    }

    .single-post .review-sidebar-inner.is-sticky {
        position: static !important;
        width: auto !important;
    }

    .single-post .review-main .about {
        display: none;
    }
}

.rewct-email-sent-notice {
	background: #e8f4fd;
	border: 1px solid #90caf9;
	border-left: 4px solid #1976d2;
	border-radius: var(--radius);
	padding: 14px 18px;
	margin-bottom: 24px;
	font-size: 15px;
	line-height: 1.5;
	color: #0d47a1;
}

.rewct-write-review-cta {
	margin-bottom: 2rem;
}

.rewct-write-review-btn {
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	padding: .75rem 1.75rem;
	border-radius: 6px;
}

.evaluate-layout {
	max-width: 700px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.evaluate-title {
	margin-bottom: 1.5rem;
}

/* success state layout lives in evaluate.php inline <style> */

/* ================================================================
   COMPANY HEADER (single post redesign)
   ================================================================ */

.single-post .content-area {
    width: 100%;
}

.single-post .site-header {
    margin-bottom: 0;
}

.company-header {
    background: var(--color-bg-light, #f8f9fa);
    border-bottom: 1px solid var(--color-border, #e8e8e8);
    padding: 32px 0 40px;
}

.company-header .col-full {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 2.617924em;
}

.company-header__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.company-header__top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-header__logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius, 8px);
    overflow: hidden;
    border: 1px solid var(--color-border, #e8e8e8);
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-header__name {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text-heading, #111);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 8px;
}

.company-header__label {
    display: inline-block;
    background: rgba(0, 206, 201, 0.1);
    color: var(--color-primary, #00CEC9);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
}

.company-header__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Rating summary */
.company-rating-summary {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.company-rating-summary__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 72px;
}

.company-rating-summary__score {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-text-heading, #111);
    letter-spacing: -0.04em;
    line-height: 1;
}

.company-rating-summary__left .rewct-star-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 0;
}

.company-rating-summary__count {
    font-size: 0.8125rem;
    color: var(--color-text-secondary, #666);
    white-space: nowrap;
}

.company-rating-summary__bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
    max-width: 280px;
    flex: 1;
}

.company-rating-summary__bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-rating-summary__bar-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary, #666);
    width: 22px;
    flex-shrink: 0;
    text-align: right;
}

.company-rating-summary__bar-track {
    flex: 1;
    height: 6px;
    background: var(--color-border, #e8e8e8);
    border-radius: 100px;
    overflow: hidden;
}

.company-rating-summary__bar-fill {
    height: 100%;
    background: var(--color-primary, #00CEC9);
    border-radius: 100px;
}

.company-rating-summary__bar-pct {
    font-size: 0.6875rem;
    color: var(--color-text-secondary, #666);
    width: 28px;
    flex-shrink: 0;
}

.company-header__desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary, #555);
    line-height: 1.65;
    margin: 0;
    max-width: 600px;
}

.company-header__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.company-header__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius, 8px);
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid transparent;
}

.company-header__btn--primary {
    background: var(--color-primary, #00CEC9);
    color: #fff !important;
    border-color: var(--color-primary, #00CEC9);
}

.company-header__btn--primary:hover {
    background: var(--color-primary-hover, #00b3b0);
    border-color: var(--color-primary-hover, #00b3b0);
    color: #fff !important;
}

.company-header__btn--ghost {
    background: #fff;
    color: var(--color-text, #333) !important;
    border-color: var(--color-border, #e0e0e0);
}

.company-header__btn--ghost:hover {
    border-color: #bbb;
    color: var(--color-text, #333) !important;
}

/* Claim box */
.rewct-claim-box {
    background: #fff;
    border: 1px solid var(--color-border, #e8e8e8);
    border-radius: var(--radius, 8px);
    padding: 18px 22px;
    max-width: 400px;
}

.rewct-claim-box__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text-heading, #111);
    margin: 0 0 6px;
}

.rewct-claim-box__desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary, #666);
    line-height: 1.6;
    margin: 0 0 14px;
}

.rewct-claim-box__btn {
    display: inline-block;
    padding: 8px 18px;
    background: var(--color-primary, #00CEC9);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius, 8px);
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.rewct-claim-box__btn:hover {
    background: var(--color-primary-hover, #00b3b0);
}

/* ================================================================
   REVIEWS AREA
   ================================================================ */

.company-reviews-area {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 0 60px;
}

/* Hide the duplicate "write review" CTA in comments.php on single posts —
   the header already has the button */
.single-post .rewct-write-review-cta {
    display: none;
}

/* Comments title */
.company-reviews-area .comments-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-heading, #111);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}


/* ================================================================
   SINGLE COMPANY PAGE — SIDEBAR LAYOUT
   ================================================================ */

/* Fix: Storefront sets body { overflow-x: hidden } which breaks position: sticky.
   overflow-x: clip prevents horizontal scroll without creating a scroll container. */
body {
    overflow-x: clip !important;
}

.company-page-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    padding: 40px 0 60px;
}

/* LEFT SIDEBAR */
.company-sidebar {
    width: 30%;
    min-width: 260px;
    flex-shrink: 0;
    align-self: flex-start;
}

/* Sticky state applied by JS (position: fixed, width set inline) */
.company-sidebar__inner.is-sticky {
    position: fixed;
    z-index: 100;
}

.company-sidebar__inner {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
}

.company-sidebar__logo {
    margin-bottom: 16px;
}

.company-sidebar__logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    background: #fafafa;
    padding: 4px;
}

.company-sidebar__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.company-sidebar__label {
    display: block;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 20px;
}

.company-sidebar__ratings {
    margin-bottom: 16px;
}

/* Stars: column layout + teal fill */
.company-sidebar .company-rating-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.company-rating-summary .rewct-star {
    width: 28px;
    height: 28px;
    fill: #e0e0e0;
}

.company-rating-summary .rewct-star.active {
    fill: #00cece;
}

.company-sidebar__desc {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.company-sidebar__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.company-sidebar__actions .company-header__btn {
    width: 100%;
    justify-content: center;
}

/* RIGHT MAIN */
.company-main {
    flex: 1;
    min-width: 0;
}

.company-about {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.company-about__desc {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.65;
    margin: 0 0 16px;
}

.company-about__desc:only-child {
    margin-bottom: 0;
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
    .company-page-layout {
        flex-direction: column;
        gap: 24px;
        padding: 24px 0 40px;
    }

    .company-sidebar {
        width: 100%;
        min-width: 0;
        position: static;
    }

    .company-sidebar .company-rating-summary {
        flex-direction: row;
        align-items: center;
    }

    .company-about {
        display: none;
    }

    .company-about__toggle-wrap {
        margin-bottom: 28px;
    }
}

@media (min-width: 901px) {
    .company-about__toggle-wrap {
        display: none;
    }
}
