/**
 * Rahkar PrestaShop — "Notify me when available".
 * Buttons and the input use the theme's own classes; this file only lays out
 * the dialog, with logical properties so it follows the page direction.
 */

.rkps-stock {
	margin-block: 0.75rem;
}

.rkps-stock__open {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.rkps-stock__icon {
	flex: 0 0 auto;
}

.rkps-stock__dialog {
	width: min(92vw, 26rem);
	padding: 0;
	border: 0;
	border-radius: 0.5rem;
	box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.2);
	color: inherit;
}

.rkps-stock__dialog::backdrop {
	background: rgba(0, 0, 0, 0.45);
}

.rkps-stock__form {
	margin: 0;
	padding: 1rem 1.25rem 1.25rem;
}

.rkps-stock__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-block-end: 0.75rem;
}

.rkps-stock__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
}

.rkps-stock__close {
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.rkps-stock__intro {
	margin-block: 0 0.75rem;
	line-height: 1.8;
}

.rkps-stock__label {
	display: block;
	margin-block-end: 0.25rem;
	font-weight: 600;
}

.rkps-stock__input {
	width: 100%;
	text-align: left;
}

.rkps-stock__input[aria-invalid="true"] {
	border-color: #b42318;
}

.rkps-stock__submit {
	width: 100%;
	margin-block-start: 0.75rem;
}

.rkps-stock__message {
	margin: 0.75rem 0 0;
	min-height: 1.25rem;
	line-height: 1.8;
}

.rkps-stock__message:empty {
	display: none;
}

.rkps-stock__message[data-tone="error"] {
	color: #b42318;
}

.rkps-stock__message[data-tone="success"] {
	color: #2f7d32;
}
