/* ===== Client Review & Testimonial Plugin — Public + Admin Styles ===== */

.crt-widget {
	position: relative;
}

.crt-widget-header {
	margin-bottom: 20px;
	text-align: right;
}

/* ---- Modal (Add Review opens here — page itself never scrolls to reach it) ---- */

.crt-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}

.crt-modal-overlay[hidden] {
	display: none;
}

.crt-modal-box {
	position: relative;
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	box-shadow: 0 20px 60px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
}

.crt-modal-scroll {
	overflow-y: auto;
	padding: 28px;
}

.crt-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	z-index: 1;
}

.crt-modal-close:hover {
	color: #111;
}

body.crt-modal-open {
	overflow: hidden;
}

.crt-form-wrapper {
	max-width: 640px;
	margin: 0 auto;
	font-family: inherit;
}

.crt-form {
	background: #fff;
	border: none;
	border-radius: 0;
	padding: 0;
}

.crt-field {
	margin-bottom: 18px;
}

.crt-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.crt-field input[type="text"],
.crt-field input[type="email"],
.crt-field select,
.crt-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}

.crt-field small {
	display: block;
	color: #666;
	margin-top: 4px;
}

.crt-star-rating {
	display: inline-flex;
	flex-direction: row-reverse;
	font-size: 28px;
}

.crt-star-rating input {
	display: none;
}

.crt-star-rating label {
	color: #ccc;
	cursor: pointer;
	padding: 0 2px;
}

.crt-star-rating input:checked ~ label,
.crt-star-rating label:hover,
.crt-star-rating label:hover ~ label {
	color: #f5b301;
}

.crt-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-size: 15px;
}

.crt-btn-primary {
	background: #1d4ed8;
	color: #fff;
}

.crt-btn-primary:hover {
	background: #1e40af;
}

.crt-btn-link {
	background: none;
	color: #1d4ed8;
	text-decoration: underline;
	padding: 10px 0 10px 16px;
}

.crt-message {
	margin-top: 14px;
	font-size: 14px;
}

.crt-message.crt-success {
	color: #157347;
}

.crt-message.crt-error {
	color: #b91c1c;
}

.crt-otp-form {
	margin-top: 20px;
}

.crt-otp-info {
	background: #eef4ff;
	border: 1px solid #cfe0ff;
	padding: 12px 14px;
	border-radius: 6px;
	font-size: 14px;
}

.crt-otp-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* ---- Review display ---- */

.crt-reviews-wrapper.crt-layout-grid,
.crt-reviews-wrapper.crt-layout-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.crt-reviews-wrapper.crt-layout-slider {
	display: flex;
	overflow-x: auto;
	gap: 20px;
	scroll-snap-type: x mandatory;
}

.crt-reviews-wrapper.crt-layout-slider .crt-review-card {
	min-width: 280px;
	scroll-snap-align: start;
}

.crt-review-card {
	position: relative;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 18px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.crt-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
	margin-right: 6px;
	margin-bottom: 8px;
}

.crt-badge-featured {
	background: #fef3c7;
	color: #92400e;
}

.crt-badge-verified {
	background: #dcfce7;
	color: #166534;
}

.crt-review-stars {
	color: #f5b301;
	font-size: 18px;
	margin-bottom: 8px;
}

.crt-review-text {
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 12px;
}

.crt-review-media img,
.crt-review-media video {
	max-width: 100%;
	border-radius: 8px;
	margin-bottom: 12px;
}

.crt-review-author strong {
	font-size: 14px;
}

.crt-review-company,
.crt-review-service {
	font-size: 13px;
	color: #666;
}

.crt-no-reviews {
	color: #666;
}

/* ---- Admin ---- */

.crt-admin-wrap .crt-filters {
	margin: 14px 0;
	display: flex;
	gap: 8px;
}

.crt-reviews-table .crt-actions .button {
	margin: 2px;
}

.crt-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: capitalize;
}

.crt-status-published { background:#dcfce7; color:#166534; }
.crt-status-pending { background:#fef9c3; color:#854d0e; }
.crt-status-approved { background:#dbeafe; color:#1e40af; }
.crt-status-rejected { background:#fee2e2; color:#991b1b; }
.crt-status-spam { background:#f3f4f6; color:#374151; }
.crt-status-awaiting_verification { background:#ede9fe; color:#5b21b6; }

.crt-tag-verified {
	background:#dcfce7;
	color:#166534;
	font-size: 11px;
	padding: 1px 6px;
	border-radius: 4px;
}
