/**
 * Estone Drop Test Procedures Flow Diagram Styles
 */

.estone-drop-test-procedures-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
}

.estone-drop-test-procedures-wrapper.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.editor-styles-wrapper .estone-drop-test-procedures-wrapper,
.block-editor-block-list__layout .estone-drop-test-procedures-wrapper,
.block-editor-block-list__block .estone-drop-test-procedures-wrapper,
.block-editor-iframe__html .estone-drop-test-procedures-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.estone-drop-test-procedures-wrapper * {
	box-sizing: border-box;
}

.estone-dtp-inner {
	position: relative;
	z-index: 2;
	width: 100%;
}

/* Header */
.estone-dtp-header {
	width: 100%;
}

.estone-dtp-title {
	font-family: inherit;
	font-weight: 800;
	margin: 0 0 1rem 0;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.estone-dtp-intro {
	font-family: inherit;
	font-weight: 400;
	max-width: 1200px;
}

/* Flow Container */
.estone-dtp-flow-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin-top: 1.5rem;
}

/* Rows */
.estone-dtp-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	position: relative;
}

.estone-dtp-step-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	flex: 1;
	max-width: 250px;
	position: relative;
	z-index: 3;
}

/* Icon Bubble */
.estone-dtp-icon-bubble {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	box-shadow: 0 3px 12px rgba(0, 56, 117, 0.08);
	border: 1.5px solid rgba(0, 114, 178, 0.2);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	flex-shrink: 0;
}

.estone-dtp-step-wrap:hover .estone-dtp-icon-bubble {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 56, 117, 0.14);
	border-color: #0072b2;
}

/* Pill Button */
.estone-dtp-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	min-height: 48px;
	font-weight: 700;
	line-height: 1.3;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	cursor: default;
}

.estone-dtp-step-wrap:hover .estone-dtp-pill {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 114, 178, 0.12) !important;
}

/* Connectors */
.estone-dtp-arrow-right,
.estone-dtp-arrow-left {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	margin-top: 56px; /* align with pill vertical center */
	flex-shrink: 0;
	opacity: 0.85;
}

.estone-dtp-turn-arrow-wrap {
	display: flex;
	justify-content: flex-end;
	padding-right: calc((100% / 4) / 2 - 12px); /* Center below right-most step */
	margin: 10px 0;
	width: 100%;
}

.estone-dtp-turn-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.85;
}

/* Responsive Handling */
@media (max-width: 1100px) {
	.estone-dtp-pill {
		font-size: 11.5px !important;
		padding: 10px 14px !important;
	}

	.estone-dtp-step-wrap {
		max-width: 210px;
	}
}

@media (max-width: 900px) {
	.estone-dtp-row-1,
	.estone-dtp-row-2 {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 16px;
	}

	.estone-dtp-row-2 {
		margin-top: 24px;
	}

	.estone-dtp-step-wrap {
		max-width: 100%;
	}

	.estone-dtp-arrow-right,
	.estone-dtp-arrow-left,
	.estone-dtp-turn-arrow-wrap {
		display: none;
	}
}

@media (max-width: 600px) {
	.estone-dtp-row-1,
	.estone-dtp-row-2 {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.estone-drop-test-procedures-wrapper {
		padding-left: 20px !important;
		padding-right: 20px !important;
		padding-top: 48px !important;
		padding-bottom: 48px !important;
	}

	.estone-dtp-title {
		font-size: 24px !important;
	}
}
