/* Installments Widget — PDP widgets + PLP badges */

/* ---------------------------------------------------------------------------
 * PDP widgets
 * ------------------------------------------------------------------------ */
.asa-widgets {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 10px 0;
}

.asa-widget {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 16px;
	border-style: solid;
	border-width: 1px;
	border-radius: 16px;
	border-color: #ebecf2;
	background-color: #ffffff;
	position: relative;
	direction: rtl;
	transition: box-shadow 150ms ease-in-out, transform 150ms ease-in-out;
}

.asa-widget-media {
	display: flex;
	align-items: center;
}

.asa-widget-image {
	width: 60px;
	height: auto;
	border-radius: 15px;
	display: block;
}

.asa-widget-content {
	color: #1a1c23;
}

.asa-widget-title {
	font-size: 14px;
	font-weight: bold;
	line-height: 180%;
	margin-bottom: 2px;
}

.asa-widget-description {
	font-weight: 300;
	font-size: 12px;
	line-height: 180%;
	letter-spacing: -0.36px;
}

/* Loading state during variation AJAX */
#asa-widgets-container {
	opacity: 1;
	transition: opacity 200ms ease-in-out;
}
#asa-widgets-container.asa-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* ---------------------------------------------------------------------------
 * Logo animations
 * ------------------------------------------------------------------------ */
@keyframes asa-pulse {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.1); }
	100% { transform: scale(1); }
}
@keyframes asa-bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
	40% { transform: translateY(-12px); }
	60% { transform: translateY(-6px); }
}
@keyframes asa-light-sweep {
	0%   { transform: translateX(-120%) rotate(25deg); opacity: 0; }
	30%  { opacity: 0.85; }
	60%  { transform: translateX(160%) rotate(25deg); opacity: 0; }
	100% { transform: translateX(160%) rotate(25deg); opacity: 0; }
}

.asa-logo-pulse  { animation: asa-pulse 1s ease-in-out infinite; }
.asa-logo-bounce { animation: asa-bounce 1.2s ease-in-out infinite; }

.asa-widget-media.asa-logo-light-sweep {
	position: relative;
	overflow: hidden;
	border-radius: 15px;
}
.asa-widget-media.asa-logo-light-sweep::after {
	content: '';
	position: absolute;
	top: -35%;
	left: 0;
	width: 60%;
	height: 170%;
	background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0) 100%);
	transform: translateX(0) rotate(25deg);
	opacity: 0;
	pointer-events: none;
	animation: asa-light-sweep 1.8s ease-in-out infinite;
}

/* ---------------------------------------------------------------------------
 * PLP badges (logo-only, stacked top-left over the product thumbnail)
 * ------------------------------------------------------------------------ */
.products .product,
li.product,
.wc-block-grid__product,
.wp-block-post {
	position: relative;
}

.asa-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	bottom: auto;
	right: auto;
	z-index: 99;
	display: flex;
	flex-direction: column;
	gap: 4px;
	pointer-events: none;
}

.asa-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #ebecf2;
	border-radius: 50%;
	background-color: #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	pointer-events: auto;
}

.asa-badge--torob { border-color: #9ce76a; }

.asa-badge-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: block;
	flex-shrink: 0;
	object-fit: contain;
}
