/* ==========================================================================
   Donation product page – phones only
   Loaded by wp-content/mu-plugins/adrc-donation-mobile.php on donation product pages only.
   Desktop (≥ 768px) is not touched. No new fonts or colours: the title, text and
   buttons keep the Blocksy settings; amounts and progress bar keep the
   Donation Platform colours.
   ========================================================================== */

@media (max-width: 767px) {

	/* 1. Image: small icon above the title instead of a full-width picture */
	.adrc-donable .product-entry-wrapper .woocommerce-product-gallery,
	.adrc-donable .product-entry-wrapper .ct-product-gallery-container {
		width: 72px;
		max-width: 72px;
		margin: 0 0 8px;
	}

	.adrc-donable .product-entry-wrapper .woocommerce-product-gallery img {
		width: 72px;
		height: 72px;
		object-fit: contain;
	}

	/* gallery zoom/lightbox icon makes no sense on a 72px icon */
	.adrc-donable .woocommerce-product-gallery__trigger {
		display: none;
	}

	/* 2. Order: title → text → progress + amounts + Doar → donations box */
	.adrc-donable .product .summary {
		display: flex;
		flex-direction: column;
	}

	.adrc-donable .product .summary > .adrc-donation-stats {
		order: 10;
		margin: 24px 0 0;
	}

	.adrc-donable .product .summary > .product_meta {
		order: 11;
	}

	.adrc-donable .product .summary .product_title {
		--theme-font-size: 28px;
		--theme-line-height: 1.25;
		margin-bottom: 12px;
	}

	/* 3. Long text: a few lines + "Ler mais" (added by adrc-donation-mobile.php) */
	.adrc-collapsible.is-collapsed {
		max-height: 11em;
		overflow: hidden;
		-webkit-mask-image: linear-gradient(#000 60%, transparent);
		mask-image: linear-gradient(#000 60%, transparent);
	}

	.adrc-read-more {
		align-self: flex-start;
		margin: 4px 0 20px;
		padding: 0;
		border: 0;
		background: none;
		color: var(--theme-link-initial-color, #2e5ea6);
		font: inherit;
		font-weight: 600;
		cursor: pointer;
	}

	/* 4. Amount buttons (already 3 per row in the plugin): tall enough for a thumb */
	.adrc-donable .wcdp_options.wcdp_amount > li > label {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		padding: 6px 4px;
		font-size: 16px;
	}

	/* "Outro" opens the input inside its button: give it the whole row */
	.adrc-donable .wcdp_options.wcdp_amount > li:has(.wcdp_value_other:checked) {
		grid-column: 1 / -1;
	}

	/* 5. Doar: full width, theme button */
	.adrc-donable .wcdp-choose-donation .button-row .wcdp-button {
		width: 100%;
		min-height: var(--theme-button-min-height, 55px);
		justify-content: center;
	}

	/* 6. Donations box: total and the latest donors stacked, less padding */
	.adrc-donable .adrc-donation-stats {
		padding: 16px;
		gap: 12px;
	}
}
