/* Product reviews: wall, loop rating, photo uploads, lightbox.
 * Wall layout mirrors the Loox grid used on gfxwrld.com. */

:root {
	--oxy-rv-accent: #DCEF6F;
	--oxy-rv-accent-dark: #B2C53A; /* stars on white backgrounds */
	--oxy-rv-text: #fff;
	--oxy-rv-card-bg: #000;
	--oxy-rv-gutter: 7px;
	--oxy-rv-radius: 4px;
}

/* Stars ------------------------------------------------------ */

.oxy-stars {
	position: relative;
	display: inline-block;
	line-height: 0;
	vertical-align: middle;
	white-space: nowrap;
}

.oxy-stars svg {
	width: 1em;
	height: 1em;
	margin-right: 0.15em;
}

.oxy-stars__base svg {
	fill: none;
	stroke: var(--oxy-rv-accent);
	stroke-width: 1.2;
}

.oxy-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
}

.oxy-stars__fill svg {
	fill: var(--oxy-rv-accent);
}

/* Loop card rating ------------------------------------------ */

.oxy-product-rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: var(--oxy-rv-text);
	text-decoration: none;
}

.oxy-product-rating:hover,
.oxy-product-rating:focus {
	color: var(--oxy-rv-accent);
}

.oxy-product-rating__count {
	font-size: 13px;
	line-height: 1;
}

/* Wall header ------------------------------------------------ */

.oxy-reviews-wall__header {
	position: relative;
	margin: 0 0 var(--oxy-rv-gutter);
	padding: 0 var(--oxy-rv-gutter) var(--oxy-rv-gutter);
}

/* Extra specificity: the Elementor kit styles every <button> (lime fill,
 * uppercase, padding), which hid the stars behind a lime bar. */
.oxy-reviews-wall .oxy-reviews-wall__header button.oxy-reviews-wall__summary,
.oxy-reviews-wall .oxy-reviews-wall__header button.oxy-reviews-wall__summary:hover,
.oxy-reviews-wall .oxy-reviews-wall__header button.oxy-reviews-wall__summary:focus,
.oxy-reviews-wall .oxy-reviews-wall__header button.oxy-reviews-wall__summary:active {
	display: inline-flex;
	align-items: center;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--oxy-rv-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	user-select: none;
}

.oxy-reviews-wall .oxy-reviews-wall__header button.oxy-reviews-wall__summary:focus-visible {
	outline: 1px dashed var(--oxy-rv-accent);
	outline-offset: 4px;
}

.oxy-reviews-wall__summary .oxy-stars {
	margin-right: 10px;
	font-size: 18px;
}

.oxy-reviews-wall__count {
	font-size: 14px;
	white-space: nowrap;
}

.oxy-reviews-wall__chevron {
	width: 12px;
	height: 12px;
	margin-left: 8px;
	transition: transform 0.2s;
}

.oxy-reviews-wall__summary[aria-expanded="true"] .oxy-reviews-wall__chevron {
	transform: rotate(180deg);
}

.oxy-reviews-wall__breakdown {
	position: absolute;
	z-index: 20;
	top: 40px;
	left: 0;
	width: 362px;
	max-width: calc(100vw - 32px);
	padding: 20px 20px 24px;
	border-radius: 6px;
	background: #fff;
	color: #282828;
	box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.14);
	transform-origin: top center;
	animation: oxy-rv-grow 0.2s ease-in-out;
}

@keyframes oxy-rv-grow {
	from {
		opacity: 0;
		transform: scaleY(0.9);
	}
}

.oxy-reviews-wall__breakdown[hidden] {
	display: none;
}

.oxy-reviews-wall__average {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 14px;
}

.oxy-reviews-wall__average svg {
	width: 28px;
	height: 28px;
	fill: var(--oxy-rv-accent-dark);
}

/* Darker stars on the white dropdown and popup. */
.oxy-reviews-wall__breakdown .oxy-stars__base svg,
.oxy-review-modal .oxy-stars__base svg {
	stroke: var(--oxy-rv-accent-dark);
}

.oxy-reviews-wall__breakdown .oxy-stars__fill svg,
.oxy-review-modal .oxy-stars__fill svg {
	fill: var(--oxy-rv-accent-dark);
}

.oxy-reviews-wall__average strong {
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
}

.oxy-reviews-wall__bar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 1;
}

.oxy-reviews-wall__bar + .oxy-reviews-wall__bar {
	margin-top: 12px;
}

.oxy-reviews-wall__bar .oxy-stars {
	font-size: 17px;
}

