.aa-cart-offer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: inherit;
}

.aa-cart-offer[hidden] {
	display: none !important;
}

.aa-cart-offer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 30, 0.55);
	backdrop-filter: blur(2px);
}

.aa-cart-offer__dialog {
	position: relative;
	width: min(100%, 420px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
	padding: 28px 24px 22px;
	text-align: center;
	animation: aaCartOfferIn 0.28s ease-out;
}

@keyframes aaCartOfferIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.aa-cart-offer__x {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 4px 8px;
}

.aa-cart-offer__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	height: 64px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6b3fa0, #9b59b6);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	box-shadow: 0 8px 20px rgba(107, 63, 160, 0.35);
}

.aa-cart-offer__title {
	margin: 0 0 8px;
	font-size: 1.45rem;
	line-height: 1.25;
	color: #1f1630;
}

.aa-cart-offer__body {
	margin: 0 0 16px;
	font-size: 0.98rem;
	line-height: 1.45;
	color: #4a4458;
}

.aa-cart-offer__code-wrap {
	margin: 0 0 12px;
}

.aa-cart-offer__code-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
	margin-bottom: 4px;
}

.aa-cart-offer__code {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 8px;
	background: #f4eef9;
	color: #5b2d8e;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.aa-cart-offer__timer {
	margin: 0 0 14px;
	font-size: 0.95rem;
	color: #333;
}

.aa-cart-offer__timer strong {
	display: inline-block;
	min-width: 3.2em;
	margin-left: 4px;
	color: #6b3fa0;
	font-variant-numeric: tabular-nums;
}

.aa-cart-offer__msg {
	margin: 0 0 12px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #eef9f1;
	color: #1b6b3a;
	font-size: 0.9rem;
}

.aa-cart-offer__msg[hidden] {
	display: none !important;
}

.aa-cart-offer__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aa-cart-offer__btn {
	appearance: none;
	border: 0;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.12s ease, opacity 0.12s ease;
}

.aa-cart-offer__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.aa-cart-offer__btn--primary {
	background: linear-gradient(135deg, #6b3fa0, #8e44ad);
	color: #fff;
}

.aa-cart-offer__btn--primary:hover:not(:disabled) {
	transform: translateY(-1px);
}

.aa-cart-offer__btn--ghost {
	background: transparent;
	color: #666;
	font-weight: 500;
}

html.aa-cart-offer-open {
	overflow: hidden;
}

/* Sağ alt — WhatsApp (Joinchat) ikonunun üstünde geri sayım */
.aa-cart-offer-chip {
	position: fixed;
	right: 18px;
	bottom: 92px;
	z-index: 999990;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px 10px 10px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #6b3fa0, #8e44ad);
	color: #fff;
	box-shadow: 0 10px 28px rgba(107, 63, 160, 0.45);
	cursor: pointer;
	font-family: inherit;
	animation: aaCartChipIn 0.25s ease-out;
}

.aa-cart-offer-chip[hidden] {
	display: none !important;
}

.aa-cart-offer-chip:hover {
	transform: translateY(-1px);
}

.aa-cart-offer-chip__pct {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	font-weight: 800;
	font-size: 0.85rem;
}

.aa-cart-offer-chip__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.15;
	text-align: left;
}

.aa-cart-offer-chip__label {
	font-size: 0.68rem;
	opacity: 0.9;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.aa-cart-offer-chip__time {
	font-size: 1.05rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

@keyframes aaCartChipIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 480px) {
	.aa-cart-offer__dialog {
		padding: 24px 18px 18px;
	}

	.aa-cart-offer-chip {
		right: 14px;
		bottom: 88px;
		padding: 8px 12px 8px 8px;
	}
}

/* Sepet: kupon kutusu altındaki uyarı input’un üstüne binmesin */
.woocommerce-cart .actions .coupon {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 0 1rem;
}

.woocommerce-cart .actions .coupon .input-text {
	margin-bottom: 0;
}

.woocommerce-cart .shop_table.cart .actions {
	position: relative;
}

.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info {
	clear: both;
	display: block;
	width: 100%;
	box-sizing: border-box;
	position: static !important;
	float: none !important;
	margin: 0 0 1rem !important;
	padding: 0.85rem 1rem !important;
	line-height: 1.45;
}

/* Uyarı kupon satırının hemen altındaysa ekstra nefes */
.woocommerce-cart .actions .coupon + .woocommerce-error,
.woocommerce-cart .actions .coupon + .woocommerce-message,
.woocommerce-cart .actions .woocommerce-error,
.woocommerce-cart .actions .woocommerce-message,
.woocommerce-cart td.actions .woocommerce-error,
.woocommerce-cart td.actions .woocommerce-message {
	display: block;
	width: 100%;
	margin-top: 0.85rem !important;
	margin-bottom: 0.85rem !important;
}

.woocommerce-cart .woocommerce-error li,
.woocommerce-cart .woocommerce-message li {
	margin: 0;
	padding: 0;
	line-height: 1.45;
}
