.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
[data-block-name="woocommerce/product-new"] {
	display: none !important;
}

h2.wp-block-heading:has(+ [data-block-name="woocommerce/product-new"]),
hr.wp-block-separator:has(+ h2 + [data-block-name="woocommerce/product-new"]) {
	display: none !important;
}

.oaa-cart-app,
.oaa-checkout-app {
	max-width: 100%;
	margin: 1.5em 0;
}

.oaa-cart-empty {
	font-size: 1.05em;
}

/* ---------- Cart ---------- */

.oaa-cart-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	align-items: start;
}

.oaa-cart-table {
	width: 65%;
	box-sizing: border-box;
	padding-right: 4.53%;
	border-collapse: collapse;
	border-bottom: 1px solid #d8d8de;
}

.oaa-cart-table thead th {
	text-transform: uppercase;
	font-size: 0.875em;
	line-height: 1.4;
	color: #333;
	font-weight: 500;
	text-align: left;
	padding: 8px 16px 12px 0;
	white-space: nowrap;
}

.oaa-cart-table thead th:last-child {
	text-align: right;
	padding-right: 16px;
}

.oaa-cart-table td {
	padding: 20px 0 20px 16px;
	border-top: 1px solid #d8d8de;
	vertical-align: top;
}

.oaa-cart-table td:first-child {
	padding-left: 0;
}

.oaa-cart-table td:last-child {
	padding-right: 16px;
}

.oaa-product-cell {
	display: flex;
	gap: 1.1em;
}

.oaa-thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
	background: #eee;
}

.oaa-product-info {
	display: flex;
	flex-direction: column;
	gap: 0.3em;
	font-size: 0.875em;
	line-height: 1.4;
}

.oaa-product-name {
	font-weight: 400;
	font-size: 1em;
	display: block;
}

.oaa-product-price {
	color: inherit;
}

.oaa-product-desc {
	font-size: 0.875em;
	color: #757575;
}

.oaa-qty-row {
	display: flex;
	align-items: center;
	gap: 0.8em;
	margin-top: 0.4em;
}

.oaa-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(0, 0, 0, 0.3);
	border-radius: 4px;
	box-sizing: border-box;
	width: 107px;
	height: 34px;
}

.oaa-qty-stepper button {
	flex: 0 0 30px;
	width: 30px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 0.9em;
	line-height: 1;
	color: currentColor;
	opacity: 0.6;
	box-sizing: border-box;
}

.oaa-qty-stepper button:hover {
	opacity: 1;
	background: transparent;
}

.oaa-qty-stepper button:first-child {
	border-radius: 4px 0 0 4px;
}

.oaa-qty-stepper button:last-child {
	border-radius: 0 4px 4px 0;
}

.oaa-qty-input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 0.875em;
	box-sizing: border-box;
	-moz-appearance: textfield;
}

.oaa-qty-input::-webkit-outer-spin-button,
.oaa-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.oaa-remove {
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	font-size: 0.85em;
	padding: 0.3em;
	text-decoration: underline;
	opacity: 0.75;
}

.oaa-remove:hover {
	color: #c0392b;
	opacity: 1;
}

.oaa-total-cell {
	text-align: right;
	font-weight: 400;
	font-size: 0.875em;
	line-height: 1.8;
	white-space: nowrap;
}

.oaa-cart-sidebar {
	width: 35%;
	box-sizing: border-box;
	padding-left: 2.26%;
	background: transparent;
	border-radius: 0;
	padding-top: 1.6em;
}

.oaa-cart-sidebar h3,
.oaa-order-summary h3 {
	margin-top: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 0.78em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #767b8a;
	font-weight: 600;
}

/* ---------- Coupon ---------- */

.oaa-coupon {
	border-top: 1px solid #e2e2e8;
	border-bottom: 1px solid #e2e2e8;
	margin: 1em 0;
}

.oaa-coupon-toggle {
	width: 100%;
	background: none;
	border: none;
	text-align: left;
	padding: 0.9em 0;
	font-size: 0.95em;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #333;
}

.oaa-chevron {
	transition: transform 0.2s ease;
	font-size: 0.8em;
}

.oaa-coupon-toggle-open .oaa-chevron {
	transform: rotate(180deg);
}

.oaa-coupon-body {
	display: none;
	gap: 0.6em;
	padding-bottom: 1em;
}

.oaa-coupon-body.oaa-coupon-open {
	display: flex;
}

