/**
 * Kids World — header compact : compte | wishlist | panier | réseaux sociaux.
 */

/* Masquer la 2e rangée (compte + réseaux dupliqués) */
body.kw-header-actions-ready .et_pb_row_0_tb_header.header-v1-top-row {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
}

/* Pas de label sous l’icône compte */
.kw-header-account__label {
	display: none !important;
}

.kw-header-account {
	min-width: 42px !important;
}

/* Désactiver l’overlay plein écran FiboSearch sur mobile */
html.dgwt-wcas-overlay-mobile-on,
body.dgwt-wcas-overlay-mobile-on {
	overflow: auto !important;
	height: auto !important;
	position: static !important;
}

.dgwt-wcas-overlay-mobile {
	display: none !important;
	visibility: hidden !important;
}

/* Rangée principale desktop */
body.kw-header-actions-ready #page-container .et_pb_row_1_tb_header.header-v1-row-search.et_pb_row {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 10px !important;
}

/* Logo Kids World */
body.kw-header-actions-ready #page-container .et_pb_column_2_tb_header {
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.kw-header-actions-ready #page-container .et_pb_image_0_tb_header {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	text-align: left !important;
}

body.kw-header-actions-ready #page-container .et_pb_image_0_tb_header .et_pb_image_wrap,
body.kw-header-actions-ready #page-container .et_pb_image_0_tb_header .kw-logo-home,
body.kw-header-actions-ready #page-container .et_pb_image_0_tb_header .et_pb_image_wrap img {
	display: block !important;
	margin: 0 !important;
}

body.kw-header-actions-ready #page-container .et_pb_image_0_tb_header .et_pb_image_wrap img {
	max-width: 170px !important;
	width: auto !important;
	height: auto !important;
}

body.kw-header-actions-ready #page-container .et_pb_column_3_tb_header {
	flex: 1 1 420px !important;
	width: auto !important;
	max-width: 460px !important;
	min-width: 280px !important;
	margin: 0 12px !important;
}

body.kw-header-actions-ready #page-container .et_pb_column_4_tb_header {
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
	margin-left: auto !important;
	margin-right: 0 !important;
	padding: 0 !important;
}

body.kw-header-actions-ready #page-container .et_pb_column_4_tb_header,
body.kw-header-actions-ready .header-v1-row-search-last-column {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 18px !important;
}

.kw-header-actions {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 18px !important;
	flex-shrink: 0;
	margin-left: auto !important;
	min-height: 36px;
}

.kw-header-actions > .kw-header-account-wrap,
.kw-header-actions > .kw-header-wishlist-wrap,
.kw-header-actions > .et_pb_menu_1_tb_header,
.kw-header-actions > .et_pb_social_media_follow_0_tb_header {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-self: center !important;
	margin: 0 !important;
	flex-shrink: 0;
	min-height: 36px;
}

.kw-header-actions > .et_pb_social_media_follow_0_tb_header {
	margin-left: 6px !important;
	padding-left: 12px !important;
	border-left: 1px solid rgba(0, 0, 0, 0.12);
}

.kw-header-actions .cart-menu,
.kw-header-actions .et_pb_menu_1_tb_header .et_pb_menu__menu,
.kw-header-actions .woofc-menu-item {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
	min-height: 36px !important;
}

.kw-header-actions .woofc-menu-item .woofc-menu-item-inner {
	display: flex !important;
	flex-shrink: 0 !important;
}

.kw-header-actions li.menu-item-type-woofc {
	margin: 0 !important;
	padding: 0 !important;
}

/* Panier — même style rond que la wishlist */
.kw-header-actions .woofc-menu-item a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	color: #000000 !important;
}

