/* DETAILS POPUP, shared by Grid and Carousel. Style independently of selection. */
.wcbux-detail-dialog {
	--wcbux-detail-navy: #173c66;
	--wcbux-detail-gold: #bda87d;
	font: inherit;
	color: #4b4b4b;
	background: #fff;
	border: 0;
	border-radius: 0.3rem;
	padding: 0;
	width: min(92vw, 680px);
	max-width: 92vw;
	max-height: 84dvh;
	overflow: hidden;
	box-shadow: 0 12px 45px rgba(0, 0, 0, 0.22);
}
.wcbux-detail-dialog[open] { display: flex; flex-direction: column; }
.wcbux-detail-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.wcbux-detail-header { 
	flex: 0 0 auto; 
	text-align: center; 
	position: sticky;
	top: 0;
	padding: 1.2rem 3.5rem 0.4rem; 
	z-index: 1;
	background: #fff
}
.wcbux-detail-heading {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(1.4rem, 2.5vw, 2rem);
	font-weight: 400;
	line-height: 1.25;
	color: var(--wcbux-detail-navy);
	letter-spacing: 0.03em;
	margin: 0;
}
.wcbux-detail-divider {
	position: relative;
	height: 1.5rem;
	margin: 0.6rem auto 0;
	background: linear-gradient(var(--wcbux-detail-gold), var(--wcbux-detail-gold)) center / 75% 1px no-repeat;
}
.wcbux-detail-divider::before, .wcbux-detail-divider::after {
	content: '❧';
	position: absolute;
	top: -0.35rem;
	left: 0;
	font-size: 1.2rem;
	color: var(--wcbux-detail-gold);
}
.wcbux-detail-divider::after { left: auto; right: 0; transform: scaleX(-1); }
.wcbux-detail-close {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	border: 0;
	background: var(--wcbux-detail-navy);
	color: #fff;
	width: 2rem;
	height: 2rem;
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
}
.wcbux-detail-close:focus-visible { outline: 2px solid var(--wcbux-detail-navy); outline-offset: 3px; }
.wcbux-detail-body { 
	flex: 1 1 auto; 
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0.2rem 1.6rem 1.6rem; 
	line-height: 1.65; 
}
.wcbux-detail-body .wcbux-popup-excerpt p {
	line-height: 1.5 ;
	padding-bottom: 0;
}
.wcbux-detail-body .wcbux-popup-excerpt p strong {
	font-size: 1.2em; /* ? */
}
.wcbux-detail-body p { margin: 0 0 1rem; }
.wcbux-detail-body .wcbux-detail-section-title { color: var(--wcbux-detail-navy); font-size: 1.1rem; margin: 1.25rem 0 0.6rem; }
.wcbux-detail-body table.woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.wcbux-detail-body table.woocommerce-product-attributes th,
.wcbux-detail-body table.woocommerce-product-attributes td { padding: 0.45rem 0.6rem; vertical-align: top; text-align: left; border-bottom: 1px solid #e3e3e3; }

@media (max-width: 620px) {
	.wcbux-detail-header { padding: 1rem 2.6rem 0.3rem; }
	.wcbux-detail-body { padding: 0.1rem 1rem 1.2rem; }
	.wcbux-detail-dialog { max-height: 90dvh; }
}

/*
 * Hide the card excerpt only when its More popup is ready.
 * The vanilla WooCommerce interface retains its excerpt.
 */

.bundle_form.wcbux-active
.bundled_product.wcbux-more-ready
.bundled_product_excerpt {
    display: none;
}

ul.bundled_products li.bundled_product {
	padding: 10px !important;	
	background-color: #fff !important;
	border: 1px solid #aaa;
	border-radius: 7px;
}
.wcbux-count { 
	display: none;
}

.bundled_coffee_price {
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.bundled_product_title.product_title {
	margin-bottom: 5px !important;
}


/* Footer stays accessible below the full popup content. */
.wcbux-detail-body { padding-bottom: 1rem; }
.wcbux-detail-footer { flex: 0 0 auto; padding: 0.75rem 1.6rem 1.5rem; text-align: center; background: #fff; }
.wcbux-detail-back { border: 0; border-radius: 5px; background: #173c66; color: #fff; padding: 0.7rem 1.4rem; font: inherit; cursor: pointer; }
.wcbux-detail-back:focus-visible { outline: 2px solid #173c66; outline-offset: 3px; }
@media (max-width: 620px) { .wcbux-detail-footer { padding: 0.75rem 1rem 1.25rem; } }

/* Some of the images are smaller than others - resize the larger ones for consistency */
.woocommerce div.product div.images img[alt="Colombia-Dulima.jpg"], 
.woocommerce div.product div.images img[alt="Brazil-cafe-Delas.jpg"] {
	width: 100%;
	padding: 0;
}

.woocommerce div.product div.images img {
	width: 80%;
	padding: 12% 0 8%;
}
