/**
 * Exxenpana 1.2.0 final UI corrections.
 * Every rule is isolated to a theme-owned page or component wrapper.
 */

.exx-newsletter-section {
	display: none !important;
}

/* Information pages: retain the page H1 and boxed content, remove repetition. */
.exx-about-page > .exx-page-intro,
.exx-contact-page > .exx-page-intro,
.exx-delivery-page > .exx-page-intro,
.exx-terms-page > .exx-page-intro,
.exx-privacy-page > .exx-page-intro {
	display: none !important;
}

.exx-about-page > .information-lead-card,
.exx-contact-page > .information-lead-card,
.exx-delivery-page > .information-lead-card,
.exx-terms-page > .information-lead-card,
.exx-privacy-page > .information-lead-card {
	margin-top: clamp(1rem, 2vw, 1.5rem);
}

/* Homepage category navigation: links and controls remain above decorative UI. */
.categories-section .section-header,
.categories-section .category-carousel-shell,
.categories-section .category-card-destination,
.categories-section .carousel-arrow {
	position: relative;
	z-index: 2;
	pointer-events: auto !important;
}

.categories-section .category-carousel-shell {
	isolation: isolate;
}

.categories-section .carousel-arrow {
	position: absolute;
	z-index: 5;
	touch-action: manipulation;
}

.categories-section .category-card-destination {
	display: flex;
	height: 100%;
	text-decoration: none;
	touch-action: manipulation;
}

.categories-section .category-card-destination:focus-visible,
.categories-section .section-header .btn:focus-visible,
.categories-section .carousel-arrow:focus-visible {
	outline: 3px solid rgba(45, 90, 67, 0.35);
	outline-offset: 3px;
}

/* Product cards: replace Woo's injected black cart bar with green feedback. */
.product-card .product-card-actions > a.added_to_cart.wc-forward {
	display: none !important;
}

.product-card .product-card-cart-feedback {
	display: grid;
	gap: 0.55rem;
	margin-top: 0.65rem;
	padding: 0.8rem 0.9rem;
	background: #edf8f0;
	border: 1px solid #a9d1b4;
	border-radius: 9px;
	color: #214f35;
}

.product-card .product-card-cart-feedback[hidden] {
	display: none !important;
}

.product-card .product-card-feedback-check {
	background: #2d6a45;
	color: #fff;
}

.product-card .product-card-feedback-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.8rem;
}

