/*
 * Browser notification card (the `[pp_notifications]` display feature's
 * subscribe block, and the account page's notification settings).
 *
 * Deliberately minimal and theme-neutral, like the OTP login form: the card is
 * dropped into whatever column a theme provides, so it assumes no width, no font
 * family and no background of its own.
 *
 * RTL-safe by construction: no `float`, no `left`/`right`, no physical margin or
 * padding. Everything horizontal uses the logical properties
 * (`margin-inline-start`, `padding-inline-start`), so the same stylesheet is
 * correct on a Persian store and on an English one, and a theme that flips
 * `direction` does not push the button off the card.
 */

.pp-push {
	max-width: 420px;
	margin-block: 0 16px;
	margin-inline: 0;
	padding: 14px 16px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
}

.pp-push__title {
	margin-block: 0 6px;
	margin-inline: 0;
	font-size: 16px;
	line-height: 1.6;
}

.pp-push__text {
	margin-block: 0 12px;
	margin-inline: 0;
	color: #50575e;
	font-size: 13px;
	line-height: 1.9;
}

.pp-push__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-block: 0;
	margin-inline: 0;
}

/* The theme's button styles where it has them; a plain, obviously clickable
 * control where it does not. The card must never end up with an unstyled link. */
.pp-push__button {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #c9cccf;
	border-radius: 4px;
	background: #fff;
	color: #1d2327;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.6;
	cursor: pointer;
}

.pp-push__button:hover,
.pp-push__button:focus {
	border-color: var(--wd-primary-color, #2271b1);
	color: var(--wd-primary-color, #2271b1);
}

.pp-push__button:focus-visible {
	outline: 2px solid var(--wd-primary-color, #2271b1);
	outline-offset: 1px;
}

.pp-push__button[aria-pressed="true"] {
	border-color: #b8e0bf;
	background: #f3fbf4;
	color: #1d5c28;
}

.pp-push__button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

/* One status shape, three tones — the same vocabulary as the OTP form's notice,
 * so two cards on one page do not look like two different plugins. */
.pp-push__status {
	margin-block: 10px 0;
	margin-inline: 0;
	font-size: 13px;
	line-height: 1.9;
	color: #50575e;
}

.pp-push__status.is-success {
	color: #1d5c28;
}

.pp-push__status.is-warning {
	color: #7a5c00;
}

.pp-push__status.is-error {
	color: #8a2424;
}

/* The devices a customer has subscribed with, on the account page. */
.pp-push__devices {
	margin-block: 10px 0;
	margin-inline: 0;
	padding-inline-start: 18px;
	color: #50575e;
	font-size: 13px;
	line-height: 1.9;
}

.pp-push__device {
	margin-block: 0 4px;
	margin-inline: 0;
	word-break: break-word;
}

@media ( prefers-reduced-motion: reduce ) {
	.pp-push__button {
		transition: none;
	}
}
