/**
 * Cancel-flow popup on the My Account subscription page.
 * Palette mirrors the theme's account tokens (Figma "Purovitalis rebranding
 * 2026"); kept literal here because the plugin must also work under themes
 * that do not define them.
 */

/* Feedback for the add-coupon form (rendered from a transient flash). */
.pvc-notice {
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 400;
	text-align: left;
}

.pvc-notice--success {
	background: #eef4e9;
	color: #4d7050;
}

.pvc-notice--error {
	background: #f8e7ea;
	color: #a8364f;
}

/* The real WCS cancel link is the popup's confirmation; hide it in the actions row. */
.subscription_cancel_early ~ .cancel {
	display: none;
}

.pvc-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(17, 17, 17, 0.55);
}

.pvc-popup[hidden] {
	display: none;
}

.pvc-popup__content {
	position: relative;
	width: min(32rem, 100%);
	background: #fff;
	border-radius: 8px;
	padding: 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	color: #000;
}

.pvc-popup__content h2 {
	margin: 0 0 20px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
}

.pvc-popup__content p {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.5;
	color: #3d3d3d;
}

.pvc-popup__close {
	position: absolute;
	top: 16px;
	right: 16px;
	appearance: none;
	border: 0;
	background: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	color: #000;
}

/* --------------------------------------------------------------- timeline */

.pvc-popup__timeline {
	display: flex;
	align-items: flex-start;
	margin: 0 0 24px;
}

.pvc-timeline__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.pvc-timeline__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #e3ded4;
	background: #f8f7f3;
	color: #727272;
	font-size: 13px;
	font-weight: 700;
}

.pvc-timeline__step.is-done .pvc-timeline__dot {
	border-color: #4d7050;
	background: #eef4e9;
	color: #4d7050;
}

.pvc-timeline__step.is-current .pvc-timeline__dot {
	border-color: #000;
	background: #000;
	color: #fff;
}

.pvc-timeline__label {
	font-size: 11px;
	color: #727272;
	white-space: nowrap;
}

.pvc-timeline__step.is-current .pvc-timeline__label {
	color: #000;
	font-weight: 600;
}

.pvc-timeline__bar {
	flex: 1 1 0;
	height: 2px;
	margin-top: 15px;
	background: #e3ded4;
	min-width: 24px;
}

.pvc-timeline__bar.is-done {
	background: #4d7050;
}

/* ---------------------------------------------------------------- actions */

.pvc-popup__actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.pvc-popup__actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 99px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

/* Keep subscription: the choice we lead with. */
.pvc-popup__actions .pvc-popup__keep {
	background: #000;
	border: 1px solid #000;
	color: #fff;
}

/* The relocated real cancel link, now the confirmation. */
.pvc-popup__actions .pvc-real-cancel {
	display: inline-flex;
	background: transparent;
	border: 1px solid #000;
	color: #000;
}
