.gandnet-product-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 34px;
	margin: 0 0 0 12px;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.1;
}

.gandnet-product-title-row {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	max-width: 100%;
}

.gandnet-product-title-text {
	display: inline;
}

body.single-product .woocommerce div.product .summary .product_title .gandnet-product-status,
body.single-product div.product .summary .product_title .gandnet-product-status {
	flex: 0 0 auto;
	margin: 0 !important;
	vertical-align: middle;
	transform: none;
}

.gandnet-product-status--incoming {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fbbf24;
}

.gandnet-product-status--out_of_stock {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

body.single-product .woocommerce div.product .summary .product_title,
body.single-product div.product .summary .product_title {
	width: auto !important;
	max-width: none !important;
}

body.single-product .woocommerce div.product .summary .product_title + .gandnet-product-status,
body.single-product div.product .summary .product_title + .gandnet-product-status {
	display: inline-flex !important;
	margin: 0 !important;
	vertical-align: middle !important;
	transform: translateY(-4px);
}

.woocommerce ul.products li.product .gandnet-product-status-badge,
ul.products li.product .gandnet-product-status-badge {
	position: absolute;
	z-index: 7;
	top: 18px;
	right: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	max-width: calc(100% - 36px);
	padding: 0 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.1;
	white-space: nowrap;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.woocommerce ul.products li.product .gandnet-product-status-badge--incoming,
ul.products li.product .gandnet-product-status-badge--incoming {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fbbf24;
}

.woocommerce ul.products li.product .gandnet-product-status-badge--out_of_stock,
ul.products li.product .gandnet-product-status-badge--out_of_stock {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.gandnet-upsell-section {
	margin: 12px 0 18px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.gandnet-upsell-flash {
	margin: 0 0 14px;
	padding: 18px 20px;
	border-radius: 18px;
	background:
		radial-gradient(circle at top right, rgba(239, 68, 68, 0.10), transparent 28%),
		linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #f5f3ff 100%);
	border: 1px solid rgba(226, 232, 240, 0.95);
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.gandnet-upsell-flash__badge {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 18px;
	border-radius: 999px;
	background: #ef2f4f;
	color: #ffffff;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: uppercase;
}

.gandnet-upsell-flash__title {
	margin: 10px 0 8px;
	max-width: 540px;
	color: #0f172a;
	font-size: clamp(28px, 4.5vw, 46px);
	line-height: 0.96;
	font-weight: 950;
	letter-spacing: 0;
}

.gandnet-upsell-flash__text {
	margin: 12px 0 0;
	max-width: 560px;
	color: #0f172a;
	font-size: clamp(22px, 3.2vw, 34px);
	line-height: 1.08;
	font-weight: 950;
	direction: rtl;
	text-align: right;
}

.gandnet-upsell-flash__timer {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 10px 16px;
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.95);
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
	color: #64748b;
	font-size: 14px;
	font-weight: 900;
}

.gandnet-upsell-flash__timer strong {
	color: #ef2f4f;
	font-size: 20px;
	line-height: 1;
	font-weight: 950;
}

.gandnet-upsell-header {
	display: none;
	align-items: end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.gandnet-upsell-heading {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 760px;
}

.gandnet-upsell-badge {
	display: inline-block;
	width: fit-content;
	padding: 7px 12px;
	background: linear-gradient(90deg, #4f46e5, #7c3aed);
	color: #ffffff;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: 0 12px 24px rgba(91, 61, 245, 0.16);
}

.gandnet-upsell-title {
	margin: 0;
	font-size: clamp(24px, 3vw, 38px);
	line-height: 1.05;
	color: #0f172a;
	letter-spacing: -0.04em;
	font-weight: 900;
	direction: rtl;
	text-align: right;
}

.gandnet-upsell-subtitle {
	margin: 0;
	font-size: 14px;
	color: #475569;
	font-weight: 700;
	direction: rtl;
	text-align: right;
	max-width: 360px;
	line-height: 1.6;
}

.gandnet-upsell-perks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	direction: rtl;
}

.gandnet-upsell-perks span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, #fff5f5 0%, #ffe4e6 100%);
	border: 1px solid rgba(239, 68, 68, 0.28);
	box-shadow: 0 10px 22px rgba(239, 68, 68, 0.12);
	color: #dc2626;
	font-size: 13px;
	font-weight: 900;
}

.gandnet-upsell-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(260px, 320px);
	gap: 16px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x proximity;
}

.gandnet-upsell-card {
	background: #ffffff;
	border: 1px solid rgba(219, 226, 242, 0.72);
	border-radius: 14px;
	padding: 10px;
	display: grid;
	grid-template-rows: 260px minmax(44px, auto) minmax(42px, auto) auto auto minmax(58px, auto) auto auto;
	gap: 10px;
	box-shadow: none;
	scroll-snap-align: start;
}

.gandnet-upsell-image-wrap {
	background: transparent;
	border-radius: 8px;
	padding: 0;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.gandnet-upsell-image-wrap img {
	width: 100%;
	max-width: 280px;
	max-height: 260px;
	height: 100%;
	object-fit: contain;
	display: inline-block;
}

.gandnet-upsell-name {
	margin: 0;
	font-size: 16px;
	line-height: 1.3;
	color: #111827;
	min-height: 44px;
}

.gandnet-upsell-video-button {
	width: fit-content;
	min-height: 38px;
	padding: 7px 13px 7px 9px;
	border: 1px solid rgba(220, 38, 38, 0.18);
	border-radius: 999px;
	background: #ffffff;
	color: #0f172a;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 8px 18px rgba(220, 38, 38, 0.10);
}

.gandnet-upsell-video-button:hover {
	background: #fff5f5;
	color: #dc2626;
}

.gandnet-upsell-video-button__icon {
	position: relative;
	width: 30px;
	height: 22px;
	flex: 0 0 30px;
	border-radius: 7px;
	background: #ff0000;
	box-shadow: 0 8px 16px rgba(255, 0, 0, 0.22);
}

.gandnet-upsell-video-button__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-38%, -50%);
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid #ffffff;
}

.gandnet-upsell-description {
	margin: 0;
	min-height: 42px;
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	direction: rtl;
	text-align: right;
}

.gandnet-upsell-description p {
	margin: 0;
}

.gandnet-upsell-description p + p {
	margin-top: 6px;
}

.gandnet-upsell-pricing {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	align-self: start;
	min-height: 64px;
}

.gandnet-upsell-price {
	padding: 7px 11px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.9));
	border: 2px solid rgba(255, 255, 255, 0.96);
	box-shadow: 0 8px 18px rgba(29, 78, 216, 0.12);
	font-size: 18px;
	font-weight: 900;
	color: #1d4ed8;
}

