/* Notera Popup Orders — Astra theme styling */

body.single-product form.cart,
body.single-product .summary .cart,
body.single-product .summary .quantity,
body.single-product .summary .single_add_to_cart_button,
body.single-product .summary .added_to_cart,
body.single-product .ast-sticky-add-to-cart,
body.single-product .ast-site-header-cart,
body.single-product .ast-header-woo-cart,
body.single-product .ast-cart-menu-wrap,
body.single-product .site-header-cart,
body.single-product .astra-cart-drawer,
body.single-product .woocommerce-mini-cart,
body.single-product .widget_shopping_cart {
	display: none !important;
}

/* Notera checkout redesign — Arabic RTL, clean and attractive */
.npo-dialog {
	direction: rtl;
	border: 1px solid rgba(22, 163, 104, 0.22);
	border-radius: 22px;
	background:
		radial-gradient(circle at top right, rgba(53, 203, 137, 0.16), transparent 34%),
		linear-gradient(180deg, #ffffff 0%, #fbfffd 100%);
	padding: 28px;
}

.npo-close {
	top: 18px;
	left: 20px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: #f4f7f5;
	font-size: 30px;
	color: #0b4d34;
}

.npo-close:hover {
	background: #e8f5ee;
}

.npo-dialog h2 {
	position: relative;
	margin-bottom: 22px;
	color: #0d7a4c;
	font-size: 32px;
}

.npo-dialog h2::after {
	content: "";
	display: block;
	width: 88px;
	height: 4px;
	margin: 10px auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #0f965f, #82d8af);
}

.npo-summary {
	border: 0;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(9, 91, 58, 0.10);
	padding: 18px;
	font-size: 15px;
}

.npo-summary-offer {
	align-items: flex-start;
	padding: 12px;
	border-radius: 14px;
	background: #eefaf4;
	color: #083f2a;
}

.npo-summary-books {
	border: 0;
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: #f7fbf9;
}

.npo-summary-books ul {
	display: grid;
	gap: 5px;
	margin-top: 8px;
	padding-right: 18px;
}

.npo-summary-row {
	align-items: center;
	padding: 2px 4px;
}

.npo-total {
	margin-top: 12px;
	border-top: 1px dashed #b8d8c8;
	color: #063d29;
	font-size: 20px;
}

.npo-order-form {
	margin-top: 16px;
	padding: 18px;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(9, 91, 58, 0.08);
}

.npo-order-form h3 {
	margin: 0 0 14px;
	color: #083f2a;
	font-size: 22px;
	text-align: center;
}

.npo-field {
	grid-template-columns: 1fr;
	gap: 7px;
	font-size: 15px;
}

.npo-field > span {
	color: #083f2a;
	font-weight: 900;
}

.npo-input-wrap {
	grid-template-columns: 50px minmax(0, 1fr);
	min-height: 54px;
}

.npo-input-wrap b {
	border: 1px solid #a8e7c7;
	border-left: 0;
	background: #ecfff5;
	color: #0f965f;
	font-size: 18px;
}

.npo-order-form input,
.npo-order-form textarea {
	min-height: 54px;
	border: 1px solid #a8e7c7;
	background: #ffffff;
	font-size: 16px;
}

.npo-order-form input:focus,
.npo-order-form textarea:focus,
.npo-book-line select:focus {
	outline: 0;
	border-color: #0f965f;
	box-shadow: 0 0 0 3px rgba(15, 150, 95, 0.13);
}

.npo-upsells {
	gap: 11px;
	margin-top: 14px;
}

.npo-upsell {
	grid-template-columns: 30px minmax(0, 1fr);
	border: 1px solid #b9ecd0;
	border-radius: 16px;
	background: linear-gradient(180deg, #f6fff9 0%, #ffffff 100%);
	padding: 13px 14px;
	box-shadow: 0 6px 18px rgba(9, 91, 58, 0.06);
}

.npo-upsell.has-image {
	grid-template-columns: 30px 62px minmax(0, 1fr);
}

.npo-upsell input {
	accent-color: #0f965f;
}

.npo-upsell-text {
	color: #111;
	font-size: 15px;
	font-weight: 900;
}

.npo-upsell small {
	color: #0f7b50;
	font-size: 13px;
	font-weight: 800;
}

.npo-submit {
	margin-top: 16px;
	border-radius: 14px;
	background: linear-gradient(135deg, #0f965f, #0b7f51);
	padding: 16px 20px;
	font-size: 22px;
	box-shadow: 0 10px 24px rgba(15, 150, 95, 0.22);
}

.npo-submit.is-loading,
.npo-submit:disabled {
	position: relative;
	opacity: 0.88;
	cursor: wait;
	pointer-events: none;
}

.npo-submit.is-loading::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-left: 10px;
	border: 3px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	vertical-align: -3px;
	animation: npo-spin 0.8s linear infinite;
}

@keyframes npo-spin {
	to {
		transform: rotate(360deg);
	}
}

.notera-thank-you {
	min-height: 62vh;
	display: grid;
	place-items: center;
	padding: 48px 16px;
	background: radial-gradient(circle at top right, rgba(15, 150, 95, 0.12), transparent 34%);
}

.notera-thank-you__card {
	width: min(620px, 100%);
	padding: 42px 24px;
	border: 1px solid rgba(15, 150, 95, 0.20);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 18px 60px rgba(9, 91, 58, 0.12);
	text-align: center;
}

.notera-thank-you__icon {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0f965f, #33c982);
	color: #fff;
	font-size: 54px;
	font-weight: 900;
}

.notera-thank-you h1 {
	margin: 0 0 12px;
	color: #083f2a;
	font-size: clamp(28px, 5vw, 42px);
	font-weight: 900;
}

.notera-thank-you p {
	margin: 6px 0;
	color: #35564a;
	font-size: 20px;
	line-height: 1.7;
}

.notera-thank-you a {
	display: inline-block;
	margin-top: 24px;
	border-radius: 14px;
	background: #0f965f;
	color: #fff;
	padding: 13px 28px;
	font-size: 17px;
	font-weight: 900;
	text-decoration: none;
}

.npo-submit:hover {
	transform: translateY(-1px);
	background: linear-gradient(135deg, #0b8554, #096b45);
}

.npo-wrap {
	direction: rtl;
	font-family: inherit;
	width: 100%;
	max-width: 540px;
	margin: 18px 0 24px;
	color: #111;
}

.npo-wrap *,
.npo-wrap *::before,
.npo-wrap *::after {
	box-sizing: border-box;
}

.npo-offers-list {
	display: grid;
	gap: 12px;
}

.npo-offer-card {
	position: relative;
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 8px 12px;
	align-items: start;
	border: 1.5px solid #d8d8d8;
	border-radius: 10px;
	background: #fff;
	padding: 14px;
	color: #111;
	cursor: pointer;
}

.npo-offer-card.is-active {
	border-color: #5fbd90;
	background: #e7f2eb;
}

.npo-radio {
	width: 24px;
	height: 24px;
	margin-top: 2px;
	display: block;
	border: 2px solid #d8d8d8;
	border-radius: 50%;
	background: #fff;
}

.npo-offer-card.is-active .npo-radio {
	border: 7px solid #62bd90;
}

.npo-offer-title {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
	text-align: right;
	overflow-wrap: anywhere;
}

.npo-price {
	grid-column: 2;
	justify-self: end;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
	text-align: right;
	white-space: normal;
}

.npo-compare {
	display: block;
	margin-top: 3px;
	color: #555;
	font-size: 12px;
	font-weight: 400;
	text-decoration: line-through;
}

.npo-discount {
	display: inline-block;
	margin-top: 5px;
	padding: 2px 10px 3px;
	background: #68ba94;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
}

.npo-badge {
	position: absolute;
	top: -12px;
	right: 22px;
	padding: 5px 14px;
	border-radius: 0 0 5px 5px;
	background: #f19caf;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
}

.npo-badge::before,
.npo-badge::after {
	content: "";
	position: absolute;
	top: 0;
	border-top: 12px solid transparent;
}

.npo-badge::before {
	right: -12px;
	border-left: 12px solid #a56b75;
}

.npo-badge::after {
	left: -12px;
	border-right: 12px solid #a56b75;
}

.npo-book-selects {
	grid-column: 2;
	display: grid;
	gap: 7px;
	margin-top: 4px;
	direction: rtl;
}

.npo-book-selects strong {
	font-size: 15px;
	font-weight: 800;
	color: #444;
	text-align: right;
}

.npo-book-line {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 8px;
	align-items: center;
	font-size: 14px;
	font-weight: 800;
	direction: rtl;
}

.npo-book-line select {
	position: relative;
	z-index: 5;
	width: 100%;
	height: 36px;
	border: 1.5px solid #c8c8c8;
	border-radius: 7px;
	background: #fff;
	padding: 0 10px;
	font-size: 14px;
}

.npo-main-button,
.npo-submit {
	width: 100%;
	margin-top: 14px;
	border: 0;
	border-radius: 6px;
	background: #0f965f;
	color: #fff;
	padding: 14px 18px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
}

.npo-main-button:hover,
.npo-submit:hover {
	background: #0b8554;
	color: #fff;
}

.npo-bag {
	margin-left: 8px;
	font-size: 18px;
}

.npo-modal[hidden] {
	display: none;
}

.npo-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow: auto;
	padding: 14px;
}

.npo-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.56);
	backdrop-filter: blur(4px);
}

