/*
 * Frenchship Access: customer pages (My Account > Book activations, the
 * activation shortcodes). Small, scoped, using the Kadence global palette
 * (with fallbacks); layout and typography come from the theme.
 */
.frenchship-note {
	color: var(--global-palette5, #4a5568);
	font-size: 0.9em;
}

.frenchship-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0.04em;
}

/* Book activations: one card per edition. */
.frenchship-activations__edition {
	border: 1px solid var(--global-palette7, #edf2f7);
	border-radius: 8px;
	padding: 1em 1.25em;
	margin: 0 0 1.5em;
	background: var(--global-palette9, #fff);
}

.frenchship-activations__edition > h3 {
	margin: 0;
}

.frenchship-activations__edition .frenchship-activations__summary {
	margin: 0.75em 0 1em;
}

.frenchship-activations__summary td {
	font-size: 1.25em;
	font-weight: 600;
}

.frenchship-activations__actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
	gap: 1em 1.5em;
}

.frenchship-activations__action .button {
	width: 100%;
	text-align: center;
}

.frenchship-activations__action .frenchship-note {
	margin: 0.5em 0 0;
}

.frenchship-activations__count {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin: 0 0 0.5em;
}

.frenchship-activations__count input {
	width: 6em;
}

.frenchship-activations__inline {
	display: inline-block;
	margin: 0 0.25em 0.25em 0;
}

/* Status badges. */
.frenchship-status {
	display: inline-block;
	padding: 0.15em 0.6em;
	border-radius: 999px;
	font-size: 0.85em;
	line-height: 1.5;
	background: var(--global-palette7, #edf2f7);
	color: var(--global-palette3, #1a202c);
}

.frenchship-status--mine,
.frenchship-status--recipient {
	background: #e6f4ea;
	color: var(--global-palette11, #13612e);
}

.frenchship-status--invited {
	background: #e8f0fb;
	color: var(--global-palette12, #1159af);
}

.frenchship-status--refunded,
.frenchship-status--revoked {
	background: #fdecea;
	color: var(--global-palette13, #b82105);
}

/* New codes and copy fields. */
.frenchship-copy label {
	display: block;
	font-weight: 600;
}

.frenchship-copy__row {
	display: flex;
	gap: 0.5em;
	align-items: stretch;
}

.frenchship-copy__row .frenchship-copy__field {
	flex: 1 1 auto;
	min-width: 0;
}

textarea.frenchship-copy__field {
	width: 100%;
}

/* Activation shortcodes inside block columns. */
.frenchship-activate--code .frenchship-activate__code-form .input-text,
.frenchship-activate--claim .frenchship-activate__form .input-text,
.frenchship-activate--claim .frenchship-activate__form select {
	width: 100%;
}

.frenchship-activate--code .col2-set .col-1,
.frenchship-activate--code .col2-set .col-2,
.frenchship-activate--claim .col2-set .col-1,
.frenchship-activate--claim .col2-set .col-2 {
	float: none;
	width: 100%;
}

.frenchship-activate__success p:last-child {
	margin-bottom: 0;
}

/* Secondary and compact buttons (Kadence fills every .button). */
.woocommerce .button.frenchship-button--secondary,
.button.frenchship-button--secondary {
	background: transparent;
	color: var(--global-palette1, #2b6cb0);
	box-shadow: inset 0 0 0 2px currentColor;
}

.woocommerce .button.frenchship-button--secondary:hover,
.woocommerce .button.frenchship-button--secondary:focus,
.button.frenchship-button--secondary:hover,
.button.frenchship-button--secondary:focus {
	background: var(--global-palette7, #edf2f7);
	color: var(--global-palette2, #215387);
}

.button.frenchship-button--small {
	font-size: 0.85em;
	padding: 0.4em 0.8em;
	line-height: 1.3;
}

/* WooCommerce floats buttons inside notices: keep them in the flow here. */
.woocommerce .frenchship-activations__codes .button,
.woocommerce .frenchship-activate__success .button,
.frenchship-activations__codes .button,
.frenchship-activate__success .button {
	float: none;
}

.frenchship-activations__list .frenchship-status {
	border-radius: 0.5em;
}

.frenchship-activations__list td.frenchship-activations__cell-actions {
	white-space: nowrap;
}

.frenchship-activations__list td.frenchship-activations__cell-actions .frenchship-activations__inline {
	display: block;
}
