/**
 * Equippedly global pre-footer support panel.
 *
 * Note: Bricks sets html { font-size: 62.5% } (~10px rem). Critical
 * panel sizes use px so desktop readability matches the design targets.
 *
 * @package equippedly-child
 */

.eq-support-panel {
	--eq-sp-radius: 24px;
	--eq-sp-pad: clamp(36px, 4vw, 52px);
	--eq-sp-gap: clamp(48px, 6vw, 80px);
	position: relative;
	z-index: 1;
	/* Tighter bridge into Join the Club / footer. */
	padding-block-start: clamp(20px, 2.5vw, 32px);
	padding-block-end: clamp(12px, 1.5vw, 20px);
	padding-inline: 0;
	background: var(--eq-color-chalk-white, #f7f5f1);
}

.eq-support-panel__inner {
	display: grid;
	grid-template-columns: minmax(300px, 0.8fr) minmax(520px, 1.4fr);
	gap: var(--eq-sp-gap);
	align-items: center;
	padding: var(--eq-sp-pad);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--eq-sp-radius);
	background: var(--eq-color-ink-black, #0e0e10);
	color: var(--eq-color-chalk-white, #f7f5f1);
	box-shadow: 0 16px 40px rgba(14, 14, 16, 0.12);
}

.eq-support-panel__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	min-width: 0;
	max-width: 420px;
}

.eq-support-panel__eyebrow {
	margin: 0;
	font-family: var(--eq-font-heading, inherit);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--eq-color-volt, #cbff4d);
}

.eq-support-panel__title {
	margin: 0;
	max-width: 420px;
	font-family: var(--eq-font-display, inherit);
	font-size: clamp(30px, 2.4vw, 38px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.08;
	color: var(--eq-color-chalk-white, #f7f5f1);
}

.eq-support-panel__body {
	margin: 0;
	max-width: 410px;
	font-family: var(--eq-font-body, inherit);
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.76);
}

.eq-support-panel__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eq-support-panel__action-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.eq-support-panel__action {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	width: 100%;
	min-height: 76px;
	margin: 0;
	padding: 18px 22px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.045);
	color: inherit;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.eq-support-panel__action:hover {
	background: rgba(255, 255, 255, 0.075);
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	transform: translateY(-1px);
	color: inherit;
	text-decoration: none;
}

.eq-support-panel__action:focus-visible {
	outline: 2px solid var(--eq-color-volt, #cbff4d);
	outline-offset: 3px;
}

.eq-support-panel__action--chat {
	border-color: color-mix(in srgb, var(--eq-color-volt, #cbff4d) 34%, transparent);
	background: color-mix(in srgb, var(--eq-color-volt, #cbff4d) 7%, transparent);
}

.eq-support-panel__action--chat:hover {
	border-color: color-mix(in srgb, var(--eq-color-volt, #cbff4d) 48%, transparent);
	background: color-mix(in srgb, var(--eq-color-volt, #cbff4d) 11%, transparent);
}

.eq-support-panel__action-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.92);
}

.eq-support-panel__action--chat .eq-support-panel__action-icon {
	border-color: color-mix(in srgb, var(--eq-color-volt, #cbff4d) 42%, transparent);
	background: color-mix(in srgb, var(--eq-color-volt, #cbff4d) 14%, transparent);
	color: var(--eq-color-volt, #cbff4d);
}

.eq-support-panel__action-icon svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	stroke-width: 1.85;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

.eq-support-panel__action-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.eq-support-panel__action-title {
	font-family: var(--eq-font-heading, inherit);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--eq-color-chalk-white, #f7f5f1);
}

.eq-support-panel__action-desc {
	font-family: var(--eq-font-body, inherit);
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.7);
}

.eq-support-panel__arrow {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: rgba(255, 255, 255, 0.55);
	transition: transform 0.18s ease, color 0.18s ease;
}

.eq-support-panel__arrow svg {
	width: 100%;
	height: 100%;
	stroke: currentColor;
	stroke-width: 1.85;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

.eq-support-panel__action:hover .eq-support-panel__arrow {
	color: var(--eq-color-volt, #cbff4d);
	transform: translateX(4px);
}

.eq-support-panel__action--chat .eq-support-panel__arrow {
	color: var(--eq-color-volt, #cbff4d);
}

/* RTL: flip arrow affordance; hover moves toward the start edge. */
[dir="rtl"] .eq-support-panel__arrow svg {
	transform: scaleX(-1);
}

[dir="rtl"] .eq-support-panel__action:hover .eq-support-panel__arrow {
	transform: translateX(-4px);
}

@media (max-width: 1100px) {
	.eq-support-panel__inner {
		grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.3fr);
		gap: clamp(36px, 4vw, 56px);
	}
}

@media (max-width: 960px) {
	.eq-support-panel__inner {
		grid-template-columns: 1fr;
		gap: 28px;
		align-items: stretch;
	}

	.eq-support-panel__copy {
		max-width: none;
	}

	.eq-support-panel__title {
		font-size: clamp(28px, 4vw, 34px);
		max-width: none;
	}

	.eq-support-panel__body {
		max-width: none;
		font-size: 16px;
	}

	.eq-support-panel__action {
		min-height: 72px;
	}
}

@media (max-width: 640px) {
	.eq-support-panel {
		padding-block-start: 16px;
		padding-block-end: 10px;
		padding-inline: 16px;
	}

	.eq-support-panel__inner {
		padding: 24px 20px;
		border-radius: 18px;
		gap: 24px;
	}

	.eq-support-panel__copy {
		gap: 14px;
	}

	.eq-support-panel__title {
		font-size: clamp(26px, 7vw, 30px);
		line-height: 1.1;
	}

	.eq-support-panel__body {
		font-size: 15px;
		line-height: 1.55;
	}

	.eq-support-panel__actions {
		gap: 10px;
	}

	.eq-support-panel__action {
		min-height: 80px;
		padding: 16px 16px;
		gap: 14px;
		border-radius: 14px;
	}

	.eq-support-panel__action-icon {
		width: 38px;
		height: 38px;
	}

	.eq-support-panel__action-icon svg {
		width: 18px;
		height: 18px;
	}

	.eq-support-panel__action-title {
		font-size: 15px;
	}

	.eq-support-panel__action-desc {
		font-size: 13px;
	}
}

@media (max-width: 360px) {
	.eq-support-panel {
		padding-inline: 12px;
	}

	.eq-support-panel__inner {
		padding: 22px 16px;
	}

	.eq-support-panel__action {
		min-height: 84px;
		padding: 14px;
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eq-support-panel__action,
	.eq-support-panel__arrow {
		transition: none !important;
	}

	.eq-support-panel__action:hover {
		transform: none;
	}

	.eq-support-panel__action:hover .eq-support-panel__arrow,
	[dir="rtl"] .eq-support-panel__action:hover .eq-support-panel__arrow {
		transform: none;
	}

	[dir="rtl"] .eq-support-panel__arrow svg {
		transform: scaleX(-1);
	}
}