.npo-dialog {
	position: relative;
	z-index: 2;
	width: min(760px, 96vw);
	min-width: min(420px, 96vw);
	border-radius: 12px;
	background: #fff;
	padding: 22px;
	box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.npo-close {
	position: absolute;
	top: 16px;
	left: 18px;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 36px;
	font-weight: 300;
	line-height: 0.8;
	cursor: pointer;
}

.npo-dialog h2 {
	margin: 0 0 20px;
	color: #147018;
	font-size: 30px;
	font-weight: 900;
	text-align: center;
}

.npo-dialog .npo-wrap {
	max-width: none;
}

.npo-dialog .npo-offer-card {
	grid-template-columns: 30px minmax(0, 1fr) auto;
	padding: 13px;
}

.npo-dialog .npo-offer-title,
.npo-dialog .npo-price {
	font-size: 18px;
}

.npo-dialog .npo-book-selects {
	grid-column: 2 / 4;
}

.npo-summary {
	margin: 14px 0;
	padding: 14px;
	border: 1.5px solid #d5d5d5;
	border-radius: 8px;
	background: #fff;
	font-size: 16px;
	direction: rtl;
}

.npo-summary-books {
	margin: 9px 0;
	padding: 9px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

.npo-summary-books strong {
	display: block;
	margin-bottom: 6px;
	font-weight: 900;
}

.npo-summary-books ul {
	margin: 0;
	padding: 0 18px 0 0;
}

.npo-summary-books li {
	margin: 2px 0;
}

.npo-summary-row {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin: 7px 0;
}

.npo-summary-row strong {
	font-weight: 800;
}

.npo-total {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #ddd;
	font-size: 19px;
}

.npo-shipping h3,
.npo-order-form h3 {
	margin: 16px 0 10px;
	font-size: 22px;
	font-weight: 900;
}

.npo-shipping-row {
	display: grid;
	grid-template-columns: 38px 1fr auto;
	align-items: center;
	min-height: 48px;
	padding: 9px 12px;
	border: 1.5px solid #d8d8d8;
	border-radius: 7px;
	font-size: 16px;
	font-weight: 800;
	direction: rtl;
}

.npo-shipping-row::before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	border: 7px solid #000;
	border-radius: 50%;
	background: #fff;
}

.npo-order-form {
	display: grid;
	gap: 10px;
}

.npo-field {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	font-size: 16px;
	font-weight: 800;
}

.npo-field > span {
	direction: rtl;
	text-align: right;
}

.npo-input-wrap {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	min-height: 44px;
	direction: rtl;
}

.npo-input-wrap b {
	display: grid;
	place-items: center;
	border: 1.5px solid #bdbdbd;
	border-left: 0;
	border-right: 1.5px solid #bdbdbd;
	border-radius: 0 7px 7px 0;
	background: #e5e5e5;
	color: #222;
	font-size: 16px;
}

.npo-input-wrap input {
	border-radius: 7px 0 0 7px !important;
	text-align: right;
}

.npo-order-form input,
.npo-order-form textarea {
	width: 100%;
	min-height: 44px;
	border: 1.5px solid #bdbdbd;
	border-radius: 7px;
	background: #fff;
	padding: 9px 12px;
	color: #222;
	font-size: 15px;
	direction: rtl;
	text-align: right;
}

.npo-upsells {
	display: grid;
	gap: 10px;
	margin-top: 8px;
}

.npo-upsell {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	border: 2px dashed #20d74c;
	border-radius: 7px;
	background: #f6fff4;
	padding: 10px;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	direction: rtl;
}

.npo-upsell.has-image {
	grid-template-columns: 28px 64px minmax(0, 1fr);
}

.npo-upsell-text {
	min-width: 0;
	line-height: 1.35;
	overflow-wrap: normal;
	word-break: normal;
	white-space: normal;
	text-align: right;
}

.npo-upsell input {
	width: 18px;
	height: 18px;
	min-height: 0;
}

.npo-upsell img {
	display: block;
	width: 58px;
	height: 50px;
	object-fit: cover;
	border-radius: 5px;
	background: #fff;
}

.npo-upsell small {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	font-weight: 500;
}

.npo-message {
	padding: 10px;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 800;
	text-align: center;
}

.npo-message.is-success {
	background: #e8f8ee;
	color: #08723a;
}

.npo-message.is-error {
	background: #fff1f1;
	color: #b60000;
}

body.npo-modal-open {
	overflow: hidden;
}

@media (max-width: 921px) {
	.npo-wrap {
		max-width: 100%;
		margin: 16px 0 22px;
	}

	.npo-offer-card {
		grid-template-columns: 26px minmax(0, 1fr);
		padding: 11px 10px;
	}

	.npo-radio {
		width: 22px;
		height: 22px;
	}

	.npo-offer-card.is-active .npo-radio {
		border-width: 6px;
	}

	.npo-offer-title {
		font-size: 14px;
	}

	.npo-price {
		font-size: 15px;
	}

	.npo-discount {
		font-size: 12px;
	}

	.npo-book-selects {
		grid-column: 2;
	}

	.npo-main-button,
	.npo-submit {
		font-size: 20px;
		padding: 13px 16px;
	}

	.npo-dialog {
		width: calc(100vw - 20px);
		min-width: 0;
		padding: 16px 12px 20px;
	}

	.npo-dialog h2 {
		font-size: 26px;
	}

	.npo-dialog .npo-offer-card {
		grid-template-columns: 26px minmax(0, 1fr);
	}

	.npo-dialog .npo-book-selects {
		grid-column: 2;
	}

	.npo-dialog .npo-offer-title,
	.npo-dialog .npo-price {
		font-size: 15px;
	}

	.npo-field {
		grid-template-columns: 1fr;
	}

	.npo-upsell {
		grid-template-columns: 24px minmax(0, 1fr);
		font-size: 14px;
	}

	.npo-upsell.has-image {
		grid-template-columns: 24px 54px minmax(0, 1fr);
	}

	.npo-upsell small {
		font-size: 12px;
	}
}

@media (max-width: 420px) {
	.npo-modal {
		padding: 6px;
	}

	.npo-dialog {
		width: calc(100vw - 12px);
		padding: 14px 8px 18px;
	}

	.npo-close {
		left: 10px;
	}

	.npo-dialog h2 {
		font-size: 22px;
	}

	.npo-dialog .npo-offer-card,
	.npo-offer-card {
		grid-template-columns: 24px minmax(0, 1fr);
		gap: 6px 8px;
	}

	.npo-offer-title,
	.npo-dialog .npo-offer-title {
		font-size: 13px;
	}

	.npo-price,
	.npo-dialog .npo-price {
		font-size: 13px;
	}

	.npo-book-line select {
		font-size: 12px;
	}

	.npo-summary {
		font-size: 13px;
		padding: 10px;
	}

	.npo-shipping h3,
	.npo-order-form h3 {
		font-size: 18px;
	}

	.npo-upsell {
		display: grid;
		grid-template-columns: 22px minmax(0, 1fr);
		font-size: 13px;
		padding: 9px;
	}

	.npo-upsell.has-image {
		grid-template-columns: 22px 48px minmax(0, 1fr);
	}

	.npo-upsell img {
		width: 44px;
		height: 42px;
	}

	.npo-upsell-text {
		white-space: normal;
	}
}

/* Final Notera RTL checkout override */
.npo-dialog {
	direction: rtl;
	border: 1px solid rgba(22, 163, 104, 0.22);
	border-radius: 22px;
	background: radial-gradient(circle at top right, rgba(53, 203, 137, 0.16), transparent 34%), linear-gradient(180deg, #fff 0%, #fbfffd 100%);
	padding: 28px;
}

.npo-dialog h2 {
	margin: 0 0 22px;
	color: #0d7a4c;
	font-size: 32px;
	font-weight: 900;
	text-align: center;
}

.npo-dialog h2::after {
	content: "";
	display: block;
	width: 88px;
	height: 4px;
	margin: 10px auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #0f965f, #82d8af);
}

.npo-close {
	top: 18px;
	left: 20px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: #f4f7f5;
	color: #0b4d34;
	font-size: 30px;
	z-index: 20;
	pointer-events: auto;
}

.npo-summary {
	border: 0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(9, 91, 58, 0.10);
	padding: 18px;
	font-size: 15px;
	direction: rtl;
}

.npo-summary-offer {
	padding: 12px;
	border-radius: 14px;
	background: #eefaf4;
	color: #083f2a;
}

.npo-summary-books {
	border: 0;
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: #f7fbf9;
}

.npo-total {
	border-top: 1px dashed #b8d8c8;
	color: #063d29;
	font-size: 20px;
}

.npo-order-form {
	margin-top: 16px;
	padding: 18px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(9, 91, 58, 0.08);
}

.npo-order-form h3 {
	margin: 0 0 14px;
	color: #083f2a;
	font-size: 22px;
	text-align: center;
}

.npo-field {
	grid-template-columns: 1fr;
	gap: 7px;
	font-size: 15px;
}

.npo-field > span {
	color: #083f2a;
	font-weight: 900;
	text-align: right;
}

.npo-input-wrap {
	grid-template-columns: 50px minmax(0, 1fr);
	min-height: 54px;
	direction: rtl;
}

.npo-input-wrap b {
	border: 1px solid #a8e7c7;
	border-left: 0;
	border-radius: 0 10px 10px 0;
	background: #ecfff5;
	color: #0f965f;
	font-size: 18px;
}

.npo-input-wrap input {
	border-radius: 10px 0 0 10px !important;
}

.npo-order-form input {
	min-height: 54px;
	border: 1px solid #a8e7c7;
	background: #fff;
	font-size: 16px;
	text-align: right;
}

.npo-order-form input:focus,
.npo-book-line select:focus {
	outline: 0;
	border-color: #0f965f;
	box-shadow: 0 0 0 3px rgba(15, 150, 95, 0.13);
}

.npo-upsells {
	gap: 11px;
	margin-top: 14px;
}

.npo-upsell {
	grid-template-columns: 30px minmax(0, 1fr);
	border: 1px solid #b9ecd0;
	border-radius: 16px;
	background: linear-gradient(180deg, #f6fff9 0%, #fff 100%);
	padding: 13px 14px;
	box-shadow: 0 6px 18px rgba(9, 91, 58, 0.06);
	direction: rtl;
}

.npo-upsell.has-image {
	grid-template-columns: 30px 62px minmax(0, 1fr);
}

.npo-upsell input {
	accent-color: #0f965f;
}

.npo-upsell-text {
	color: #111;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.45;
	text-align: right;
	word-break: normal;
	overflow-wrap: normal;
}

.npo-upsell small {
	color: #0f7b50;
	font-size: 13px;
	font-weight: 800;
}

.npo-submit {
	margin-top: 16px;
	border-radius: 14px;
	background: linear-gradient(135deg, #0f965f, #0b7f51);
	padding: 16px 20px;
	font-size: 22px;
	box-shadow: 0 10px 24px rgba(15, 150, 95, 0.22);
}

@media (max-width: 420px) {
	.npo-dialog {
		width: calc(100vw - 12px);
		padding: 16px 10px 18px;
		border-radius: 16px;
	}

	.npo-dialog h2 {
		font-size: 24px;
	}

	.npo-order-form {
		padding: 14px;
	}

	.npo-upsell,
	.npo-upsell.has-image {
		grid-template-columns: 26px minmax(0, 1fr);
	}

	.npo-upsell img {
		display: none;
	}
}

/* Notera product cards: show the full product image in high quality. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.wc-block-grid__product {
	text-align: center;
	overflow: visible !important;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link,
.wc-block-grid__product-image {
	display: block;
	width: 100%;
	overflow: visible;
	background: #fff;
	text-align: center;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap img,
.wc-block-grid__product-image img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: none !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
	object-position: center center !important;
	display: block;
	margin: 0 auto 18px;
	border-radius: 0;
	image-rendering: auto;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce-page ul.products li.product .add_to_cart_button,
.wc-block-grid__product-add-to-cart {
	display: none !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
	max-width: 520px;
	margin-inline: auto;
	line-height: 1.45;
}

@media (min-width: 922px) {
	.woocommerce ul.products.columns-1 li.product,
	.woocommerce-page ul.products.columns-1 li.product {
		max-width: 460px;
		margin-inline: auto !important;
	}
}

@media (max-width: 921px) {
	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product,
	.wc-block-grid__product {
		width: 100% !important;
		max-width: 100% !important;
		padding-inline: 14px !important;
	}

	.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
	.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap,
	.wc-block-grid__product-image {
		padding-inline: 0 !important;
	}

	.woocommerce ul.products li.product a img,
	.woocommerce-page ul.products li.product a img,
	.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
	.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap img,
	.wc-block-grid__product-image img {
		width: auto !important;
		max-width: min(100%, 680px) !important;
		height: auto !important;
		margin-inline: auto !important;
	}
}

@media (max-width: 544px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		margin-inline: 0 !important;
	}

	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product {
		padding-inline: 10px !important;
	}

	.woocommerce ul.products li.product a img,
	.woocommerce-page ul.products li.product a img,
	.wc-block-grid__product-image img {
		max-width: 100% !important;
	}
}

/* Notera single product cleanup: hide WooCommerce default clutter. */
body.single-product .woocommerce-breadcrumb,
body.single-product .ast-breadcrumbs,
body.single-product .ast-woocommerce-container .woocommerce-breadcrumb,
body.single-product .ast-woo-product-category,
body.single-product .posted_in,
body.single-product .tagged_as,
body.single-product .product_meta,
body.single-product .summary .product_meta,
body.single-product .summary .ast-woo-product-category {
	display: none !important;
}

/* Keep the product image safely below the header/menu on desktop and mobile. */
body.single-product .site-header,
body.single-product #masthead {
	position: relative;
	z-index: 1000;
	background: #fff;
}

body.single-product .site-content,
body.single-product #content {
	position: relative;
	z-index: 1;
	padding-top: 42px;
}

body.single-product div.product,
body.single-product .woocommerce-product-gallery,
body.single-product .summary {
	position: relative;
	z-index: 1;
}

body.single-product .woocommerce-product-gallery {
	overflow: visible !important;
}

body.single-product .woocommerce-product-gallery img {
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	object-fit: contain !important;
	object-position: center center !important;
}

@media (max-width: 921px) {
	body.single-product .site-content,
	body.single-product #content {
		padding-top: 28px;
	}

	body.single-product div.product {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}
}

@media (max-width: 544px) {
	body.single-product .site-content,
	body.single-product #content {
		padding-top: 20px;
	}

	body.single-product .woocommerce-product-gallery {
		margin-top: 0 !important;
	}
}

