/**
 * FluentCart AppSumo — customer-facing pages.
 *
 * Loaded only on pages carrying one of the plugin's shortcodes.
 *
 * These pages sit inside whatever theme the store runs, so the styling is
 * deliberately restrained: it lays out a card and leaves colour and type to
 * the theme wherever possible. `currentColor` and transparent backgrounds mean
 * the form inherits the surrounding palette instead of fighting it, and it
 * stays legible on dark themes without needing to know about them.
 */

.fcas-redeem {
	max-width: 27rem;
	margin: 0 auto;
	padding: 1rem 0 3rem;
}

.fcas-redeem__title {
	margin: 0 0 .5rem;
	font-size: 1.4rem;
	line-height: 1.3;
	text-align: center;
}

.fcas-redeem__intro {
	margin: 0 0 1.75rem;
	text-align: center;
	opacity: .75;
	line-height: 1.5;
}

.fcas-redeem__form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* Fields ------------------------------------------------------------------ */

.fcas-field {
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.fcas-field__label {
	font-size: .875rem;
	font-weight: 600;
}

.fcas-field__input {
	width: 100%;
	box-sizing: border-box;
	padding: .7rem .85rem;
	font: inherit;
	font-size: 1rem;
	color: inherit;
	background: transparent;
	border: 1px solid;
	border-color: rgba(128, 128, 128, .45);
	border-radius: .375rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.fcas-field__input:focus {
	outline: none;
	border-color: currentColor;
	box-shadow: 0 0 0 3px rgba(128, 128, 128, .18);
}

.fcas-field__input:disabled {
	opacity: .6;
}

.fcas-field__hint {
	margin: 0;
	font-size: .8125rem;
	line-height: 1.45;
	opacity: .7;
}

/* Submit ------------------------------------------------------------------ */

.fcas-redeem__submit {
	width: 100%;
	padding: .8rem 1rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: #2271b1;
	border: 0;
	border-radius: .375rem;
	cursor: pointer;
	transition: background .15s ease;
}

.fcas-redeem__submit:hover,
.fcas-redeem__submit:focus {
	background: #135e96;
}

.fcas-redeem__submit:disabled {
	opacity: .65;
	cursor: progress;
}

.fcas-redeem__footnote {
	margin: 0;
	font-size: .8125rem;
	text-align: center;
	opacity: .6;
	line-height: 1.5;
}

/* Notices ----------------------------------------------------------------- */

.fcas-notice {
	padding: .85rem 1rem;
	margin: 0 0 1.5rem;
	border-radius: .375rem;
	border-left: 4px solid;
	line-height: 1.5;
}

.fcas-notice--error {
	border-color: #d63638;
	background: rgba(214, 54, 56, .09);
}

.fcas-notice--success {
	border-color: #00a32a;
	background: rgba(0, 163, 42, .09);
}

/* Success page ------------------------------------------------------------ */

.fcas-success {
	max-width: 34rem;
	margin: 0 auto;
	padding: 1rem 0 3rem;
}

.fcas-success__lead {
	margin: 0 0 1.75rem;
	text-align: center;
	line-height: 1.55;
	opacity: .8;
}

.fcas-license {
	padding: 1.1rem 1.25rem;
	margin-bottom: 1rem;
	border: 1px solid rgba(128, 128, 128, .35);
	border-radius: .5rem;
}

.fcas-license__product {
	margin: 0 0 .1rem;
	font-size: 1.05rem;
	font-weight: 600;
}

.fcas-license__meta {
	margin: 0 0 .75rem;
	font-size: .8125rem;
	opacity: .7;
}

.fcas-license__key {
	display: flex;
	gap: .5rem;
	align-items: stretch;
}

.fcas-license__value {
	flex: 1 1 auto;
	min-width: 0;
	padding: .6rem .75rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .875rem;
	overflow-wrap: anywhere;
	background: rgba(128, 128, 128, .1);
	border-radius: .375rem;
	user-select: all;
}

.fcas-license__copy {
	flex: 0 0 auto;
	padding: 0 .9rem;
	font: inherit;
	font-size: .875rem;
	color: inherit;
	background: transparent;
	border: 1px solid rgba(128, 128, 128, .45);
	border-radius: .375rem;
	cursor: pointer;
}

.fcas-license__copy:hover {
	border-color: currentColor;
}

.fcas-license__copy.is-copied {
	border-color: #00a32a;
	color: #00a32a;
}

.fcas-success__next {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(128, 128, 128, .25);
}

.fcas-success__next h2 {
	margin: 0 0 .5rem;
	font-size: 1rem;
}

.fcas-success__next ol {
	margin: 0;
	padding-left: 1.25rem;
	line-height: 1.7;
}

.fcas-success__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1.5rem;
}

.fcas-button {
	display: inline-block;
	padding: .65rem 1.1rem;
	font-size: .9375rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: .375rem;
	border: 1px solid rgba(128, 128, 128, .45);
	color: inherit;
}

.fcas-button--primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.fcas-button--primary:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}
