/**
 * WP Eventbrite Embedded Checkout: admin pages (Eventbrite → Get started,
 * Shortcode, Events, Settings, Advanced). Loaded only on those screens.
 *
 * The colours are the wpevent.pro logo's blue rather than the admin colour
 * scheme, so the screens match the icon. The logo's blue (#1993e9) is too
 * light for text on white or white text on it, so text, links, buttons and
 * step chips use it darkened to #0f6fc6 (5.1:1 with white), and light
 * fills are tints of it. Only elements the plugin draws itself use them;
 * WordPress notices keep their own colours.
 */

.wpeec-admin {
	--wpeec-accent: #0f6fc6;
	--wpeec-accent-dark: #0a589f;
	--wpeec-accent-deep: #08345e;
	--wpeec-fill: #0f6fc6;
	--wpeec-fill-dark: #0b5fae;
	--wpeec-fill-deep: #094f92;
	--wpeec-ink: #08345e;
	--wpeec-on-fill: #fff;
	--wpeec-surface: #fff;
	--wpeec-subtle: #f6f7f7;
	--wpeec-border: #e2e4e7;
	--wpeec-text: #1e1e1e;
	--wpeec-muted: #646970;
	--wpeec-radius: 10px;
	--wpeec-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.04);

	color: var(--wpeec-text);
}

.wpeec-admin *,
.wpeec-admin *::before,
.wpeec-admin *::after {
	box-sizing: border-box;
}

/* ---------- Header: full width, above the page content ---------- */

.wpeec-admin__header {

	/* Cancel the .wrap and #wpcontent spacing so the bar spans the content area. */
	margin-block: -10px 0;
	margin-inline: -22px -20px;
	padding: 16px 32px 0;
	background: var(--wpeec-surface);
	border-bottom: 1px solid var(--wpeec-border);
}

.wpeec-admin__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.wpeec-admin__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.wpeec-admin .wpeec-admin__logo {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	display: block;
	color: #fff;
	font-size: 20px;
	line-height: 36px;
	text-align: center;
	flex: none;
}

.wpeec-admin .wpeec-admin__title {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.wpeec-admin__version {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--wpeec-subtle);
	color: var(--wpeec-muted);
	font-size: 11px;
	font-weight: 500;
	white-space: nowrap;
}

.wpeec-admin__help {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--wpeec-border);
	border-radius: 999px;
	color: var(--wpeec-text);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.wpeec-admin__help:hover,
.wpeec-admin__help:focus {
	border-color: var(--wpeec-accent);
	color: var(--wpeec-accent);
}

.wpeec-admin__help .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.wpeec-admin__tabs {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.wpeec-admin__tab {
	margin-bottom: -1px;
	padding: 10px 4px;
	border-bottom: 2px solid transparent;
	color: var(--wpeec-muted);
	font-weight: 500;
	text-decoration: none;
}

.wpeec-admin__tab + .wpeec-admin__tab {
	margin-inline-start: 16px;
}

.wpeec-admin__tab:hover {
	color: var(--wpeec-text);
}

.wpeec-admin__tab.is-active {
	border-bottom-color: var(--wpeec-accent);
	color: var(--wpeec-accent);
}

.wpeec-admin a:focus {
	box-shadow: none;
	outline: 2px solid var(--wpeec-accent);
	outline-offset: 2px;
}

/* Notices sit between the header and the body. */
.wpeec-admin > .notice,
.wpeec-admin > .updated,
.wpeec-admin > .error {
	max-width: 1180px;
	margin: 20px 0 0;
}

/* ---------- Body layout ---------- */

.wpeec-admin__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
	max-width: 1180px;
	margin-top: 28px;
}

.wpeec-admin__body--single {
	grid-template-columns: minmax(0, 760px);
}

.wpeec-admin__intro {
	margin-bottom: 28px;
}

.wpeec-admin__intro h2 {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 600;
}

.wpeec-admin__intro p {
	margin: 0;
	color: var(--wpeec-muted);
	font-size: 14px;
}

/* The sidebar: one recessed panel, secondary to the white cards. */
.wpeec-admin__side {
	position: sticky;
	top: 52px;
	padding: 20px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: var(--wpeec-radius);
	background: rgba(0, 0, 0, 0.035);
}

/* ---------- Cards ---------- */