/* Mobile sticky order button. */
.npo-offer-card.npo-needs-books {
	animation: npo-attention-pulse 1.1s ease;
}

.npo-select-attention {
	border-color: #0f965f !important;
	box-shadow: 0 0 0 4px rgba(15, 150, 95, 0.18) !important;
}

@keyframes npo-attention-pulse {
	0%,
	100% {
		transform: translateY(0);
		box-shadow: 0 0 0 rgba(15, 150, 95, 0);
	}
	35% {
		transform: translateY(-3px);
		box-shadow: 0 14px 34px rgba(15, 150, 95, 0.20);
	}
	70% {
		transform: translateY(0);
		box-shadow: 0 0 0 4px rgba(15, 150, 95, 0.16);
	}
}

@media (max-width: 767px) {
	body.single-product {
		padding-bottom: calc(84px + env(safe-area-inset-bottom));
	}

	body.single-product .npo-wrap .npo-main-button {
		position: fixed;
		right: 14px;
		left: 14px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		z-index: 99990;
		width: auto;
		margin: 0;
		border-radius: 16px;
		padding: 15px 18px;
		background: linear-gradient(135deg, #0f965f, #08764a);
		box-shadow: 0 14px 34px rgba(5, 88, 55, 0.32);
		font-size: 20px;
	}

	body.npo-modal-open .npo-wrap .npo-main-button {
		display: none !important;
	}
}
