/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Carta mobile: place the primary actions below the large hero logo. */
@media (max-width: 1024px) {
	body.home #pedido-para-recoger {
		flex-direction: column !important;
		scroll-margin-top: 110px;
	}

	body.home #pedido-para-recoger > .wpb_column:first-child {
		order: 1 !important;
	}

	body.home #pedido-para-recoger > .wpb_column:last-child {
		order: 2 !important;
	}

	body:not(.page-id-13341):not(.page-id-14542):not(.page-id-14631) .whb-header {
		min-height: 110px;
	}

	body:not(.page-id-13341):not(.page-id-14542):not(.page-id-14631) .whb-general-header {
		background-color: #253746 !important;
	}

	body:not(.page-id-13341):not(.page-id-14542):not(.page-id-14631) .whb-general-header-inner {
		position: relative;
		height: 110px !important;
		max-height: 110px !important;
		padding-bottom: 50px;
	}

	body:not(.page-id-13341):not(.page-id-14542):not(.page-id-14631) .whb-general-header .whb-mobile-right {
		position: static;
	}

	body:not(.page-id-13341):not(.page-id-14542):not(.page-id-14631) .whb-general-header .whb-mobile-right > .wd-header-html {
		position: absolute;
		z-index: 3;
		inset-inline: 0;
		bottom: 0;
		height: 50px;
		max-width: none;
		padding: 3px 14px;
	}

	body:not(.page-id-13341):not(.page-id-14542):not(.page-id-14631) .whb-general-header .whb-mobile-right > .wd-header-html :is(
		.wpb-content-wrapper,
		.vc_row,
		.vc_column_container,
		.vc_column-inner,
		.wpb_wrapper
	) {
		height: 100%;
		margin: 0;
		padding: 0;
	}

	body:not(.page-id-13341):not(.page-id-14542):not(.page-id-14631) .whb-general-header .whb-mobile-right > .wd-header-html .wpb_wrapper {
		display: flex;
		gap: 8px;
	}

	body:not(.page-id-13341):not(.page-id-14542):not(.page-id-14631) .whb-general-header .whb-mobile-right > .wd-header-html .wd-button-wrapper {
		flex: 1 1 0;
		height: 44px;
		margin: 0 !important;
	}

	body:not(.page-id-13341):not(.page-id-14542):not(.page-id-14631) .whb-general-header .whb-mobile-right > .wd-header-html .btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 44px;
		min-height: 44px;
		padding: 0 8px;
		font-size: 9px;
		white-space: nowrap;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-general-header-inner {
		position: relative;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-general-header {
		background-color: transparent;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-general-header .whb-mobile-center {
		visibility: hidden;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-general-header .whb-mobile-right {
		position: static;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-general-header .whb-mobile-right > .wd-header-html {
		position: absolute;
		z-index: 3;
		inset-inline: auto;
		left: 50%;
		top: 185px;
		width: 345px;
		height: 44px;
		max-width: calc(100vw - 30px);
		padding-inline: 14px;
		transform: translateX(-50%);
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) #wd-69bdc587ac905 {
		margin-top: -45px;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) #wd-69bdc587ac905 img {
		width: 345px;
		max-width: calc(100vw - 30px);
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-general-header .whb-mobile-right > .wd-header-html :is(
		.wpb-content-wrapper,
		.vc_row,
		.vc_column_container,
		.vc_column-inner,
		.wpb_wrapper
	) {
		height: 100%;
		margin: 0;
		padding: 0;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-general-header .whb-mobile-right > .wd-header-html .wpb_wrapper {
		display: flex;
		gap: 8px;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-general-header .whb-mobile-right > .wd-header-html .wd-button-wrapper {
		flex: 1 1 0;
		height: 44px;
		margin: 0 !important;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-general-header .whb-mobile-right > .wd-header-html .btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 44px;
		min-height: 44px;
		padding: 0 8px;
		font-size: 9px;
		white-space: nowrap;
	}

	/* Keep both actions available in a dedicated row while scrolling. */
	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-sticked .whb-general-header-inner {
		height: 110px !important;
		max-height: 110px !important;
		padding-bottom: 50px;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-sticked .whb-general-header {
		background-color: #253746;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-sticked .whb-general-header .whb-mobile-center {
		visibility: visible;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-sticked .whb-general-header .whb-mobile-right > .wd-header-html {
		top: 60px;
		height: 50px;
		padding-block: 3px;
	}
}

@media (max-width: 1024px) and (orientation: landscape) {
	body:is(.page-id-13341, .page-id-14542, .page-id-14631) #wd-69bdc587ac905 {
		margin-top: -75px;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-general-header .whb-mobile-right > .wd-header-html {
		top: 165px;
	}

	body:is(.page-id-13341, .page-id-14542, .page-id-14631) .whb-sticked .whb-general-header .whb-mobile-right > .wd-header-html {
		top: 60px;
	}
}