.wpeec-card {
	margin-bottom: 20px;
	background: var(--wpeec-surface);
	border: 1px solid var(--wpeec-border);
	border-radius: var(--wpeec-radius);
	box-shadow: var(--wpeec-shadow);
}

.wpeec-card--padded {
	padding: 20px 24px;
}

.wpeec-card h3 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
}

/* Settings groups: heading above the card, settings inside it. */
.wpeec-group {
	margin-bottom: 28px;
}

.wpeec-group__header {
	margin: 0 0 10px;
}

.wpeec-admin .wpeec-group__header h3 {
	margin: 0 0 2px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.wpeec-group__header p {
	margin: 0;
	color: var(--wpeec-muted);
	font-size: 13px;
}

.wpeec-group .wpeec-card {
	margin-bottom: 0;
}


.wpeec-muted {
	margin: 0;
	color: var(--wpeec-muted);
}

.wpeec-card--padded p {
	margin: 8px 0 0;
}

.wpeec-card--padded p:first-of-type {
	margin-top: 4px;
}

/* ---------- Field rows ---------- */

.wpeec-field {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px 32px;
	align-items: center;
	padding: 16px 24px;
	border-top: 1px solid var(--wpeec-border);
}

/* The first setting in a card needs no divider above it. */
.wpeec-group .wpeec-card > .wpeec-field:first-child {
	border-top: 0;
}

.wpeec-field__label {
	display: block;
	font-size: 14px;
	font-weight: 500;
}

.wpeec-field__help {
	margin: 2px 0 0;
	color: var(--wpeec-muted);
	font-size: 13px;
}

.wpeec-field__control {
	justify-self: end;
}

/* ---------- Controls ---------- */

.wpeec-admin .wpeec-field input[type="text"],
.wpeec-admin .wpeec-field input[type="number"] {
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	font-size: 14px;
}

.wpeec-admin .wpeec-field input[type="text"]:focus,
.wpeec-admin .wpeec-field input[type="number"]:focus {
	border-color: var(--wpeec-accent);
	box-shadow: 0 0 0 1px var(--wpeec-accent);
	outline: 2px solid transparent;
}

.wpeec-admin .wpeec-text {
	width: 240px;
}

.wpeec-admin .wpeec-text--short {
	width: 110px;
}

.wpeec-admin .wpeec-field select {
	min-height: 36px;
	max-width: 100%;
	padding: 0 32px 0 12px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	font-size: 14px;
}

.wpeec-admin .wpeec-field textarea {
	display: block;
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	font-family: Menlo, Consolas, monaco, monospace;
	font-size: 13px;
	line-height: 1.6;
}

.wpeec-admin .wpeec-field select:focus,
.wpeec-admin .wpeec-field textarea:focus {
	border-color: var(--wpeec-accent);
	box-shadow: 0 0 0 1px var(--wpeec-accent);
	outline: 2px solid transparent;
}

/* Rows whose control needs the full width: label on top, control below. */
.wpeec-field--stacked {
	grid-template-columns: minmax(0, 1fr);
}

.wpeec-field--stacked .wpeec-field__control {
	justify-self: stretch;
}

.wpeec-admin .wpeec-field--stacked .wpeec-text {
	width: 100%;
}

/* Rows and groups the shortcode builder hides for the current choices. */
.wpeec-field[hidden],
.wpeec-group[hidden] {
	display: none;
}

/* Number input with a unit suffix. */
.wpeec-input-group {
	display: inline-flex;
	align-items: stretch;
}

.wpeec-admin .wpeec-input-group input[type="number"] {
	width: 110px;
	border-start-end-radius: 0;
	border-end-end-radius: 0;
}

.wpeec-input-group__addon {
	display: flex;
	align-items: center;
	padding: 0 12px;
	border: 1px solid #c3c4c7;
	border-inline-start: 0;
	border-start-end-radius: 6px;
	border-end-end-radius: 6px;
	background: var(--wpeec-subtle);
	color: var(--wpeec-muted);
}

/* Toggle switch: a real checkbox, restyled. */
.wpeec-switch {
	display: inline-flex;
}

.wpeec-admin .wpeec-switch input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	width: 40px;
	min-width: 40px;
	height: 22px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: #c3c4c7;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.wpeec-admin .wpeec-switch input[type="checkbox"]::before,
.wpeec-admin .wpeec-switch input[type="checkbox"]:checked::before {
	content: "";
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 16px;
	height: 16px;
	margin: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}

.wpeec-admin .wpeec-switch input[type="checkbox"]:checked {
	background: var(--wpeec-accent);
}

.wpeec-admin .wpeec-switch input[type="checkbox"]:checked::before {
	transform: translateX(18px);
}

.rtl .wpeec-admin .wpeec-switch input[type="checkbox"]:checked::before {
	transform: translateX(-18px);
}

.wpeec-admin .wpeec-switch input[type="checkbox"]:focus {
	box-shadow: none;
	outline: none;
}

.wpeec-admin .wpeec-switch input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--wpeec-accent);
	outline-offset: 2px;
}