.product-card .product-card-feedback-actions a {
	color: #214f35 !important;
	font-size: 0.72rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Cart: remove squeezed action columns and preserve a useful summary width. */
body.exxepanna-cart-classic {
	overflow-x: clip;
}

.exx-cart-page .cart-layout-grid {
	grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
	gap: clamp(1.25rem, 2.4vw, 2.25rem);
}

.exx-cart-page table.cart th,
.exx-cart-page table.cart td {
	padding: 1.1rem 0.9rem;
	vertical-align: middle;
}

.exx-cart-page table.cart .product-name {
	min-width: 200px;
}

.exx-cart-page .cart-actions-row .actions {
	display: table-cell !important;
	width: 100% !important;
	padding: 1.15rem 1.25rem !important;
	text-align: left;
}

.exx-cart-page .coupon-disclosure {
	width: min(100%, 560px);
	max-width: 560px;
}

.exx-cart-page .coupon-disclosure summary {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0.65rem 0.85rem;
	border: 1px solid #d8d4cd;
	border-radius: 8px;
	background: #fff;
	line-height: 1.3;
}

.exx-cart-page .coupon-disclosure .coupon {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.7rem;
	width: 100%;
	margin-top: 0.8rem;
}

.exx-cart-page .coupon-disclosure .input-text {
	width: 100% !important;
	min-width: 0;
	padding: 0.75rem 0.9rem !important;
	border: 1px solid #d8d4cd !important;
}

.exx-cart-page .coupon-disclosure .button {
	width: auto !important;
	min-width: 112px;
	padding-inline: 1rem !important;
}

.exx-cart-page .cart-auto-update-status {
	display: none !important;
}

.exx-cart-page .update-cart-button.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.exx-cart-page .cart_totals {
	padding: clamp(1.25rem, 2vw, 1.8rem);
}

.exx-cart-page .cart_totals table.shop_table th,
.exx-cart-page .cart_totals table.shop_table td {
	padding: 0.9rem 0.7rem;
	vertical-align: top;
}

.exx-cart-page .cart_totals tr.woocommerce-shipping-totals {
	display: table-row;
}

.exx-cart-page .cart_totals tr.woocommerce-shipping-totals > th,
.exx-cart-page .cart_totals tr.woocommerce-shipping-totals > td {
	display: table-cell;
	padding-inline: 0.7rem;
	text-align: left;
}

.exx-cart-page .cart_totals tr.woocommerce-shipping-totals > th {
	width: 38% !important;
}

.exx-cart-page .cart_totals tr.woocommerce-shipping-totals > td {
	width: 62% !important;
}

.exx-cart-page .cart_totals #shipping_method,
.exx-cart-page .cart_totals .woocommerce-shipping-destination {
	margin: 0.35rem 0 0;
	line-height: 1.55;
}

/* Checkout: soften the summary table and keep content away from card edges. */
.exx-checkout-page .checkout-order-summary-box {
	padding: clamp(1.5rem, 2.8vw, 2.25rem);
}

.exx-checkout-page #order_review table.shop_table {
	width: 100%;
	margin: 0;
	border: 1px solid #dedad3;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 10px;
	overflow: hidden;
}

.exx-checkout-page #order_review table.shop_table th,
.exx-checkout-page #order_review table.shop_table td {
	padding: 0.9rem 0.85rem !important;
	vertical-align: top;
	line-height: 1.5;
}

.exx-checkout-page #order_review table.shop_table tr:not(:last-child) > th,
.exx-checkout-page #order_review table.shop_table tr:not(:last-child) > td {
	border-bottom: 1px solid #e5e1da;
}

.exx-checkout-page #order_review .product-name {
	padding-right: 1.1rem !important;
}

.exx-checkout-page #order_review .woocommerce-shipping-totals th,
.exx-checkout-page #order_review .woocommerce-shipping-totals td {
	padding-top: 1rem !important;
	padding-bottom: 1rem !important;
}

.exx-checkout-page #payment {
	margin-top: 1.25rem;
}

/* Order received: explicitly neutralize Woo's legacy list floats and margins. */
.exx-order-received-page {
	max-width: 1180px;
}

.exx-order-received-page .exx-order-meta-grid {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.9rem;
	width: 100%;
	list-style: none;
}

.exx-order-received-page .exx-order-meta-grid::before,
.exx-order-received-page .exx-order-meta-grid::after {
	display: none !important;
}

.exx-order-received-page .exx-order-meta-grid li {
	display: flex !important;
	float: none !important;
	clear: none !important;
	width: auto !important;
	min-width: 0;
	min-height: 96px;
	margin: 0 !important;
	padding: 1rem !important;
	flex-direction: column;
	justify-content: center;
	border-right: 1px solid #e1ded8 !important;
	line-height: 1.35;
}

.exx-order-received-page .exx-order-meta-grid li strong {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.96rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
	word-break: normal;
}

