/*
 * GD Top Menu Shape widget
 */

 .z-index-100-overflow {
 	position: relative;
 	overflow: visible !important;
 }

/* Zero out Elementor's own widget wrappers */
.elementor-widget-immer_gd_top_menu_shape,
.elementor-widget-immer_gd_top_menu_shape .elementor-widget-container {
	height: 0;
	padding: 0;
	margin: 0;
	overflow: visible;
}

/* Zero-height anchor — takes up no space in the layout flow */
.gd-top-menu-shape {
	position: relative;
	height: 0;
	width: 100%;
	z-index: 20;
	pointer-events: none;
}

/* All children are purely decorative — must not intercept mouse events */
.gd-top-menu-shape * {
	pointer-events: none;
}

/* Shared white pattern fill — used by __left-fill and __pre-shape */
.gd-top-menu-shape__filled {
	background-image: url('../images/white-5x20.svg');
	background-repeat: repeat-x;
	background-position: bottom center;
	background-size: 10px 40px; /* twice image size */
    background-color: var(--gd-white);
}

/* White fill: from viewport left edge to container left edge.
 * left: calc(50% - 50vw)  → bleeds to viewport left
 * right: 100%              → stops at container left edge */
.gd-top-menu-shape__left-fill {
	position: absolute;
	top: 0;
	left: calc(50% - 50vw);
	right: 100%;
	height: 40px;
}

/* Shape + transparent: from container left edge to viewport right.
 * left: 0                  → container left edge
 * right: calc(50% - 50vw)  → bleeds to viewport right */
.gd-top-menu-shape__right-part {
	position: absolute;
	top: 0;
	left: 0;
	right: calc(50% - 50vw);
	height: 40px;
	display: flex;
	align-items: flex-end;
}

/* Segment base styles */
.gd-top-menu-shape__segment {
	display: flex;
	align-items: flex-end;
}

/* Pre-shape white spacer — zero width by default (wide screens) */
.gd-top-menu-shape__segment--pre-shape {
	flex: 0 0 0;
	width: 0;
	overflow: hidden;
	align-self: stretch;
}

/* On ≤1500px: logo shifts right, add 150px of white before the shape */
@media (max-width: 1500px) {
	.gd-top-menu-shape__segment--pre-shape {
		flex: 0 0 150px;
		width: 150px;
	}
}

/* Shape segment */
.gd-top-menu-shape__segment--shape {
	flex: 0 0 auto;
	background: transparent;
	padding: 0;
	height: 40px;
}

/* Shape image */
.gd-top-menu-shape__segment--shape .gd-top-menu-shape__shape-img {
	display: block;
	width: auto;
	height: 40px; /* Must be more specific than 'elementor img' therefore we set height here */
}

/* Transparent fill — takes all remaining space */
.gd-top-menu-shape__segment--transparent {
	flex: 1 1 0;
	background: transparent;
}

/* Absolutely positioned inner — paints 40px downward from the anchor point.
 * left: calc(50% - 50vw) bleeds out to the viewport left edge from within a
 * centered container. right: 0 stays at the container's right edge. */
.gd-top-menu-shape__inner {
	position: absolute;
	top: 0;
	left: calc(50% - 50vw);
	right: 0;
	height: 40px;
	display: flex;
	align-items: flex-end;
}

/* Segment base styles */
.gd-top-menu-shape__segment {
	display: flex;
	align-items: flex-end;
}

/* Left white pattern segment — grows to fill all space left of the shape */
.gd-top-menu-shape__segment--pattern {
	flex: 1 1 0;
	align-self: stretch;
	background-image: url('../images/white-5x20.svg');
	background-repeat: repeat-x;
	background-position: bottom center;
	background-size: 10px 40px; /* twice image size */
}

/* Shape segment (transparent background) */
.gd-top-menu-shape__segment--shape {
	flex: 0 0 auto;
	background: transparent;
	padding: 0;
	align-self: flex-end;
	height: 40px;
    margin-left: -0.5px; /* Fixes a 1px gap between the pattern and shape on some displays/browsers */
}

/* Shape image */
.gd-top-menu-shape__segment--shape .gd-top-menu-shape__shape-img {
	display: block;
	width: auto;
	height: 40px; /* Must be more specific than 'elementor img' therefore we set height here */
}

/* Right transparent segment — fills remaining space */
.gd-top-menu-shape__segment--transparent {
	flex: 1 1 0;
	background: transparent;
}
