/*
 * Pluseo — product-page content block.
 * Loaded only on single products that have generated content — see
 * AISCP_Product_Content::enqueue_styles.
 *
 * Deliberately minimal: the block inherits the theme's typography so it reads
 * as part of the product page rather than as a plugin insert. Removing this
 * stylesheet leaves plain, legible HTML.
 */

.pluseo-product-content {
	margin: 2.5em 0;
	font-family: inherit;
	line-height: 1.75;
}

.pluseo-product-content__title {
	font-size: 1.6em;
	line-height: 1.3;
	margin: 0 0 0.8em 0;
}

.pluseo-product-content__body > *:first-child {
	margin-top: 0;
}

.pluseo-product-content__body > *:last-child {
	margin-bottom: 0;
}

.pluseo-product-content__body h2 {
	font-size: 1.35em;
	line-height: 1.35;
	margin: 1.6em 0 0.6em;
}

.pluseo-product-content__body h3 {
	font-size: 1.15em;
	line-height: 1.4;
	margin: 1.4em 0 0.5em;
}

.pluseo-product-content__body p {
	margin: 0 0 1em;
}

.pluseo-product-content__body ul,
.pluseo-product-content__body ol {
	margin: 0 0 1.2em;
	padding-inline-start: 1.4em;
}

.pluseo-product-content__body li {
	margin-bottom: 0.4em;
}

/* ---------------------------------------------------------------
   [pluseo_product_content_toggle] — collapsible "מידע נוסף" widget.
   Native <details>/<summary>, so it works with zero JS and stays
   keyboard-accessible. Remove this stylesheet and the browser's own
   disclosure triangle still opens it.
   --------------------------------------------------------------- */

.pluseo-pc-toggle {
	margin: 2em 0;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.pluseo-pc-toggle__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	cursor: pointer;
	font-weight: 600;
	font-size: 1.05em;
	line-height: 1.4;
	list-style: none;
	user-select: none;
}

/* Kill the native marker so only our own icon shows. */
.pluseo-pc-toggle__head::-webkit-details-marker { display: none; }
.pluseo-pc-toggle__head::marker { content: ''; }

.pluseo-pc-toggle__head:hover { background: #f9fafb; }
.pluseo-pc-toggle__head:focus-visible { outline: 2px solid #6366F1; outline-offset: -2px; }

/* The plus: two bars, so no icon font is needed and it becomes a clean
   minus when open (the vertical bar simply collapses). */
.pluseo-pc-toggle__icon {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.pluseo-pc-toggle__icon::before,
.pluseo-pc-toggle__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background: currentColor;
	border-radius: 1px;
	transform: translate(-50%, -50%);
	transition: opacity .18s ease, transform .18s ease;
}

.pluseo-pc-toggle__icon::before { width: 100%; height: 2px; }  /* horizontal */
.pluseo-pc-toggle__icon::after  { width: 2px; height: 100%; }  /* vertical   */

.pluseo-pc-toggle[open] .pluseo-pc-toggle__icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(90deg);
}

/* The plus sits immediately to the RIGHT of the label in both directions: it is
   first in the DOM (so RTL already renders it to the right of the text) and is
   reordered to follow the text under LTR. No flex:1 on the label — the icon
   should hug the text, not float off at the far edge. */
[dir="ltr"] .pluseo-pc-toggle__icon { order: 2; }

.pluseo-pc-toggle__body {
	padding: 0 20px 18px;
	border-top: 1px solid #f3f4f6;
}

.pluseo-pc-toggle__body .pluseo-product-content { margin: 1.2em 0 0; }

.pluseo-product-content__body table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.2em;
}

.pluseo-product-content__body th,
.pluseo-product-content__body td {
	border: 1px solid #e5e7eb;
	padding: 8px 12px;
	text-align: start;
}