.oxy-reviews-wall__bar-count {
	min-width: 48px;
}

.oxy-reviews-wall__track {
	height: 9px;
	background: #000;
	overflow: hidden;
}

.oxy-reviews-wall__track span {
	display: block;
	height: 100%;
	background: var(--oxy-rv-accent);
}

@media (max-width: 480px) {
	.oxy-reviews-wall__breakdown {
		position: static;
		width: auto;
		margin-top: 16px;
	}
}

/* Grid ------------------------------------------------------- */

/* CSS columns as a no-JS fallback; JS rebuilds into flex columns. */
.oxy-reviews-wall__grid {
	column-count: 2;
	column-gap: 0;
}

@media (min-width: 480px) {
	.oxy-reviews-wall__grid {
		column-count: 3;
	}
}

@media (min-width: 920px) {
	.oxy-reviews-wall__grid {
		column-count: 4;
	}
}

@media (min-width: 1150px) {
	.oxy-reviews-wall__grid {
		column-count: 5;
	}
}

@media (min-width: 1380px) {
	.oxy-reviews-wall__grid {
		column-count: 6;
	}
}

.oxy-reviews-wall__grid.is-masonry {
	display: flex;
	align-items: flex-start;
	column-count: auto;
}

.oxy-reviews-wall__col {
	flex: 1 1 0;
	min-width: 0;
}

/* Card ------------------------------------------------------- */

.oxy-review-card {
	break-inside: avoid;
	margin: 0 var(--oxy-rv-gutter) 24px;
	padding-bottom: 10px;
	border-radius: var(--oxy-rv-radius);
	overflow: hidden;
	background: var(--oxy-rv-card-bg);
	color: var(--oxy-rv-text);
	cursor: pointer;
	outline: none;
}

.oxy-review-card,
.oxy-review-card *,
.oxy-reviews-wall__breakdown,
.oxy-reviews-wall__breakdown * {
	box-sizing: border-box;
}

.oxy-review-card__text,
.oxy-review-card__date {
	font-weight: 400;
}

.oxy-review-card:focus-visible {
	box-shadow: 0 0 0 2px var(--oxy-rv-accent);
}

.oxy-review-card__media {
	position: relative;
	margin-bottom: 10px;
	cursor: zoom-in;
}

.oxy-review-card__media img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	transition: opacity 0.2s;
}

.oxy-review-card:hover .oxy-review-card__media img {
	opacity: 0.9;
}

.oxy-review-card__more {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	border-radius: 90px;
	background: #fff;
	opacity: 0.8;
	color: #000;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

.oxy-review-card__more svg {
	width: 20px;
	height: 20px;
}

.oxy-review-card__body {
	padding-top: 10px;
}

.oxy-review-card__media + .oxy-review-card__body {
	padding-top: 0;
}

.oxy-review-card__author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	padding: 0 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.oxy-review-card__verified svg {
	display: block;
	width: 14px;
	height: 14px;
}

.oxy-review-card__verified circle {
	fill: var(--oxy-rv-accent);
}

.oxy-review-card__verified path {
	stroke: #000;
}

.oxy-review-card__date {
	display: block;
	height: 20px;
	padding: 5px 10px 0;
	font-size: 11px;
	line-height: 15px;
	color: var(--oxy-rv-text);
}

.oxy-review-card > .oxy-review-card__body > .oxy-stars,
.oxy-review-card__body > .oxy-stars {
	display: block;
	height: 27px;
	padding: 10px 10px 0;
	font-size: 14px;
	line-height: 0;
}

.oxy-review-card__body > .oxy-stars .oxy-stars__fill {
	top: 10px;
	left: 10px;
}

/* Max 4 lines on the card; the popup shows the full review. */
.oxy-review-card__text {
	display: -webkit-box;
	margin: 10px 10px 0;
	overflow: hidden;
	font-size: 14px;
	line-height: 19px;
	word-wrap: break-word;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

/* Product link is shown only inside the popup, as on the reference. */
.oxy-review-card__product {
	display: none;
}

.oxy-reviews-wall__footer {
	margin-top: 20px;
	text-align: center;
}

.oxy-reviews-wall__load,
.oxy-reviews-wall__load:hover,
.oxy-reviews-wall__load:focus {
	padding: 9px 14px;
	border: 1px solid var(--oxy-rv-accent);
	border-radius: var(--oxy-rv-radius);
	background: var(--oxy-rv-accent);
	color: #000;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	cursor: pointer;
}

.oxy-reviews-wall__load[disabled] {
	opacity: 0.6;
	cursor: wait;
}

/* Product page: review list + review form ---------------------
 * Form styled after the Elementor contact form (contact-us page). */

#reviews.woocommerce-Reviews {
	--oxy-field-bg: #161616;
	--oxy-field-border: #404040;
	--oxy-label: var(--e-global-color-primary, #fff);
	--oxy-muted: var(--e-global-color-text, #B4B4B4);
	color: var(--oxy-muted);
	font-family: var(--e-global-typography-text-font-family, "Google Sans"), sans-serif;
}

#reviews #comments .woocommerce-Reviews-title,
#reviews #review_form .comment-reply-title {
	display: block;
	margin: 0 0 24px;
	padding: 0;
	color: var(--oxy-label);
	font-family: var(--e-global-typography-d54ec58-font-family, "Google Sans"), sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

#reviews .woocommerce-noreviews {
	margin: 0 0 24px;
	color: var(--oxy-muted);
}

/* "Only customers who purchased…" notice, styled like WooCommerce notices. */
#reviews .oxy-review-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	margin: 0 0 24px;
	padding: 18px 24px;
	border-top: 3px solid var(--oxy-rv-accent);
	background: var(--oxy-field-bg);
	color: var(--oxy-muted);
	font-size: 15px;
	line-height: 1.5;
}

#reviews .oxy-review-notice__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-right: -8px;
}

