/*
Theme Name:   Bali Sands (Hello Elementor child)
Theme URI:    https://balisands.com.au/
Description:  Child theme of Hello Elementor for Bali Sands. Layout, colours and fonts live in Elementor (Site Settings → Global Colors / Global Fonts); this theme only adds small resets and Gravity Forms styling that reads those globals.
Author:       Bali Sands
Template:     hello-elementor
Version:      1.2.4
Requires at least: 6.3
Requires PHP: 7.4
License:      GNU General Public License v3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  bali-sands-child
*/

/* Elementor text widgets: no trailing gap under the last paragraph. */
.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

/* Linked category cards (homepage): lift on hover. */
.bs-card {
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.bs-card:hover {
	border-color: var(--e-global-color-primary, #2F4034) !important;
	box-shadow: 0 10px 24px rgba(32, 28, 23, .10);
	transform: translateY(-2px);
}
a.bs-card,
a.bs-card:hover {
	color: inherit;
	text-decoration: none;
}

/* Breadcrumbs on dark intros: links in the label colour, current page in white. */
.bs-on-dark .elementor-widget-text-editor.bs-crumbs a {
	color: inherit;
	text-decoration: none;
}
.bs-on-dark .elementor-widget-text-editor.bs-crumbs a:hover {
	color: var(--e-global-color-bs_white, #FFFFFF);
}
.bs-crumbs strong {
	color: var(--e-global-color-bs_white, #FFFFFF);
}

/* Google Maps widget with rounded corners (CSS class "bs-map"). */
.bs-map .elementor-custom-embed,
.bs-map iframe {
	display: block;
	border-radius: 14px;
	overflow: hidden;
}

/* Text links inside dark sections (CSS class "bs-on-dark" on the section). */
.bs-on-dark .elementor-widget-text-editor a {
	color: var(--e-global-color-bs_white, #FFFFFF);
}

/*
 * Empty photo panels (hero, delivery): a sand gradient until a background image
 * is set in Elementor (Elementor's own, more specific rule then replaces it).
 */
.bs-photo-slot {
	background-image: linear-gradient(150deg, #E9D3A6, #B9935E);
}

/*
 * Button pairs at the top of the homepage hero, the category pages and the
 * product pages ("Shop the range" / "Get a delivered price" and "How much do
 * I need?") side by side on phones, sharing the width equally; a long label
 * wraps inside its button.
 */
@media (max-width: 767px) {
	:is(.bs-section--hero, .bs-section--cat-intro, .bs-section--product-intro) .e-con:has(> .elementor-widget-button + .elementor-widget-button) {
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		gap: 10px !important;
	}

	:is(.bs-section--hero, .bs-section--cat-intro, .bs-section--product-intro) .e-con:has(> .elementor-widget-button + .elementor-widget-button) > .elementor-widget-button {
		flex: 1 1 0 !important;
		width: auto !important;
		min-width: 0;
	}

	:is(.bs-section--hero, .bs-section--cat-intro, .bs-section--product-intro) .e-con:has(> .elementor-widget-button + .elementor-widget-button) > .elementor-widget-button > .elementor-widget-container,
	:is(.bs-section--hero, .bs-section--cat-intro, .bs-section--product-intro) .e-con:has(> .elementor-widget-button + .elementor-widget-button) .elementor-button-wrapper {
		height: 100%;
	}

	:is(.bs-section--hero, .bs-section--cat-intro, .bs-section--product-intro) .e-con:has(> .elementor-widget-button + .elementor-widget-button) .elementor-button {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		box-sizing: border-box;
		padding: 14px 10px !important;
		white-space: normal;
		text-align: center;
		line-height: 1.2;
	}
}
