/**
 * Single product review styles.
 *
 * Location: /assets/css/frontend/product/single/reviews.css
 *
 * @package SunTechPortal
 */

.stp-product-single__reviews-panel {
	border-top: 0;
}

.stp-product-single__reviews-head {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.stp-product-single__reviews-head h2 {
	margin-bottom: 0;
}

.stp-product-single__reviews-head button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 14px;
	color: #fff;
	background: var(--stp-product-primary);
	border: 1px solid var(--stp-product-primary);
	border-radius: 7px;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
	opacity: 1;
}

.stp-product-single__reviews-head button:hover,
.stp-product-single__reviews-head button:focus,
.stp-product-single__review-form-actions button[type="submit"]:hover,
.stp-product-single__review-form-actions button[type="submit"]:focus {
	color: #fff;
	background: var(--stp-product-primary-dark);
	border-color: var(--stp-product-primary-dark);
	outline: none;
}

.stp-product-single__reviews-head button:disabled {
	cursor: not-allowed;
	opacity: 0.85;
}

.stp-product-single__reviews {
	display: grid;
	grid-template-columns: 0.55fr 0.8fr repeat(2, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

.stp-product-single__review-score {
	display: grid;
	align-content: center;
	justify-items: start;
	border-right: 1px solid var(--stp-product-border);
}

.stp-product-single__review-score strong {
	color: var(--stp-product-text);
	font-size: 58px;
	font-weight: 950;
	line-height: 1;
}

.stp-product-single__review-score small {
	display: block;
	margin-top: 7px;
	color: var(--stp-product-muted);
	font-size: 13px;
	font-weight: 700;
}

.stp-product-single__review-bars {
	display: grid;
	gap: 7px;
	align-content: center;
}

.stp-product-single__review-bars span {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 22px;
	gap: 8px;
	align-items: center;
	color: var(--stp-product-soft-text);
	font-size: 13px;
	font-weight: 800;
}

.stp-product-single__review-bars b {
	position: relative;
	display: block;
	overflow: hidden;
	height: 8px;
	background: var(--stp-product-border);
	border-radius: 999px;
}

.stp-product-single__review-bars b::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--stp-bar, 0%);
	background: var(--stp-product-primary);
	border-radius: inherit;
	content: "";
}

.stp-product-single__review-card {
	display: grid;
	align-content: start;
	padding: 16px;
	border: 1px solid var(--stp-product-border);
	border-radius: 10px;
	background: #fff;
}

.stp-product-single__review-card--empty {
	background: var(--stp-product-bg-soft);
	border-style: dashed;
}

.stp-product-single__review-card strong {
	display: block;
	margin-top: 8px;
	color: var(--stp-product-text);
	font-size: 14px;
	font-weight: 950;
	line-height: 1.35;
}

.stp-product-single__review-card p {
	margin: 8px 0 0;
	color: var(--stp-product-soft-text);
	font-size: 13px;
	line-height: 1.6;
}

.stp-product-single__review-card p:last-child {
	margin-bottom: 0;
}

.stp-product-single__review-card small {
	display: block;
	margin-top: 12px;
	color: var(--stp-product-green);
	font-size: 12px;
	font-weight: 900;
}

.stp-product-single__review-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--stp-product-border);
}

.stp-product-single__review-form[hidden] {
	display: none;
}

.stp-product-single__review-form {
	display: grid;
	gap: 14px;
	margin-top: 20px;
	padding: 18px;
	background: var(--stp-product-bg-soft);
	border: 1px solid var(--stp-product-border);
	border-radius: 12px;
}

.stp-product-single__review-form-head {
	display: grid;
	gap: 3px;
}

.stp-product-single__review-form-head strong {
	color: var(--stp-product-text);
	font-size: 16px;
	font-weight: 950;
	line-height: 1.25;
}

.stp-product-single__review-form-head span {
	color: var(--stp-product-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.stp-product-single__review-form p {
	display: grid;
	gap: 6px;
	margin: 0;
}

.stp-product-single__review-form label {
	color: var(--stp-product-text);
	font-size: 13px;
	font-weight: 950;
	line-height: 1.25;
}

.stp-product-single__review-form input,
.stp-product-single__review-form select,
.stp-product-single__review-form textarea {
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 9px 11px;
	color: var(--stp-product-text);
	background: #fff;
	border: 1px solid var(--stp-product-border-strong);
	border-radius: 8px;
	box-shadow: none;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.stp-product-single__review-form textarea {
	min-height: 118px;
	resize: vertical;
}

.stp-product-single__review-form input:focus,
.stp-product-single__review-form select:focus,
.stp-product-single__review-form textarea:focus {
	border-color: var(--stp-product-primary);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.14);
}

.stp-product-single__review-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.stp-product-single__review-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 2px;
}

.stp-product-single__review-form-actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0;
	padding: 9px 14px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 950;
	line-height: 1.2;
	cursor: pointer;
}

.stp-product-single__review-form-actions button[type="submit"] {
	color: #fff;
	background: var(--stp-product-primary);
	border: 1px solid var(--stp-product-primary);
}

.stp-product-single__review-form-actions button[type="button"] {
	color: var(--stp-product-text);
	background: #fff;
	border: 1px solid var(--stp-product-border-strong);
}

.stp-product-single__review-form-actions button[type="button"]:hover,
.stp-product-single__review-form-actions button[type="button"]:focus {
	color: var(--stp-product-primary-dark);
	border-color: var(--stp-product-primary);
	outline: none;
}

@media screen and (max-width: 1100px) {
	.stp-product-single__reviews {
			grid-template-columns: 0.7fr 1fr;
		}
	
		.stp-product-single__review-list {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
}

@media screen and (max-width: 680px) {
	.stp-product-single__reviews-head {
			align-items: flex-start;
			flex-direction: column;
		}
	
		.stp-product-single__reviews-head button {
			width: 100%;
		}
	
		.stp-product-single__reviews {
			grid-template-columns: 1fr;
		}
	
		.stp-product-single__review-score {
			border-right: 0;
			border-bottom: 1px solid var(--stp-product-border);
			padding-bottom: 16px;
		}
	
		.stp-product-single__review-form {
			padding: 15px;
		}
	
		.stp-product-single__review-form-grid {
			grid-template-columns: 1fr;
		}
	
		.stp-product-single__review-form-actions {
			display: grid;
			grid-template-columns: 1fr;
		}
	
		.stp-product-single__review-form-actions button {
			width: 100%;
		}
}