/* Segmented control: real radio buttons, restyled. */
.wpeec-segmented {
	display: inline-flex;
	gap: 2px;
	margin: 0;
	padding: 3px;
	border: 0;
	border-radius: 8px;
	background: #f0f0f1;
}

.wpeec-segmented label {
	position: relative;
}

.wpeec-admin .wpeec-segmented input[type="radio"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.wpeec-segmented span {
	display: block;
	padding: 6px 16px;
	border-radius: 6px;
	color: var(--wpeec-muted);
	font-weight: 500;
	white-space: nowrap;
}

.wpeec-segmented input:hover + span {
	color: var(--wpeec-text);
}

.wpeec-segmented input:checked + span {
	background: var(--wpeec-surface);
	color: var(--wpeec-text);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.wpeec-segmented input:focus-visible + span {
	outline: 2px solid var(--wpeec-accent);
	outline-offset: 1px;
}

/* ---------- Save bar ---------- */

.wpeec-savebar {
	position: sticky;
	bottom: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 12px 12px 24px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--wpeec-border);
	border-radius: var(--wpeec-radius);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.wpeec-savebar p {
	margin: 0;
	color: var(--wpeec-muted);
}

.wpeec-admin .button {
	border-radius: 6px;
}

.wpeec-admin .wpeec-savebar .button-primary,
.wpeec-admin .wpeec-feature .button {
	min-height: 36px;
	padding: 0 16px;
	line-height: 34px;
}

/* ---------- Sidebar: shortcode reference ---------- */

/* ---------- Sidebar: shortcode examples ---------- */

.wpeec-code {
	position: relative;
	margin-top: 12px;
	background: var(--wpeec-subtle);
	border: 1px solid var(--wpeec-border);
	border-radius: 6px;
}

/* One line that scrolls sideways instead of wrapping into a block of code. */
.wpeec-code code {
	display: block;
	overflow-x: auto;
	padding: 10px 44px 10px 12px;
	background: none;
	font-size: 12px;
	line-height: 1.5;
	white-space: nowrap;
	scrollbar-width: thin;

	/* Fade the text out before it reaches the copy button. */
	mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent calc(100% - 40px));
}

.wpeec-code code:focus-visible {
	outline: 2px solid var(--wpeec-accent);
	outline-offset: -2px;
	border-radius: 6px;
}

.wpeec-copy {
	position: absolute;
	top: 50%;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--wpeec-border);
	border-radius: 6px;
	background: var(--wpeec-surface);
	color: var(--wpeec-muted);
	cursor: pointer;
	transform: translateY(-50%);
}

.wpeec-copy:hover {
	border-color: var(--wpeec-accent);
	color: var(--wpeec-accent);
}

.wpeec-copy:focus-visible {
	outline: 2px solid var(--wpeec-accent);
	outline-offset: 1px;
}

.wpeec-copy svg {
	display: block;
}

.wpeec-copy .wpeec-copy__done,
.wpeec-copy.is-copied .wpeec-copy__icon {
	display: none;
}

.wpeec-copy.is-copied .wpeec-copy__done {
	display: block;
}

.wpeec-copy.is-copied {
	border-color: #00a32a;
	color: #00a32a;
}

/* Attribute list in the shortcode builder's no-JavaScript fallback:
   names as chips, with what they accept underneath. */
.wpeec-attrs {
	margin: 12px 0 0;
}

.wpeec-attrs div {
	padding: 8px 0;
	border-top: 1px solid var(--wpeec-subtle);
}

.wpeec-attrs dt {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
}

.wpeec-admin .wpeec-attrs dt code {
	padding: 1px 4px;
	border-radius: 4px;
	font-size: 12px;
	overflow-wrap: anywhere;
}