#reviews .oxy-review-notice__icon circle {
	fill: var(--oxy-rv-accent);
}

#reviews .oxy-review-notice__icon path {
	stroke: #000;
}

#reviews .oxy-review-notice__link {
	color: var(--oxy-rv-accent);
	font-weight: 500;
	text-decoration: none;
}

#reviews .oxy-review-notice__link:hover,
#reviews .oxy-review-notice__link:focus {
	color: var(--e-global-color-primary, #fff);
	text-decoration: underline;
}

/* Review list: same cards as the home page wall, in columns. */
/* Gap below the "N reviews for …" title. Set on the list because the title's
 * own margin is reset by the Elementor product template. */
#reviews #comments ol.commentlist {
	margin: 0 calc(var(--oxy-rv-gutter) * -1) 32px;
	padding: 0;
	padding-top: 30px !important;
	list-style: none;
	column-count: 2;
	column-gap: 0;
}

#reviews #comments .woocommerce-Reviews-title {
	margin-bottom: 0;
}

/* JS moves the cards into the home page masonry grid. */
#reviews #comments .oxy-reviews-wall__grid {
	margin: 30px calc(var(--oxy-rv-gutter) * -1) 8px !important;
}

@media (min-width: 768px) {
	#reviews #comments ol.commentlist {
		column-count: 3;
	}
}

@media (min-width: 1024px) {
	#reviews #comments ol.commentlist {
		column-count: 4;
	}
}

#reviews #comments ol.commentlist li.oxy-review-item {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	break-inside: avoid;
}

#reviews #comments ol.commentlist li.oxy-review-item .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Reviews off, or none yet and the visitor can't add one: hide the whole
 * Elementor section (class "review-sec") including its padding. */
body.oxy-reviews-hidden .review-sec {
	display: none !important;
}

/* Form wrapper */
#review_form_wrapper {
	max-width: 640px;
	margin-right: auto;
	margin-left: auto;
}

#review_form #respond {
	position: static;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

#review_form .comment-notes,
#review_form .logged-in-as {
	margin: 0 0 20px;
	color: var(--oxy-muted);
	font-size: 14px;
}

#review_form .comment-notes .required,
#review_form label .required {
	color: var(--oxy-rv-accent);
}

#review_form .comment-form > p,
#review_form .comment-form > div {
	margin: 0 0 15px;
	padding: 0;
}

#review_form .comment-form label,
#review_form .oxy-upload__label {
	display: block;
	padding-bottom: 6px;
	color: var(--oxy-label);
	font-size: var(--e-global-typography-text-font-size, 14px);
	font-weight: 400;
	line-height: 1.5;
}

/* Text fields */
#review_form input[type="text"],
#review_form input[type="email"],
#review_form textarea {
	display: block;
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 10px;
	border: 1px solid var(--oxy-field-border);
	border-radius: 5px;
	background: var(--oxy-field-bg);
	box-shadow: none;
	color: var(--oxy-label);
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

#review_form textarea {
	min-height: 120px;
	resize: vertical;
}

#review_form input::placeholder,
#review_form textarea::placeholder {
	color: #7a7a7a;
	font-weight: normal;
	opacity: 1;
}

