.rds-pa {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 6px;
	width: 100%;
	max-width: 100%;
	position: relative;
	box-sizing: border-box;
}

.rds-pa .rds-pa__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 40px;
	min-width: 0;
	margin: 0;
	border: 1px solid #dedede;
	border-radius: 6px;
	background: #fff;
	color: #151515;
	box-shadow: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition-property: color, background-color, border-color, border-radius, box-shadow, transform;
	transition-duration: 180ms;
	transition-timing-function: ease;
	-webkit-tap-highlight-color: transparent;
}

.rds-pa .rds-pa__action:hover {
	border-color: #b9b9b9;
	background-color: #f8f8f8;
	color: #151515;
	text-decoration: none;
}

.rds-pa .rds-pa__action:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.rds-pa .rds-pa__preview {
	flex-shrink: 1;
	padding: 10px 14px;
	overflow-wrap: anywhere;
}

.rds-pa .rds-pa__cart {
	position: relative;
	flex-shrink: 0;
	width: 40px;
	padding: 9px;
}

.rds-pa .rds-pa__action[aria-disabled="true"] {
	cursor: default;
}

.rds-pa__cart-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 20px;
	line-height: 1;
}

.rds-pa__cart-icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

.rds-pa__cart-icon svg:not(.rds-pa__default-icon) {
	fill: currentColor;
}

.rds-pa .rds-pa__cart.is-loading {
	pointer-events: none;
	cursor: wait;
}

.rds-pa__cart.is-loading .rds-pa__cart-icon {
	visibility: hidden;
}

.rds-pa__spinner {
	display: none;
	position: absolute;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	border-radius: 50%;
}

.rds-pa__cart.is-loading .rds-pa__spinner {
	display: block;
	animation: rds-pa-spin 650ms linear infinite;
}

.rds-pa > .added_to_cart {
	display: none !important;
}

.rds-pa__error {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	z-index: 10;
	width: max-content;
	max-width: min(280px, 80vw);
	padding: 8px 12px;
	border: 1px solid #fecaca;
	border-radius: 5px;
	background: #fef2f2;
	color: #991b1b;
	font-size: 12px;
	line-height: 1.5;
}

.rds-pa__error[hidden] {
	display: none !important;
}

.rds-pa__status {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.rds-pa-toast {
	position: fixed;
	left: 50%;
	bottom: max(24px, env(safe-area-inset-bottom));
	z-index: 2147483001;
	width: max-content;
	max-width: calc(100vw - 32px);
	box-sizing: border-box;
	padding: 13px 20px;
	border: 1px solid #bbdfc9;
	border-radius: 7px;
	background: #f0faf4;
	color: #166534;
	box-shadow: 0 8px 28px rgb(15 23 42 / 12%);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.rds-pa-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
	.rds-pa-toast { transition: none; }
}

.rds-pa-flight {
	position: fixed;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	color: #151515;
	box-shadow: 0 10px 28px rgb(0 0 0 / 18%);
	pointer-events: none;
	overflow: hidden;
	will-change: transform, opacity;
}

.rds-pa-flight img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rds-pa-flight > .rds-pa__cart-icon {
	font-size: 28px;
}

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

@media (max-width: 767px) {
	.rds-pa .rds-pa__action { height: 44px; }
	.rds-pa .rds-pa__cart { width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	.rds-pa .rds-pa__action { transition-duration: 0ms !important; }
	.rds-pa .rds-pa__action:hover,
	.rds-pa .rds-pa__action:focus-visible { transform: none !important; }
	.rds-pa__cart.is-loading .rds-pa__spinner { animation: none; }
}