.kw-header-actions .woofc-menu-item .woofc-menu-item-inner {
	position: relative !important;
	align-items: center !important;
	justify-content: center !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	max-width: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	aspect-ratio: 1 / 1 !important;
	border-radius: 50% !important;
	border: 2px solid #000000 !important;
	background: transparent !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

.kw-header-actions .woofc-menu-item .woofc-menu-item-inner i {
	display: block !important;
	margin: 0 !important;
	width: auto !important;
	font-size: 15px !important;
	line-height: 1 !important;
	color: #000000 !important;
}

.kw-header-actions .woofc-menu-item .woofc-menu-item-inner-subtotal {
	display: none !important;
}

.kw-header-actions .woofc-menu-item .woofc-menu-item-inner::after {
	top: -4px !important;
	right: -6px !important;
	left: auto !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	max-width: 16px !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	border-radius: 50% !important;
	background: #E02B20 !important;
	color: #ffffff !important;
	font-family: 'Quicksand', Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 9px !important;
	font-weight: 700 !important;
}

.kw-header-actions .et_pb_social_media_follow_0_tb_header {
	display: inline-flex !important;
	align-items: center !important;
	margin: 0 !important;
}

.kw-header-actions .et_pb_social_media_follow_0_tb_header li {
	margin: 0 0 0 10px !important;
}

.kw-header-actions .et_pb_social_media_follow_0_tb_header li:first-child {
	margin-left: 0 !important;
}

.kw-header-actions .et_pb_social_media_follow_0_tb_header li a.icon {
	height: 28px !important;
	width: 28px !important;
}

.kw-header-actions .et_pb_social_media_follow_0_tb_header li a.icon:before {
	font-size: 14px !important;
	line-height: 28px !important;
	height: 28px !important;
	width: 28px !important;
}

/* Priorité sur kw-mega-menu (padding row header) */
body.kw-header-actions-ready #page-container .et_pb_row_1_tb_header.et_pb_row {
	padding-top: 4px !important;
	padding-bottom: 2px !important;
	margin-bottom: 0 !important;
}

/* Desktop */
@media only screen and (min-width: 981px) {
	body.kw-header-actions-ready #page-container .et_pb_section_1_tb_header.et_pb_section {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	body.kw-header-actions-ready #page-container .et_pb_row_1_tb_header.et_pb_row {
		padding-top: 4px !important;
		padding-bottom: 2px !important;
	}

	body.kw-header-actions-ready #page-container .et_pb_column_3_tb_header {
		display: block !important;
		flex: 1 1 420px !important;
		max-width: 460px !important;
		min-width: 300px !important;
	}

	body.kw-header-actions-ready #page-container .et_pb_row_1_tb_header.et_pb_row {
		padding-left: 6px !important;
		padding-right: 8px !important;
	}

	body.kw-header-actions-ready #page-container .et_pb_image_0_tb_header .et_pb_image_wrap img {
		max-width: 185px !important;
	}

	.kw-header-actions {
		gap: 20px !important;
	}

	.kw-header-actions .et_pb_social_media_follow_0_tb_header li {
		margin: 0 0 0 12px !important;
	}
}