#review_form input[type="text"]:focus,
#review_form input[type="email"]:focus,
#review_form textarea:focus {
	border-color: var(--oxy-rv-accent);
	outline: none;
}

/* Name + Email side by side on wider screens */
@media (min-width: 600px) {
	#review_form .comment-form {
		display: flex;
		flex-wrap: wrap;
		column-gap: 10px;
	}

	#review_form .comment-form > * {
		flex: 1 1 100%;
	}

	#review_form .comment-form > .comment-form-author,
	#review_form .comment-form > .comment-form-email {
		flex: 1 1 calc(50% - 5px);
	}
}

/* Star rating picker (WooCommerce turns the select into p.stars) */
#review_form .comment-form-rating select {
	padding: 10px;
	border: 1px solid var(--oxy-field-border);
	border-radius: 5px;
	background: var(--oxy-field-bg);
	color: var(--oxy-label);
}

#review_form p.stars {
	max-width: fit-content;
	margin: 0;
	line-height: 0;
}

/* Own star shape (no icon font): outline by default, filled up to the
 * hovered star while hovering and up to the chosen star once selected. */
#review_form p.stars a {
	position: relative;
	display: inline-block;
	width: 26px;
	height: 26px;
	margin-right: 6px;
	overflow: hidden;
	text-indent: -999em;
	text-decoration: none;
}

#review_form p.stars a::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: rgba(220, 239, 111, 0.25);
	-webkit-mask: var(--oxy-star-mask) center / contain no-repeat;
	mask: var(--oxy-star-mask) center / contain no-repeat;
	text-indent: 0;
	transition: background-color 0.15s;
}

#review_form p.stars {
	--oxy-star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L10 14.8l-5.2 2.8 1-5.8L1.5 7.7l5.9-.9z'/%3E%3C/svg%3E");
}

#review_form p.stars:hover a::before,
#review_form p.stars.selected a::before {
	background: var(--oxy-rv-accent);
}

#review_form p.stars a:hover ~ a::before,
#review_form p.stars.selected a.active ~ a::before,
#review_form p.stars.selected:hover a:hover ~ a::before {
	background: rgba(220, 239, 111, 0.25);
}

#review_form p.stars.selected:hover a::before {
	background: var(--oxy-rv-accent);
}

#review_form p.stars a:focus-visible {
	outline: 1px dashed var(--oxy-rv-accent);
	outline-offset: 2px;
}

/* Photo upload drop zone */
#review_form label.oxy-upload,
.oxy-upload {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 22px 16px;
	border: 1px dashed var(--oxy-field-border);
	border-radius: 5px;
	background: var(--oxy-field-bg);
	color: var(--oxy-muted);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

.oxy-upload:hover,
.oxy-upload.is-dragover,
.oxy-upload:focus-within {
	border-color: var(--oxy-rv-accent);
	background: #1c1c1c;
}

.oxy-upload svg {
	width: 28px;
	height: 28px;
	color: var(--oxy-rv-accent);
}

.oxy-upload__text {
	font-size: 14px;
}

.oxy-upload__text strong {
	color: var(--oxy-rv-accent);
	font-weight: 500;
}

.oxy-upload small {
	font-size: 12px;
	opacity: 0.8;
}

/* Native input covers the zone so clicks and drag-and-drop both work. */
.oxy-upload input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.oxy-review-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.oxy-review-previews:not(:empty) {
	margin-top: 10px;
}

.oxy-review-previews img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border: 1px solid var(--oxy-field-border);
	border-radius: 5px;
}

.oxy-review-previews .is-error {
	color: #ff6b6b;
	font-size: 13px;
}

/* Cookie consent */
#review_form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

#review_form .comment-form-cookies-consent input {
	margin-top: 4px;
	accent-color: var(--oxy-rv-accent);
}

#review_form .comment-form-cookies-consent label {
	padding: 0;
	color: var(--oxy-muted);
	font-size: 13px;
}

/* Submit: same as the contact form button (full width, lime). */
#review_form .form-submit {
	margin: 5px 0 0;
}