.wpeec-attrs dd {
	margin: 4px 0 0;
	color: var(--wpeec-muted);
	font-size: 12px;
}

/* ---------- Sidebar: help links ---------- */

.wpeec-links {
	margin: 12px -12px -8px;
	padding: 0;
	list-style: none;
}

.wpeec-links li {
	margin: 0;
}

.wpeec-admin .wpeec-link {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--wpeec-text);
	text-decoration: none;
}

.wpeec-admin .wpeec-link:hover {
	background: var(--wpeec-subtle);
}

.wpeec-admin .wpeec-link:focus {
	box-shadow: none;
}

.wpeec-admin .wpeec-link:focus-visible {
	outline: 2px solid var(--wpeec-accent);
	outline-offset: 0;
}

.wpeec-admin .wpeec-link__icon {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--wpeec-fill) 22%, #fff);
	color: var(--wpeec-accent);
	font-size: 16px;
	line-height: 32px;
	text-align: center;
}

.wpeec-link__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.wpeec-link__title {
	font-weight: 500;
}

.wpeec-link__hint {
	color: var(--wpeec-muted);
	font-size: 12px;
}

.wpeec-admin .wpeec-link__arrow {
	flex: none;
	color: var(--wpeec-muted);
	font-size: 16px;
	opacity: 0;
	transition: opacity 0.15s;
}

.wpeec-admin .wpeec-link:hover .wpeec-link__arrow,
.wpeec-admin .wpeec-link:focus-visible .wpeec-link__arrow {
	opacity: 1;
}

/* ---------- Sidebar column ---------- */