.oaa-coupon-input {
	flex: 1;
	padding: 0.6em 0.7em;
	border: 1px solid #d5d7de;
	border-radius: 3px;
}

.oaa-coupon-apply {
	white-space: nowrap;
}

.oaa-totals-row {
	display: flex;
	justify-content: space-between;
	padding: 0.7em 0;
	font-size: 0.98em;
}

.oaa-totals-estimated {
	border-top: 1px solid #e2e2e8;
	font-size: 1.15em;
	font-weight: 700;
	margin-bottom: 1.2em;
}

.oaa-checkout-btn {
	display: block;
	width: 100%;
	text-align: center;
	text-decoration: none !important;
}

.oaa-cart-app .button,
.oaa-checkout-app .button {
	text-decoration: none !important;
}

/* ---------- Checkout ---------- */

.oaa-checkout-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 3em;
	align-items: start;
}

.oaa-billing-form h3 {
	margin: 1.6em 0 0.8em;
	font-size: 1.2em;
}

.oaa-billing-form h3:first-child {
	margin-top: 0;
}

.oaa-billing-form p {
	margin-bottom: 1em;
}

.oaa-guest-note {
	font-size: 0.88em;
	color: #888;
	margin-top: -0.5em;
}

.oaa-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1em;
	margin-bottom: 1em;
}

.oaa-billing-form input[type="text"],
.oaa-billing-form input[type="email"],
.oaa-billing-form input[type="tel"] {
	width: 100%;
	padding: 0.75em 0.8em;
	border: 1px solid #d5d7de;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1em;
	box-sizing: border-box;
}

.oaa-select-label {
	display: block;
	font-size: 0.8em;
	color: #767b8a;
}

.oaa-select-label select {
	width: 100%;
	padding: 0.7em 0.8em;
	border: 1px solid #d5d7de;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1em;
	margin-top: 0.3em;
	background: #fff;
}

.oaa-payment-warning {
	background: #fdecea;
	border: 1px solid #f3c6c0;
	color: #611a15;
	padding: 1em 1.1em;
	border-radius: 4px;
	font-size: 0.92em;
}

.oaa-terms {
	font-size: 0.85em;
	color: #767b8a;
	margin-top: 1.3em;
}

.oaa-checkout-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1em;
}

.oaa-return-cart {
	font-size: 0.92em;
}

.oaa-order-summary {
	background: #f7f7f9;
	padding: 1.6em;
	border-radius: 8px;
}

.oaa-summary-item {
	display: flex;
	align-items: flex-start;
	gap: 1em;
	padding: 0.9em 0;
	border-bottom: 1px solid #e2e2e8;
}

.oaa-summary-thumb-wrap {
	position: relative;
	flex-shrink: 0;
}

.oaa-summary-thumb-wrap .oaa-thumb {
	width: 52px;
	height: 52px;
}

.oaa-qty-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	background: #6b7280;
	color: #fff;
	font-size: 0.72em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.oaa-summary-info {
	flex: 1;
}

.oaa-summary-name {
	font-weight: 600;
	font-size: 0.95em;
}

.oaa-summary-desc {
	font-size: 0.82em;
	color: #888;
	margin-top: 0.15em;
}

.oaa-summary-price {
	font-weight: 600;
	white-space: nowrap;
	font-size: 0.95em;
}

.oaa-totals-total {
	border-top: 1px solid #e2e2e8;
	font-weight: 700;
	font-size: 1.15em;
}

.oaa-order-confirm {
	background: #eafaf1;
	border: 1px solid #a8dfc0;
	padding: 2em;
	border-radius: 6px;
	text-align: center;
}

@media (max-width: 782px) {
	.oaa-cart-layout,
	.oaa-checkout-grid {
		grid-template-columns: 1fr;
	}
	.oaa-cart-table thead {
		display: none;
	}
	.oaa-cart-table tr {
		display: block;
	}
	.oaa-cart-table td {
		display: block;
		width: 100%;
	}
	.oaa-total-cell {
		text-align: left;
		margin-top: 0.6em;
	}
	.oaa-field-row {
		grid-template-columns: 1fr;
	}
}

#oaa-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #2c2c2c;
	color: #fff;
	padding: 0.8em 1.4em;
	border-radius: 6px;
	font-size: 0.95em;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 99999;
}

#oaa-toast.oaa-toast-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
