:root {
	--atc-accent: #16c47f;
	--atc-accent-dark: #0fa468;
	--atc-text: #333333;
	--atc-navy: #269ed7;
	--atc-navy-dark: #0c1c36;
	--atc-link: #1b3a6b;
	--atc-muted: #6b7280;
	--atc-border: #e3e6eb;
}

.astrozon-atc-noscroll {
	overflow: hidden;
}

.astrozon-atc-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 10, 10, 12, 0.55 );
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 16px;
	opacity: 0;
	transition: opacity 0.18s ease;
}

.astrozon-atc-overlay.open {
	display: flex;
	opacity: 1;
}

.astrozon-atc-box {
	background: #fff;
	width: 100%;
	max-width: 680px;
	max-height: 92vh;
	overflow-y: auto;
	border-radius: 14px;
	padding: 22px 26px 24px;
	position: relative;
	box-shadow: 0 24px 70px rgba( 0, 0, 0, 0.32 );
	transform: translateY( 12px ) scale( 0.985 );
	transition: transform 0.2s ease;
	font-family: inherit;
	box-sizing: border-box;
	color: var( --atc-text );
	-webkit-font-smoothing: antialiased;
}

.astrozon-atc-overlay.open .astrozon-atc-box {
	transform: translateY( 0 ) scale( 1 );
}

.astrozon-atc-box * {
	box-sizing: border-box;
}

/* ---------- Top bar ---------- */
.astrozon-atc-top {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	margin-bottom: 18px;
}

.astrozon-atc-title {
	margin: 0;
	font-size: 23px;
	line-height: 1.2;
	font-weight: 700;
	color: var( --atc-text );
	text-align: center;
}

.astrozon-atc-top-right {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.astrozon-atc-keep {
	font-size: 14px;
	font-weight: 600;
	color: var( --atc-link );
	text-decoration: none;
	cursor: pointer;
}

.astrozon-atc-keep:hover {
	text-decoration: underline;
}

.astrozon-atc-x {
	width: 30px;
	height: 30px;
	border: 1px solid var( --atc-border );
	border-radius: 50%;
	background: #fff;
	color: #6b7280;
	line-height: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex: 0 0 auto;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.astrozon-atc-x svg {
	display: block;
	pointer-events: none;
}

.astrozon-atc-x:hover {
	background: #f3f4f6;
	color: #111827;
	border-color: #cfd4db;
}

/* ---------- Product row ---------- */
.astrozon-atc-main {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.astrozon-atc-thumb-wrap {
	flex: 0 0 auto;
}

.astrozon-atc-thumb {
	width: 96px;
	height: auto;
	max-height: 140px;
	object-fit: contain;
	border-radius: 4px;
	display: block;
}

.astrozon-atc-info {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 2px;
}

.astrozon-atc-name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var( --atc-text );
}

.astrozon-atc-author {
	margin-top: 3px;
	font-size: 14px;
	color: var( --atc-link );
	font-weight: 500;
}

.astrozon-atc-price {
	margin-top: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var( --atc-text );
}

.astrozon-atc-delivery {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	color: var( --atc-text );
}

.astrozon-atc-truck {
	color: var( --atc-navy );
	flex: 0 0 auto;
}

/* ---------- Summary (Total + Ship to Me) ---------- */
.astrozon-atc-summary {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	min-width: 150px;
}

.astrozon-atc-total-label {
	font-size: 16px;
	font-weight: 600;
	color: var( --atc-text );
}

.astrozon-atc-total {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	color: var( --atc-text );
}

.astrozon-atc-ship {
	margin-top: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.astrozon-atc-ship-check {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var( --atc-navy );
	flex: 0 0 auto;
	position: relative;
}

.astrozon-atc-ship-check::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 4px;
	width: 6px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}

.astrozon-atc-ship-btn {
	display: inline-block;
	padding: 9px 22px;
	border: 1.5px solid var( --atc-navy );
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var( --atc-navy );
}

/* ---------- View Cart / Checkout CTA ---------- */
.astrozon-atc-cta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 22px 0 4px;
}

.astrozon-atc-viewcart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 195px;
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--atc-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease;
}

