/* Isolate WooCommerce tab panels from the theme sidebar .panel class. */
.single-product .woocommerce-tabs > .woocommerce-Tabs-panel.panel {
 position:static;
 inset:auto;
 z-index:auto;
 display:block;
 width:100%;
 max-width:none;
 height:auto;
 min-height:0;
 max-height:none;
 visibility:visible;
 opacity:1;
 transform:none;
 transition:none;
 box-shadow:none;
 background:transparent;
 flex-direction:initial;
 font-size:14px;
}
/* Product review form, matching the supplied plain white reference. */
.single-product #reviews { clear:both;direction:rtl;text-align:right;color:inherit; }
/* The 700px column is kept — it is the right measure for a text field — but
 * it is anchored to the reading edge instead of being centred in a 1023px
 * panel. Centred, it put the fields on one axis and the title on another; in
 * RTL the column starts at the right, so title, note, labels and fields now
 * share one edge. Logical margins do the anchoring, so the rule stays correct
 * if the store is ever served LTR. */
.single-product #reviews #review_form_wrapper {
	width:100%;
	max-width:700px;
	float:none;
	margin-block-start:28px;
	margin-inline-start:0;
	margin-inline-end:auto;
}
.single-product #reviews #review_form,.single-product #reviews #respond { width:100%;padding:0;margin:0;border:0;background:transparent;box-shadow:none; }
.single-product #reviews .comment-reply-title:empty { display:none; }
.single-product #reviews form.mgt-product-review-form { display:flex;flex-direction:column;gap:0;width:100%;margin:0;padding:0; }
.single-product #reviews form.mgt-product-review-form p { float:none;width:100%;padding:0;margin:0 0 14px; }
.single-product #reviews form.mgt-product-review-form label { display:block;width:auto;margin:0 0 9px;text-align:right;color:#333;font:inherit;font-size:14px;font-weight:400;line-height:1.6; }
.single-product #reviews form.mgt-product-review-form .required { color:#d60630;font-weight:400; }
.single-product #reviews form.mgt-product-review-form textarea,
.single-product #reviews form.mgt-product-review-form input[type=text],
.single-product #reviews form.mgt-product-review-form input[type=email] { display:block;box-sizing:border-box;width:100%;max-width:100%;border:2px solid #e4e4e4;border-radius:0;background:#fff;box-shadow:none;color:#222;font:inherit;font-size:15px;line-height:1.7;padding:8px 12px; }
.single-product #reviews form.mgt-product-review-form input[type=text],
.single-product #reviews form.mgt-product-review-form input[type=email] { height:42px;min-height:42px; }
.single-product #reviews form.mgt-product-review-form input[type=email] { direction:ltr;text-align:left; }
.single-product #reviews form.mgt-product-review-form textarea { height:190px;min-height:190px;resize:vertical; }
.single-product #reviews form.mgt-product-review-form textarea:focus,
.single-product #reviews form.mgt-product-review-form input:focus,
.single-product #reviews form.mgt-product-review-form select:focus { outline:2px solid #555;outline-offset:2px; }
.single-product #reviews .comment-form-rating { margin:0 0 16px; }
.single-product #reviews .comment-form-rating select { min-height:40px;max-width:100%;border:1px solid #ddd;background:#fff;font:inherit; }
.single-product #reviews .comment-form-rating p.stars { margin:0;line-height:1.6; }
.single-product #reviews form.mgt-product-review-form .comment-form-cookies-consent { display:flex;align-items:flex-start;gap:8px;margin-top:4px; }
.single-product #reviews form.mgt-product-review-form .comment-form-cookies-consent input { flex:none;margin-top:4px; }
.single-product #reviews form.mgt-product-review-form .comment-form-cookies-consent label { font-size:12px;color:#555;margin:0; }
.single-product #reviews form.mgt-product-review-form p.form-submit { margin:24px 0 0; }
.single-product #reviews #submit.mgt-review-submit { display:block;box-sizing:border-box;width:100%;height:42px;min-height:42px;padding:8px 16px;border:0;border-radius:5px;background:#eee;color:#111;box-shadow:none;font:inherit;font-size:14px;font-weight:600;text-align:center;cursor:pointer; }
.single-product #reviews #submit.mgt-review-submit:hover { background:#e1e1e1;color:#111; }
.single-product #reviews #submit.mgt-review-submit:focus-visible { outline:2px solid #555;outline-offset:3px; }
.single-product #reviews .commentlist { padding:0;list-style:none; }

/* ------------------------------------------------------------------
 * Reviews tab: one alignment axis.
 *
 * What was wrong. The panel mixed three of them — the title was centred
 * by the parent theme's global h2 rule, the empty-state line was
 * right-aligned to the panel edge, and the logged-out notice sat in a
 * 700px box centred in the panel, so it stopped 254px short of that same
 * edge at 1280. The login link was also the same colour as the body text
 * with no underline, so «وارد حساب خود شوید» read as part of the
 * sentence instead of the one thing to click.
 *
 * Everything below is scoped to #reviews on a single product page, so
 * the shop loop, the related row (whose centred heading is deliberate)
 * and the rest of the store are untouched.
 * ------------------------------------------------------------------ */

/* Title: right-aligned to match the copy under it, and sized between the
 * panel's body text and the page's section headings so it reads as the
 * start of one block rather than a banner. */
.single-product #reviews .woocommerce-Reviews-title {
	margin:0 0 18px;
	font-size:20px;
	line-height:1.6;
	font-weight:600;
	text-align:right;
	color:inherit;
}

/* Empty state. The two lines are one statement — "nothing here yet, and
 * here is how to change that" — so they sit flush at the same start edge
 * with the same measure; only the note is muted. */
.single-product #reviews .woocommerce-noreviews {
	margin:0 0 10px;
	font-size:14px;
	line-height:1.9;
	color:#767676;
	text-align:right;
}

.single-product #reviews .must-log-in {
	margin:0;
	font-size:14px;
	line-height:1.9;
	text-align:right;
}

/* The login link keeps the store's ink with an accent underline: it still
 * reads as a link at rest, and hover/focus only thickens the rule. Colour
 * is inherited deliberately so it survives a palette change. */
.single-product #reviews .must-log-in a {
	color:inherit;
	text-decoration:underline;
	text-decoration-thickness:1px;
	text-decoration-color:var(--yellow,#f8c13b);
	text-underline-offset:4px;
	transition:text-decoration-thickness .18s ease;
}
.single-product #reviews .must-log-in a:hover { text-decoration-thickness:2px; }
.single-product #reviews .must-log-in a:focus-visible {
	outline:2px solid var(--ink,#0a0a0a);
	outline-offset:3px;
}

/* Phones: the title steps down a notch and the block tightens, but the
 * type stays at the 14px floor this site uses for body copy. */
@media(max-width:600px) {
	.single-product #reviews form.mgt-product-review-form textarea { height:170px;min-height:170px; }
	.single-product #reviews .woocommerce-Reviews-title { font-size:18px;margin-bottom:14px; }
}