.exx-order-received-page .woocommerce-order-details,
.exx-order-received-page .woocommerce-customer-details,
.exx-order-received-page .exx-order-cod-card {
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.exx-order-received-page .woocommerce-order-details table.shop_table {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #ddd9d2;
	border-radius: 9px;
	overflow: hidden;
}

.exx-order-received-page .woocommerce-order-details table.shop_table th,
.exx-order-received-page .woocommerce-order-details table.shop_table td {
	padding: 0.85rem 0.8rem !important;
	vertical-align: top;
	line-height: 1.45;
}

.exx-order-received-page .woocommerce-order-details table.shop_table tr:not(:last-child) > th,
.exx-order-received-page .woocommerce-order-details table.shop_table tr:not(:last-child) > td {
	border-bottom: 1px solid #e2ded7;
}

.exx-order-received-page .woocommerce-order-details table.shop_table th:last-child,
.exx-order-received-page .woocommerce-order-details table.shop_table td:last-child {
	text-align: right;
	white-space: nowrap;
}

.exx-order-received-page .woocommerce-order-details table.shop_table tfoot small,
.exx-order-received-page .woocommerce-order-details table.shop_table .shipped_via {
	display: block;
	margin-top: 0.3rem;
	color: #716c64;
	font-weight: 400;
	white-space: normal;
}

.exx-order-received-page .woocommerce-columns--addresses {
	align-items: stretch;
}

.exx-order-received-page .woocommerce-column {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.exx-order-received-page .woocommerce-column h3 {
	margin: 0 0 0.75rem;
	font-size: 1.08rem;
}

.exx-order-received-page .woocommerce-column address {
	flex: 1 1 auto;
	min-height: 180px;
	padding: 1.15rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.exx-order-received-page .exx-order-cod-card {
	background: #faf8f4;
}

@media (max-width: 1100px) {
	.exx-cart-page {
		max-width: 100%;
		overflow-x: clip;
	}

	.exx-cart-page table.cart .product-name {
		min-width: 0;
	}

	.exx-cart-page table.cart th,
	.exx-cart-page table.cart td {
		padding-inline: 0.6rem;
	}

	.exx-cart-page .cart-layout-grid,
	.exx-checkout-page .checkout-layout-grid {
		grid-template-columns: 1fr;
	}

	.exx-checkout-page .checkout-order-summary-box {
		position: static;
	}

	.exx-order-received-page .exx-order-meta-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.exx-cart-page .cart-actions-row .actions {
		display: block !important;
	}

	.exx-cart-page .cart_totals tr.woocommerce-shipping-totals {
		display: grid;
		grid-template-columns: 1fr;
	}

	.exx-cart-page .cart_totals tr.woocommerce-shipping-totals > th,
	.exx-cart-page .cart_totals tr.woocommerce-shipping-totals > td {
		display: block;
		width: 100% !important;
	}

	.categories-section .carousel-prev {
		left: 0.35rem;
	}

	.categories-section .carousel-next {
		right: 0.35rem;
	}

	.exx-cart-page .coupon-disclosure,
	.exx-cart-page .coupon-disclosure summary {
		width: 100%;
	}

	.exx-cart-page .coupon-disclosure summary {
		justify-content: space-between;
	}

	.exx-cart-page .coupon-disclosure .coupon {
		grid-template-columns: 1fr;
	}

	.exx-cart-page .coupon-disclosure .button {
		width: 100% !important;
	}

	.exx-checkout-page .checkout-customer-details,
	.exx-checkout-page .checkout-order-summary-box,
	.exx-order-received-page .woocommerce-order-details,
	.exx-order-received-page .woocommerce-customer-details,
	.exx-order-received-page .exx-order-cod-card {
		padding: 1.1rem;
	}

	.exx-checkout-page #order_review table.shop_table th,
	.exx-checkout-page #order_review table.shop_table td {
		padding: 0.8rem 0.7rem !important;
		font-size: 0.88rem;
	}

	.exx-order-received-page .exx-order-meta-grid {
		grid-template-columns: 1fr;
	}

	.exx-order-received-page .exx-order-meta-grid li {
		min-height: 0;
	}

	.exx-order-received-page .woocommerce-columns--addresses {
		grid-template-columns: 1fr;
	}

	.exx-order-received-page .woocommerce-column address {
		min-height: 0;
	}
}

@media (max-width: 430px) {
	.exx-checkout-page #order_review table.shop_table th,
	.exx-checkout-page #order_review table.shop_table td {
		padding-inline: 0.6rem !important;
	}

	.exx-order-received-page .exx-order-success-card {
		align-items: flex-start;
	}
}