.astrozon-atc-viewcart:hover {
	background: var( --atc-navy-dark );
	color: #fff;
}

.astrozon-atc-count {
	font-weight: 700;
}

.astrozon-atc-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 195px;
    padding: 5px 8px;
    border-radius: 6px;
    background: var( --atc-navy-dark );
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.astrozon-atc-checkout:hover {
	background: #08152a;
	color: #fff;
	opacity: 0.95;
}

/* ---------- Guests Also Viewed ---------- */
.astrozon-atc-divider {
	height: 1px;
	background: var( --atc-border );
	margin: 18px 0 16px;
}

.astrozon-atc-related-title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
	color: var( --atc-text );
}

.astrozon-atc-related-row {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding-bottom: 6px;
	scrollbar-width: thin;
}

.astrozon-atc-related-row::-webkit-scrollbar {
	height: 6px;
}

.astrozon-atc-related-row::-webkit-scrollbar-thumb {
	background: #cfd4db;
	border-radius: 999px;
}

.astrozon-atc-rcard {
	flex: 0 0 116px;
	width: 116px;
	text-decoration: none;
	color: var( --atc-text );
	text-align: center;
	display: block;
}

.astrozon-atc-rimg {
	height: 120px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	margin-bottom: 8px;
}

.astrozon-atc-rimg img {
	max-width: 100%;
	max-height: 120px;
	width: auto;
	object-fit: contain;
	border-radius: 3px;
}

.astrozon-atc-rname {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var( --atc-text );
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.astrozon-atc-rauthor {
	margin-top: 2px;
	font-size: 12px;
	color: var( --atc-link );
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.astrozon-atc-rprice {
	margin-top: 3px;
	font-size: 13px;
	font-weight: 600;
	color: var( --atc-text );
}

/* ---------- Responsive ---------- */
@media ( max-width: 600px ) {
	.astrozon-atc-box {
		padding: 18px 16px 20px;
	}

	.astrozon-atc-title {
		font-size: 19px;
	}

	.astrozon-atc-top {
		flex-direction: column;
		gap: 8px;
		align-items: stretch;
	}

	.astrozon-atc-top-right {
		position: static;
		justify-content: space-between;
	}

	.astrozon-atc-main {
		flex-wrap: wrap;
		gap: 14px;
	}

	.astrozon-atc-thumb {
		width: 76px;
	}

	.astrozon-atc-summary {
		flex: 1 1 100%;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		text-align: left;
		min-width: 0;
		border-top: 1px solid var( --atc-border );
		padding-top: 14px;
		margin-top: 6px;
	}

	.astrozon-atc-summary .astrozon-atc-total {
		font-size: 24px;
	}

	.astrozon-atc-viewcart {
		width: 100%;
	}
}

/* ---------- Theme bleed protection (selection/highlight) ---------- */
.astrozon-atc-name,
.astrozon-atc-name *,
.astrozon-atc-rname,
.astrozon-atc-rname * {
	background: transparent !important;
	color: var( --atc-text ) !important;
	-webkit-text-fill-color: var( --atc-text ) !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

/* WooCommerce price markup ko popup ke andar saaf rakho */
.astrozon-atc-price .amount,
.astrozon-atc-price .woocommerce-Price-amount,
.astrozon-atc-rprice .amount,
.astrozon-atc-rprice .woocommerce-Price-amount,
.astrozon-atc-total .amount,
.astrozon-atc-total .woocommerce-Price-amount {
	color: inherit !important;
	background: transparent !important;
	font-weight: inherit;
}

.astrozon-atc-price del,
.astrozon-atc-rprice del {
	color: var( --atc-muted ) !important;
	font-weight: 400;
	margin-right: 5px;
}

.astrozon-atc-price ins,
.astrozon-atc-rprice ins {
	text-decoration: none;
	background: transparent;
}

#astrozon-atc-overlay ::selection {
	background: rgba( 19, 41, 75, 0.18 );
	color: inherit;
}

#astrozon-atc-overlay ::-moz-selection {
	background: rgba( 19, 41, 75, 0.18 );
	color: inherit;
}