.gandnet-upsell-old-price {
	font-size: 14px;
	color: #6b7280;
	text-decoration: line-through;
}

.gandnet-upsell-discount {
	font-size: 13px;
	font-weight: 900;
	color: #1d4ed8;
	background: #eef4ff;
	border: 1px solid rgba(29, 78, 216, 0.18);
	padding: 4px 8px;
	border-radius: 999px;
}

.gandnet-upsell-note {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: #334155;
	direction: rtl;
	text-align: right;
	font-weight: 700;
}

.gandnet-upsell-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 42px;
	padding: 10px 14px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(90deg, #4f46e5, #7c3aed);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	box-shadow: 0 12px 24px rgba(91, 61, 245, 0.16);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.gandnet-upsell-button:hover {
	background: linear-gradient(90deg, #4338ca, #6d28d9);
	color: #ffffff;
}

.gandnet-upsell-button[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
}

.woocommerce .gandnet-upsell-section .gandnet-upsell-video-button,
body .gandnet-upsell-section .gandnet-upsell-video-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: fit-content !important;
	min-height: 38px !important;
	padding: 7px 13px 7px 9px !important;
	border: 1px solid rgba(220, 38, 38, 0.18) !important;
	border-radius: 999px !important;
	background: #ffffff !important;
	color: #0f172a !important;
	box-shadow: 0 8px 18px rgba(220, 38, 38, 0.10) !important;
}

.woocommerce .gandnet-upsell-section .gandnet-upsell-button,
body .gandnet-upsell-section .gandnet-upsell-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 42px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(90deg, #4f46e5, #7c3aed) !important;
	color: #ffffff !important;
	box-shadow: 0 12px 24px rgba(91, 61, 245, 0.16) !important;
	text-decoration: none !important;
}

.gandnet-upsell-feedback {
	font-size: 13px;
	font-weight: 600;
	min-height: 18px;
}

.gandnet-upsell-feedback.is-success {
	color: #065f46;
}

.gandnet-upsell-feedback.is-error {
	color: #b91c1c;
}

.gandnet-upsell-grid::-webkit-scrollbar {
	height: 8px;
}

.gandnet-upsell-grid::-webkit-scrollbar-thumb {
	background: #c7d2fe;
	border-radius: 999px;
}

.gandnet-video-modal[hidden] {
	display: none !important;
}

.gandnet-video-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.gandnet-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(8px);
}

.gandnet-video-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(860px, 100%);
	border-radius: 18px;
	background: #0f172a;
	box-shadow: 0 28px 80px rgba(15, 23, 42, 0.42);
}

.gandnet-video-modal__close {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 2;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: #ffffff;
	color: #0f172a;
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.gandnet-video-modal__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 18px;
}

.gandnet-video-modal__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.gandnet-video-modal__empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 24px;
	color: #ffffff;
	font-size: 18px;
	font-weight: 900;
	text-align: center;
	background: linear-gradient(135deg, #111827, #312e81);
}

.gandnet-video-modal__empty[hidden] {
	display: none !important;
}

.gandnet-video-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.gandnet-upsell-section {
		padding: 0;
		border-radius: 0;
	}

	.gandnet-upsell-flash {
		margin-bottom: 12px;
		padding: 16px;
		border-radius: 18px;
	}

	.gandnet-upsell-flash__badge {
		min-height: 32px;
		padding: 0 15px;
		font-size: 12px;
	}

	.gandnet-upsell-flash__title {
		font-size: 34px;
	}

	.gandnet-upsell-flash__text {
		font-size: 24px;
	}

	.gandnet-upsell-title {
		font-size: 20px;
	}

	.gandnet-upsell-card {
		padding: 10px;
		grid-template-rows: 260px minmax(42px, auto) minmax(42px, auto) auto auto minmax(58px, auto) auto auto;
	}

	.gandnet-video-modal__close {
		top: 8px;
		right: 8px;
	}

	.gandnet-upsell-grid {
		grid-auto-columns: minmax(280px, 92vw);
		gap: 14px;
	}
}
