/* Repair Center — Repair Services widget frontend styles.
 * Hand-written to match the live site's existing design exactly (colors and
 * spacing verified against the real page's Elementor data + Elementor's own
 * generated/default CSS — see plan notes), NOT generated by Elementor, so a
 * future Elementor Pro update cannot silently change this.
 */

.rc-repair-services {
	width: 100%;
}

/* ---- Tabs ---- */

.rc-rs-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.rc-rs-tab {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 15px;
	background: #e0e7e3;
	color: #54595f;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	flex: 0 0 auto;
	width: 140px;
	transition: background-color 0.3s, color 0.3s;
}

.rc-rs-tab__icon {
	display: block;
	width: 36px;
	height: 36px;
}

.rc-rs-tab__icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.rc-rs-tab__label {
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	line-height: 1.2;
	letter-spacing: 2px;
}

.rc-rs-tab:hover,
.rc-rs-tab.is-active {
	background: #063231;
	color: #fff;
}

/* Little downward caret under the active tab, exactly matching the site's
 * global `.e-n-tab-title[aria-selected=true]::after` rule (classic CSS
 * border-triangle trick: a 0x0 box with only the top border visible). */
.rc-rs-tab[aria-selected="true"]::after {
	content: "";
	width: 0;
	height: 0;
	position: absolute;
	bottom: -12px;
	left: 50%;
	transform: translate( -50%, 0 );
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-top: 12px solid #063231;
}

/* ---- Panels ---- */

.rc-rs-panels {
	position: relative;
}

.rc-rs-panel {
	display: none;
	background: #eef7f3;
	border: 2px solid rgba( 6, 50, 49, 0.3 );
	border-radius: 10px;
	margin-top: 24px;
	padding: 36px;
}

.rc-rs-panel.rc-rs-panel--multi {
	padding: 0;
}

.rc-rs-panel.is-active {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
}

/* Single-service panel: 50/50 info | details */
.rc-rs-panel--single.is-active {
	align-items: center;
}

.rc-rs-panel--single .rc-rs-info {
	width: 50%;
	display: flex;
	flex-direction: column;
}

.rc-rs-panel--single .rc-rs-details {
	width: 50%;
	display: flex;
	flex-direction: column;
	padding-left: 30px;
}

.rc-rs-panel--single .rc-rs-icon svg {
	width: 90px;
	height: 90px;
}

/* Multi-service panel: N self-contained columns */
.rc-rs-panel--multi.is-active {
	align-items: stretch;
}

.rc-rs-panel--multi .rc-rs-column {
	width: calc( 100% / var( --rc-rs-columns, 2 ) );
	display: flex;
	flex-direction: column;
	padding: 40px;
	border-right: 2px solid rgba( 6, 50, 49, 0.3 );
	box-sizing: border-box;
}
.rc-rs-panel--multi .rc-rs-column:last-child {
	border-right: none;
}

.rc-rs-panel--multi .rc-rs-icon svg {
	width: 90px;
	height: 90px;
}

/* ---- Shared info-block pieces (icon/title/price/form) ---- */

.rc-rs-icon {
	margin-bottom: 16px;
	color: #69727d;
}

.rc-rs-icon svg {
	display: block;
	fill: currentColor;
}

.rc-rs-title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	margin: 0 0 6px;
}

.rc-rs-price {
	font-size: 24px;
	color: #13cb8f;
	margin: 0 0 12px;
}

.rc-widget-book-form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.rc-widget-variation-select {
	margin-bottom: 18px;
	width: auto;
	max-width: 100%;
	display: block;
}

.rc-widget-book-btn {
	cursor: pointer;
	border-radius: 50px;
	/* background-color: var(--ast-global-color-2);
	color: var(--ast-global-color-0); */
}
/* .rc-widget-book-btn:hover, .rc-widget-book-btn:focus {
	opacity: 0.9;
	background-color: var(--ast-global-color-2);
	color: var(--ast-global-color-0);
} */
.rc-widget-book-form + .rc-repair-device-content {
	margin-top: 36px;
}

.rc-widget-book-btn .fa-spinner {
	display: none;
}

/* ---- Shared details pieces (description/warranty/repair-time) ---- */

.rc-rs-detail {
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid #c0c4ca;
}

.rc-rs-detail--last {
	border-bottom: none;
	margin-bottom: 0;
}

.rc-rs-detail h3 {
	margin: 0 0 6px;
}

.rc-rs-detail p {
	margin: 0;
}

/* Repair/diagnostic description renders the simple WYSIWYG's stored HTML
 * (bold/italic/lists/links) directly, so — unlike the single literal <p>
 * warranty/repair-time text above — it needs real block-spacing rules. */
.rc-rs-description-content p,
.rc-rs-description-content ul,
.rc-rs-description-content ol {
	margin: 0 0 10px;
}

.rc-rs-description-content p:last-child,
.rc-rs-description-content ul:last-child,
.rc-rs-description-content ol:last-child {
	margin-bottom: 0;
}

.rc-rs-description-content ul,
.rc-rs-description-content ol {
	padding-left: 20px;
}

/* Description text uses Astra global color 3 (#495B55) — matches the one
 * explicit text-color override found in the original design; warranty/
 * repair-time text intentionally inherits the theme default, same as the
 * original (no override was ever set on those two). */
.rc-rs-detail:first-child {
	color: #495b55;
}

.rc-rs-placeholder {
	padding: 16px;
	background: #fff3cd;
	border: 1px dashed #c3c4c7;
	color: #646970;
	text-align: center;
}

/* ---- Mobile (matches the original's padding_mobile breakpoint) ---- */
@media screen and ( max-width: 767px ) {
	/* Matches Elementor Nested Tabs' own mobile behaviour: tabs stack into
	 * a full-width vertical list instead of a row (same 767px breakpoint
	 * the original site's tabs switch at). Panel-switching itself is
	 * unchanged — clicking a stacked tab still shows its one panel below
	 * the whole list, same as desktop. */
	.rc-rs-tabs {
		flex-direction: column;
		flex-wrap: nowrap;
	}

	.rc-rs-tab {
		width: 100%;
	}

	.rc-rs-panel {
		padding: 30px;
		margin-top: 10px;
	}

	.rc-rs-panel--single.is-active,
	.rc-rs-panel--multi.is-active {
		flex-direction: column;
	}

	.rc-rs-panel--single .rc-rs-info,
	.rc-rs-panel--single .rc-rs-details,
	.rc-rs-panel--multi .rc-rs-column {
		width: 100%;
	}
	
	.rc-rs-panel--multi .rc-rs-column {
		border-right: none;
		border-bottom: 2px solid rgba( 6, 50, 49, 0.3 );
		padding: 30px;
	}
	
	.rc-rs-panel--single .rc-rs-details {
		padding-left: 0;
		padding-top: 30px;
	}

	.rc-rs-panel--multi .rc-rs-column:last-child {
		border-bottom: none;
	}
	.rc-rs-detail--last {
		padding-bottom: 0;
		margin-bottom: 0;
	}
}