.wpeec-admin__side .wpeec-card {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.wpeec-admin__side .wpeec-card + .wpeec-card {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Small uppercase labels: a different level from the group headings. */
.wpeec-admin .wpeec-admin__side h3 {
	margin-bottom: 4px;
	color: var(--wpeec-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wpeec-admin__side .wpeec-code {
	background: var(--wpeec-surface);
}

.wpeec-admin__side .wpeec-link:hover {
	background: var(--wpeec-surface);
}

/* On the grey panel: white icon tiles with neutral icons, accent on hover. */
.wpeec-admin .wpeec-admin__side .wpeec-link__icon {
	background: var(--wpeec-surface);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
	color: #50575e;
}

.wpeec-admin .wpeec-admin__side .wpeec-link:hover .wpeec-link__icon {
	color: var(--wpeec-accent);
}

/* ---------- Shortcode builder output ---------- */

/* The whole shortcode stays readable: it wraps instead of scrolling. */
.wpeec-admin .wpeec-code.wpeec-code--wrap code {
	padding: 12px;
	white-space: normal;
	overflow-wrap: anywhere;
	mask-image: none;
}

.wpeec-admin__side .wpeec-builder-hint {
	margin: 10px 0 0;
	font-size: 12px;
}

.wpeec-admin .wpeec-field__more {
	white-space: nowrap;
}

/* Extra requirements under a field's help text. */
.wpeec-field__notes {
	margin: 8px 0 0;
	padding: 0 0 0 16px;
	color: var(--wpeec-muted, #646970);
	font-size: 12px;
	list-style: disc;
}

.wpeec-field__notes li {
	margin: 0 0 2px;
}

.wpeec-admin .wpeec-switch input:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* A form link the builder can't read. */
.wpeec-admin .wpeec-field.is-invalid input[type="text"] {
	border-color: #d63638;
	box-shadow: 0 0 0 1px #d63638;
}

.wpeec-admin .wpeec-field.is-invalid .wpeec-field__help {
	color: #b32d2e;
}

.wpeec-how {
	margin: 0;
	padding: 0 0 0 16px;
	color: var(--wpeec-muted, #646970);
	font-size: 13px;
	line-height: 1.5;
	list-style: disc;
}

.wpeec-how li {
	margin: 0 0 6px;
}

.wpeec-how li:last-child {
	margin-bottom: 0;
}

.wpeec-builder-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 14px;
}

.wpeec-admin .wpeec-builder-actions .button-primary {
	flex: 1;
	justify-content: center;
	text-align: center;
}

.wpeec-admin .button.wpeec-quiet-button {
	border-color: transparent;
	background: none;
	color: var(--wpeec-muted);
}

.wpeec-admin .button.wpeec-quiet-button:hover {
	background: rgba(0, 0, 0, 0.05);
	color: var(--wpeec-text);
}

.wpeec-admin__side .wpeec-side-action {
	margin: 12px 0 0;
}

/* ---------- Review request ---------- */

/* Printed below the header by wpeec_render_admin_header(), styled as a card. */
.wpeec-admin .wpeec-review-notice {
	max-width: 1180px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: center;
	margin: 20px 0 0;
	padding: 16px 20px;
	border: 1px solid var(--wpeec-border, #e2e4e7);
	border-radius: var(--wpeec-radius, 10px);
	background: #fff;
	box-shadow: var(--wpeec-shadow, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.wpeec-admin .wpeec-review-notice__icon {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--wpeec-fill) 22%, #fff);
	color: var(--wpeec-accent);
	font-size: 18px;
	line-height: 36px;
	text-align: center;
}

.wpeec-review-notice__text {
	flex: 1 1 280px;
	min-width: 0;
}

.wpeec-admin .wpeec-review-notice p {
	margin: 0;
	padding: 0;
	color: var(--wpeec-muted, #646970);
}

.wpeec-admin .wpeec-review-notice .wpeec-review-notice__title {
	margin-bottom: 2px;
	color: var(--wpeec-text, #1e1e1e);
	font-weight: 600;
}

.wpeec-review-notice__actions {
	display: flex;
	flex: none;
	gap: 8px;
	align-items: center;
}

/* "No thanks": a quiet text button next to the primary one. */
.wpeec-admin .button.wpeec-review-notice__dismiss {
	border-color: transparent;
	background: none;
	color: var(--wpeec-muted, #646970);
}

.wpeec-admin .button.wpeec-review-notice__dismiss:hover {
	background: var(--wpeec-subtle, #f6f7f7);
	color: var(--wpeec-text, #1e1e1e);
}

/* ---------- Feature cards (Events page) ---------- */

.wpeec-feature {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.wpeec-admin .wpeec-feature__icon {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--wpeec-fill) 22%, #fff);
	color: var(--wpeec-accent);
	font-size: 20px;
	line-height: 40px;
	text-align: center;
}

.wpeec-feature p:last-child {
	margin-top: 16px;
}

.wpeec-feature__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.wpeec-feature__secondary {
	color: var(--wpeec-muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 1100px) {

	.wpeec-admin__body {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Stacked below the settings: the two sections sit side by side. */
	.wpeec-admin__side {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 24px;
	}

	.wpeec-admin__side .wpeec-card + .wpeec-card {
		margin-top: 0;
		padding-top: 0;
		padding-left: 24px;
		border-top: 0;
		border-left: 1px solid rgba(0, 0, 0, 0.08);
	}
}

@media (max-width: 782px) {

	.wpeec-admin__side {
		grid-template-columns: minmax(0, 1fr);
	}

	.wpeec-admin__side .wpeec-card + .wpeec-card {
		margin-top: 20px;
		padding-top: 20px;
		padding-left: 0;
		border-top: 1px solid rgba(0, 0, 0, 0.08);
		border-left: 0;
	}

	.wpeec-admin__header {
		margin-inline: -10px -12px;
		padding: 12px 16px 0;
	}

	.wpeec-admin__version {
		display: none;
	}
}

@media (max-width: 600px) {
	/* Four tabs must fit a phone: closer together, and scroll if a translation is longer. */
	.wpeec-admin__tabs {
		gap: 0;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
	}

	.wpeec-admin__tabs::-webkit-scrollbar {
		display: none;
	}

	.wpeec-admin__tab {
		margin-bottom: 0;
		white-space: nowrap;
	}

	.wpeec-admin__tab + .wpeec-admin__tab {
		margin-inline-start: 12px;
	}


	.wpeec-field {
		grid-template-columns: minmax(0, 1fr);
		padding: 16px;
	}

	.wpeec-field__control {
		justify-self: start;
	}

	.wpeec-admin .wpeec-text {
		width: 100%;
	}

	.wpeec-card--padded {
		padding-inline: 16px;
	}

	.wpeec-savebar {
		padding-inline-start: 16px;
	}

	.wpeec-savebar p {
		display: none;
	}

	.wpeec-feature {
		flex-direction: column;
	}
}

/* Colour fields: native picker beside the hex text box. */
.wpeec-admin .wpeec-color {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wpeec-admin .wpeec-color__swatch {
	width: 36px;
	height: 36px;
	padding: 2px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.wpeec-admin .wpeec-color__hex {
	width: 150px;
}

/* ---------- Get started page ---------- */

.wpeec-admin__body--start {
	grid-template-columns: minmax(0, 1040px);
}

/* Step 1: one centred card that asks for the event. */
.wpeec-start-hero {
	max-width: 640px;
	margin: 8px auto 36px;
	padding: 40px 40px 28px;
	background: var(--wpeec-surface);
	border: 1px solid var(--wpeec-border);
	border-radius: 16px;
	box-shadow: var(--wpeec-shadow);
	text-align: center;
}

.wpeec-start-hero__icon {
	display: block;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
}

.wpeec-admin .wpeec-start-hero__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.wpeec-admin .wpeec-start-hero__lead {
	max-width: 440px;
	margin: 0 auto 22px;
	color: var(--wpeec-muted);
	font-size: 14px;
	line-height: 1.6;
}

.wpeec-admin .wpeec-start-hero__input {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 0 20px;
	border: 1.5px solid #c3c4c7;
	border-radius: 12px;
	background: #fff;
	color: var(--wpeec-text);
	font-size: 16px;
	line-height: 1.4;
	text-align: center;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wpeec-admin .wpeec-start-hero__input::placeholder {
	color: #8c8f94;
}

.wpeec-admin .wpeec-start-hero__input:focus {
	border-color: var(--wpeec-accent);
	box-shadow: 0 0 0 3px rgba(15, 111, 198, 0.2);
	outline: none;
}

.wpeec-admin .wpeec-start-hero__note {
	min-height: 20px;
	margin: 12px 0 0;
	color: var(--wpeec-muted);
	font-size: 13px;
	line-height: 1.5;
}

/* Saved: a tick before the message, and the field gets a calm green edge. */
.wpeec-start-hero.is-saved .wpeec-start-hero__note::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin: 0 6px -3px 0;
	border-radius: 50%;
	background: #1e8e3e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.6 11.4 3.4 8.2l1.1-1.1 2.1 2.1 4.9-4.9 1.1 1.1z'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.wpeec-admin .wpeec-start-hero.is-saved .wpeec-start-hero__input {
	border-color: #1e8e3e;
}

.wpeec-admin .wpeec-start-hero.is-invalid .wpeec-start-hero__input {
	border-color: #d63638;
	box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.14);
}

.wpeec-admin .wpeec-start-hero.is-invalid .wpeec-start-hero__note {
	color: #b32d2e;
}

.wpeec-admin .wpeec-start-hero__save {
	margin: 16px 0 0;
}

.wpeec-start-hero.is-js .wpeec-start-hero__save {
	display: none;
}

.wpeec-admin .wpeec-start-hero__aside {
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--wpeec-border);
	color: var(--wpeec-muted);
	font-size: 13px;
	text-wrap: balance;
}

/* Once the link is saved, the review and support line stands out a little:
   a soft blue panel instead of a plain footnote. When it only offers help
   (another review request is showing, or one was answered), it stays plain. */
.wpeec-admin .wpeec-start-hero__aside[data-wpeec-start-aside="saved"]:not(.is-support-only) {
	padding: 12px 16px;
	border-top: 0;
	border-radius: 10px;
	background: color-mix(in srgb, var(--wpeec-fill) 16%, #fff);
	color: var(--wpeec-ink);
}

/* Steps 2 and 3: numbered chips before the headings; the text under a
   heading lines up with the heading's words, not with the chip. */
.wpeec-start-steps .wpeec-group__header p {
	padding-left: 36px;
}

.wpeec-start-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--wpeec-fill);
	color: var(--wpeec-on-fill);
	font-size: 13px;
	font-weight: 600;
	vertical-align: middle;
}

.wpeec-start-steps:not([hidden]) {
	animation: wpeec-start-reveal 0.25s ease-out;
}

@keyframes wpeec-start-reveal {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpeec-start-steps:not([hidden]) {
		animation: none;
	}
}

@media (max-width: 600px) {
	.wpeec-start-hero {
		padding: 28px 20px 20px;
		border-radius: 12px;
	}
}

.wpeec-start-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
}

.wpeec-start-cards .wpeec-card {
	margin: 0;
}

/* Step 2 cards: icon, title, text and the button stacked and centred, like step 1. */
.wpeec-admin .wpeec-start-cards .wpeec-feature {
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 28px 24px 24px;
	text-align: center;
}

.wpeec-admin .wpeec-start-cards .wpeec-feature__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	font-size: 26px;
	line-height: 52px;
}

.wpeec-admin .wpeec-start-cards .wpeec-feature > div {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.wpeec-admin .wpeec-start-cards .wpeec-feature h3 {
	margin: 0 0 6px;
}

.wpeec-admin .wpeec-start-cards .wpeec-feature > div > p.wpeec-muted {
	margin: 0;
}

/* The button sits at the bottom of every card, at the same height across the row. */
.wpeec-admin .wpeec-start-cards .wpeec-feature form,
.wpeec-admin .wpeec-start-cards .wpeec-feature > div > p:last-child:not(.wpeec-muted) {
	margin: auto 0 0;
	padding-top: 18px;
}

.wpeec-admin .wpeec-start-cards .wpeec-feature form p {
	margin: 0;
}

.wpeec-start-cards .wpeec-code {
	width: 100%;
	margin: 16px 0 0;
	text-align: left;
}

/* Step 3: the three display modes, drawn like the block's picture cards. */
.wpeec-start-mode {
	display: block;
	width: 120px;
	color: var(--wpeec-accent-deep);
}

.wpeec-start-mode svg {
	display: block;
	width: 100%;
	height: auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	opacity: 0.8;
}

.wpeec-start-mode svg .is-fill {
	fill: currentColor;
	stroke: none;
}

.wpeec-start-mode svg .is-light {
	opacity: 0.35;
}

.wpeec-start-mode svg .is-card {
	fill: #fff;
}

/* The dimmed page behind the popup. */
.wpeec-start-mode svg .is-shade {
	fill: currentColor;
	stroke: none;
	opacity: 0.22;
}

.wpeec-start-mode svg .is-accent {
	fill: var(--wpeec-fill);
	opacity: 1;
}

.wpeec-admin .wpeec-start-footnote {
	margin: 20px 0 0;
	text-align: center;
	font-size: 13px;
}

/* ---------- Buttons and links follow the accent ---------- */

/* Primary buttons on the plugin's own screens are the logo's blue, like
   the icon, instead of the admin scheme's colour. */
.wpeec-admin .button-primary {
	background: var(--wpeec-fill);
	border-color: var(--wpeec-fill-dark);
	color: var(--wpeec-on-fill);
}

.wpeec-admin .button-primary:hover,
.wpeec-admin .button-primary:focus {
	background: var(--wpeec-fill-dark);
	border-color: var(--wpeec-fill-deep);
	color: var(--wpeec-on-fill);
}

.wpeec-admin .button-primary:focus {
	box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wpeec-accent);
}

.wpeec-admin .button-primary:active {
	background: var(--wpeec-fill-deep);
	border-color: var(--wpeec-fill-deep);
	color: var(--wpeec-on-fill);
}

.wpeec-admin .button-primary:disabled,
.wpeec-admin .button-primary[disabled] {
	background: color-mix(in srgb, var(--wpeec-fill) 40%, #fff) !important;
	border-color: color-mix(in srgb, var(--wpeec-fill) 40%, #fff) !important;
	color: color-mix(in srgb, var(--wpeec-ink) 55%, #fff) !important;
}

.wpeec-admin .button:not(.button-primary):focus {
	border-color: var(--wpeec-accent);
	box-shadow: 0 0 0 1px var(--wpeec-accent);
}

/* Secondary buttons and links on the plugin's screens follow the accent as well. */
.wpeec-admin .button:not(.button-primary):not(.wpeec-quiet-button):not(.wpeec-review-notice__dismiss) {
	border-color: var(--wpeec-accent);
	color: var(--wpeec-accent);
}

.wpeec-admin .button:not(.button-primary):not(.wpeec-quiet-button):not(.wpeec-review-notice__dismiss):hover {
	border-color: var(--wpeec-accent-dark);
	color: var(--wpeec-accent-dark);
	background: color-mix(in srgb, var(--wpeec-fill) 10%, #fff);
}

.wpeec-admin .wpeec-admin__body a:not(.button):not(.wpeec-link) {
	color: var(--wpeec-accent);
}

.wpeec-admin .wpeec-admin__body a:not(.button):not(.wpeec-link):hover {
	color: var(--wpeec-accent-dark);
}