/* Mobile / tablette : recherche dans le flux, sticky au scroll */
@media only screen and (max-width: 980px) {
	body.kw-header-actions-ready #page-container .et_pb_row_1_tb_header.header-v1-row-search.et_pb_row {
		flex-wrap: wrap !important;
		align-items: center !important;
		justify-content: flex-end !important;
		padding-top: 0 !important;
		padding-bottom: 4px !important;
		padding-left: 10px !important;
		padding-right: 8px !important;
		min-height: 46px !important;
		position: relative !important;
	}

	body.kw-header-actions-ready #page-container .et_pb_section_1_tb_header.et_pb_section {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	body.kw-header-actions-ready #page-container .et_pb_column_3_tb_header {
		display: block !important;
		order: -10 !important;
		flex: 0 0 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		position: sticky !important;
		top: var(--kw-promo-height, 47px) !important;
		left: auto !important;
		right: auto !important;
		z-index: 10005 !important;
		padding: 4px 10px !important;
		margin: 0 !important;
		background: #fff5e1 !important;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
		box-sizing: border-box !important;
	}

	body.kw-header-actions-ready #page-container .et_pb_column_3_tb_header .et_pb_search,
	body.kw-header-actions-ready #page-container .et_pb_column_3_tb_header form.et-search-form,
	body.kw-header-actions-ready #page-container .et_pb_column_3_tb_header .dgwt-wcas-search-wrapp,
	body.kw-header-actions-ready #page-container .et_pb_column_3_tb_header .dgwt-wcas-search-form {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
	}

	body.kw-header-actions-ready #page-container .et_pb_column_3_tb_header .dgwt-wcas-search-input,
	body.kw-header-actions-ready #page-container .et_pb_column_3_tb_header input.et-search-field {
		font-size: 16px !important;
	}

	body.kw-header-actions-ready #page-container .et_pb_column_2_tb_header {
		order: 1 !important;
		position: absolute !important;
		left: 10px !important;
		right: auto !important;
		top: auto !important;
		bottom: 0 !important;
		transform: none !important;
		width: auto !important;
		height: 44px !important;
		max-width: calc(100% - 230px) !important;
		z-index: 10002 !important;
		display: flex !important;
		align-items: center !important;
	}

	body.kw-header-actions-ready #page-container .et_pb_image_0_tb_header .et_pb_image_wrap img {
		max-width: 148px !important;
		width: auto !important;
	}

	body.kw-header-actions-ready #page-container .et_pb_column_4_tb_header {
		order: 2 !important;
		flex: 0 0 100% !important;
		width: 100% !important;
		min-height: 44px !important;
		margin-left: 0 !important;
		justify-content: flex-end !important;
		align-items: center !important;
		padding-right: 6px !important;
	}

	body.kw-header-actions-ready .kw-header-actions {
		gap: 14px !important;
	}

	body.kw-header-actions-ready .kw-header-actions > .et_pb_social_media_follow_0_tb_header {
		margin-left: 4px !important;
		padding-left: 10px !important;
	}

	body.kw-header-actions-ready .kw-header-wishlist-wrap {
		display: inline-flex !important;
	}

	body.kw-header-actions-ready .kw-header-actions .kw-header-account__icon,
	body.kw-header-actions-ready .kw-header-actions .kw-header-wishlist__icon,
	body.kw-header-actions-ready .kw-header-actions .woofc-menu-item .woofc-menu-item-inner {
		width: 28px !important;
		height: 28px !important;
		min-width: 28px !important;
		max-width: 28px !important;
		min-height: 28px !important;
		max-height: 28px !important;
		font-size: 13px !important;
	}

	body.kw-header-actions-ready .kw-header-actions .woofc-menu-item .woofc-menu-item-inner i {
		font-size: 13px !important;
	}

	body.kw-header-actions-ready .et_pb_section_2_tb_header.et_pb_section {
		display: none !important;
	}

	body.kw-header-actions-ready.home #page-container .et_pb_section_0_tb_body.et_pb_section {
		margin-top: 0 !important;
	}
}

@media only screen and (max-width: 767px) {
	body.kw-header-actions-ready #page-container .et_pb_image_0_tb_header .et_pb_image_wrap img {
		max-width: 142px !important;
	}

	body.kw-header-actions-ready #page-container .et_pb_column_2_tb_header {
		left: 58px !important;
		max-width: calc(100% - 58px - 108px) !important;
	}

	.kw-header-actions {
		gap: 12px !important;
	}

	.kw-header-actions .et_pb_social_media_follow_0_tb_header li a.icon {
		height: 24px !important;
		width: 24px !important;
	}

	.kw-header-actions .et_pb_social_media_follow_0_tb_header li a.icon:before {
		font-size: 12px !important;
		line-height: 24px !important;
		height: 24px !important;
		width: 24px !important;
	}
}