#review_form #respond .form-submit input#submit {
	display: block;
	width: 100%;
	padding: 10px 15px;
	border: 0;
	border-radius: 5px;
	background-color: var(--e-global-color-secondary, #DCEF6F);
	color: var(--e-global-color-f32d6a3, #000);
	font-family: var(--e-global-typography-accent-font-family, "Google Sans"), sans-serif;
	font-size: var(--e-global-typography-accent-font-size, 14px);
	font-weight: var(--e-global-typography-accent-font-weight, 500);
	line-height: 1.5;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

#review_form #respond .form-submit input#submit:hover,
#review_form #respond .form-submit input#submit:focus {
	background-color: var(--e-global-color-primary, #fff);
	color: var(--e-global-color-f32d6a3, #000);
}

/* Review popup --------------------------------------------- */

.oxy-review-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.7);
}

.oxy-review-modal[hidden] {
	display: none;
}

.oxy-review-modal__dialog {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 730px;
	min-height: 300px;
	max-height: 90vh;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	color: #282828;
}

.oxy-review-modal__dialog.no-media {
	max-width: 480px;
}

.oxy-review-modal__media {
	position: relative;
	flex: 0 0 55%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.oxy-review-modal__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 90vh;
	object-fit: contain;
}

/* Long reviews scroll inside the content area; the popup stays within 90vh. */
.oxy-review-modal__content {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	max-height: 90vh;
	padding: 24px 22px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.oxy-review-modal__dialog.no-media .oxy-review-modal__content {
	padding-top: 64px;
}

.oxy-rm__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.oxy-rm__name {
	font-size: 15px;
	font-weight: 500;
}

.oxy-rm__verified {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	white-space: nowrap;
}

.oxy-rm__verified svg {
	width: 14px;
	height: 14px;
}

.oxy-rm__verified circle {
	fill: #000;
}

.oxy-rm__verified path {
	stroke: #fff;
}

.oxy-rm__row--meta {
	margin-top: 4px;
}

.oxy-rm__row--meta .oxy-stars {
	font-size: 17px;
}

.oxy-rm__date {
	font-size: 12px;
	color: #73777B;
}

.oxy-rm__text {
	margin-top: 14px;
	font-size: 15px;
	line-height: 1.5;
	word-wrap: break-word;
}

.oxy-rm__text p {
	margin: 0 0 1em;
}

.oxy-rm__product {
	display: block;
	margin-top: 20px;
	padding-top: 12px;
	border-top: 1px solid #e2e2e2;
	color: #282828;
	font-size: 13px;
	text-decoration: underline;
}

/* Extra specificity so the Elementor kit button styles (padding, lime/white
 * fill) do not shrink the icon or recolour the buttons. */
.oxy-review-modal .oxy-review-modal__dialog button.oxy-review-modal__close,
.oxy-review-modal .oxy-review-modal__dialog button.oxy-review-modal__nav {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

.oxy-review-modal .oxy-review-modal__dialog button.oxy-review-modal__close {
	top: 14px;
	left: 14px;
	width: 33px;
	height: 33px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.3);
}

.oxy-review-modal .oxy-review-modal__dialog button.oxy-review-modal__close svg {
	display: block;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

.oxy-review-modal .oxy-review-modal__dialog button.oxy-review-modal__nav {
	top: 50%;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	font-size: 22px;
	line-height: 1;
}

.oxy-review-modal .oxy-review-modal__dialog button.oxy-review-modal__close:hover,
.oxy-review-modal .oxy-review-modal__dialog button.oxy-review-modal__close:focus,
.oxy-review-modal .oxy-review-modal__dialog button.oxy-review-modal__nav:hover,
.oxy-review-modal .oxy-review-modal__dialog button.oxy-review-modal__nav:focus {
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
}

.oxy-review-modal .oxy-review-modal__dialog button.oxy-review-modal__nav--prev {
	left: 10px;
}

.oxy-review-modal .oxy-review-modal__dialog button.oxy-review-modal__nav--next {
	right: 10px;
}

.oxy-review-modal .oxy-review-modal__dialog button.oxy-review-modal__nav[hidden] {
	display: none;
}

.oxy-review-modal__media[hidden],
.oxy-review-modal__content[hidden],
.oxy-review-modal__nav[hidden] {
	display: none;
}

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

@media (max-width: 767px) {
	.oxy-review-modal__dialog {
		flex-direction: column;
	}

	.oxy-review-modal__media {
		flex: 0 0 auto;
	}

	.oxy-review-modal__media img {
		height: auto;
		max-height: 45vh;
	}

	.oxy-review-modal__content {
		max-height: none;
	}
}

/* Image-only popup (photo thumbnails on the product page). */
.oxy-review-modal__dialog.no-content {
	width: auto;
	background: #000;
}

.oxy-review-modal__dialog.no-content .oxy-review-modal__media {
	flex: 1 1 auto;
	background: #000;
}

.oxy-review-modal button:focus:not(:focus-visible) {
	outline: none;
}
