/**
 * Tarifs Pro admin styles.
 *
 * Sits on top of the WordPress admin rather than fighting it: same rhythm, same
 * controls, more air and a clearer hierarchy.
 */

.tarifs-pro-wrap {
	--tp-accent: #2f5bea;
	--tp-accent-soft: #eaf0ff;
	--tp-ok: #1a7f52;
	--tp-warning: #a26a00;
	--tp-error: #b32d2e;
	--tp-border: #dcdfe5;
	--tp-muted: #646970;
	--tp-radius: 10px;
	max-width: 1400px;
}

/* Header ------------------------------------------------------------------ */

.tarifs-pro-header {
	margin: 16px 0 4px;
}

.tarifs-pro-header__title {
	margin: 0;
	padding: 0;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
}

.tarifs-pro-header__subtitle {
	margin: 6px 0 0;
	color: var(--tp-muted);
	font-size: 14px;
	max-width: 70ch;
}

/* The product logo, on the three screens where a merchant meets the product. Sized in CSS
   rather than by the file so the same asset serves a normal and a high-density screen. */
.tarifs-pro-logo {
	display: block;
	height: 34px;
	width: auto;
	margin: 0 0 8px;
}

.tarifs-pro-wizard .tarifs-pro-logo {
	margin: 18px 0 10px;
}

/* The "how this screen works" link: present on every screen, loud on none.
   Deliberately left in the normal flow — a header positioned to sit top right would
   paint over the WordPress "Help" button, which floats there already. */
.tarifs-pro-header__help {
	margin: 10px 0 0;
	font-size: 13px;
}

.tarifs-pro-header__help a {
	display: inline-block;
	padding: 3px 10px 3px 8px;
	border-radius: 999px;
	background: var(--tp-accent-soft);
	color: var(--tp-accent);
	text-decoration: none;
	font-weight: 500;
}

.tarifs-pro-header__help a:hover {
	background: var(--tp-accent);
	color: #fff;
}

.tarifs-pro-header__help a:before {
	content: "?";
	display: inline-block;
	width: 15px;
	margin-right: 5px;
	font-weight: 700;
	text-align: center;
}

/* Tabs -------------------------------------------------------------------- */

.tarifs-pro-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 18px 0 20px;
	border-bottom: 1px solid var(--tp-border);
}

.tarifs-pro-tabs__item {
	padding: 9px 14px;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 6px 6px 0 0;
	color: var(--tp-muted);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
}

.tarifs-pro-tabs__item:hover {
	background: #f6f7f7;
	color: #1d2327;
}

.tarifs-pro-tabs__item.is-active {
	background: #fff;
	border-color: var(--tp-border);
	color: #1d2327;
	margin-bottom: -1px;
	border-bottom: 1px solid #fff;
}

/* Panels ------------------------------------------------------------------ */

.tarifs-pro-panel {
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	padding: 20px 22px;
	margin: 0 0 20px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tarifs-pro-panel h2 {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
}

.tarifs-pro-panel h3 {
	margin: 20px 0 8px;
	font-size: 14px;
	font-weight: 600;
}

.tarifs-pro-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
}

.tarifs-pro-columns--wide-left {
	grid-template-columns: 3fr 2fr;
}

@media screen and (max-width: 1100px) {
	.tarifs-pro-columns,
	.tarifs-pro-columns--wide-left {
		grid-template-columns: 1fr;
	}
}

.tarifs-pro-empty {
	color: var(--tp-muted);
	background: #f6f7f7;
	border-radius: 8px;
	padding: 16px;
	margin: 12px 0 0;
}

.tarifs-pro-footer {
	margin: 24px 0 8px;
	padding-top: 14px;
	border-top: 1px solid var(--tp-border);
	color: var(--tp-muted);
	font-size: 12px;
	max-width: 90ch;
}

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

.tarifs-pro-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
	margin: 0 0 22px;
}

.tarifs-pro-card {
	display: block;
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	padding: 16px 18px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

a.tarifs-pro-card:hover {
	border-color: var(--tp-accent);
	transform: translateY(-1px);
}

.tarifs-pro-card--alert {
	border-color: #f0b849;
	background: #fffaf0;
}

.tarifs-pro-card__value {
	display: block;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	color: #1d2327;
}

.tarifs-pro-card__label {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--tp-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Tables ------------------------------------------------------------------ */

.tarifs-pro-table {
	border-radius: 8px;
	overflow: hidden;
	margin-top: 12px;
}

.tarifs-pro-table th {
	font-weight: 600;
}

.tarifs-pro-table__actions {
	white-space: nowrap;
	text-align: right;
}

.tarifs-pro-row--disabled td {
	opacity: 0.55;
}

.tarifs-pro-row--alert td {
	background: #fff6f6;
}

.tarifs-pro-row--ours td {
	background: var(--tp-accent-soft);
}

.tarifs-pro-rules__handle {
	width: 28px;
	cursor: move;
	color: #a7aaad;
}

.tarifs-pro-rules tbody tr:hover .tarifs-pro-rules__handle {
	color: var(--tp-accent);
}

.tarifs-pro-list,
.tarifs-pro-inline-list {
	margin: 8px 0;
	padding: 0;
	list-style: none;
}

.tarifs-pro-list li,
.tarifs-pro-inline-list li {
	padding: 6px 0;
	border-bottom: 1px solid #f0f0f1;
}

/* Badges ------------------------------------------------------------------ */

.tarifs-pro-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--tp-accent-soft);
	color: var(--tp-accent);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.6;
	vertical-align: middle;
}

.tarifs-pro-badge--alert {
	background: #fdecec;
	color: var(--tp-error);
}

.tarifs-pro-badge--ok {
	background: #e6f5ec;
	color: var(--tp-ok);
}

.tarifs-pro-badge--muted {
	background: #f0f0f1;
	color: var(--tp-muted);
}

/* Forms ------------------------------------------------------------------- */

.tarifs-pro-form p {
	margin: 0 0 14px;
}

.tarifs-pro-form label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 4px;
}

.tarifs-pro-form input[type="text"],
.tarifs-pro-form input[type="email"],
.tarifs-pro-form input[type="number"],
.tarifs-pro-form input[type="date"],
.tarifs-pro-form input[type="password"],
.tarifs-pro-form select,
.tarifs-pro-form textarea {
	width: 100%;
	max-width: 100%;
}

.tarifs-pro-form .description {
	display: block;
	margin-top: 4px;
	color: var(--tp-muted);
	font-size: 12px;
	font-style: normal;
}

.tarifs-pro-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 0 18px;
}

.tarifs-pro-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

.tarifs-pro-form__submit {
	margin-top: 18px;
}

.tarifs-pro-form--inline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: 18px;
}

.tarifs-pro-form--inline p {
	margin: 0;
}

.tarifs-pro-checkbox {
	font-weight: 400 !important;
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 6px;
}

.tarifs-pro-fieldset {
	border: 1px solid var(--tp-border);
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0 0 16px;
}

.tarifs-pro-fieldset legend {
	font-weight: 600;
	font-size: 13px;
	padding: 0 6px;
}

.tarifs-pro-help,
.tarifs-pro-legal-note {
	background: #f6f7f7;
	border-left: 3px solid var(--tp-accent);
	padding: 10px 12px;
	margin: 0 0 16px !important;
	border-radius: 0 6px 6px 0;
	font-style: normal !important;
}

.tarifs-pro-multiselect {
	min-height: 110px;
}

/* Health ------------------------------------------------------------------ */

.tarifs-pro-health {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.tarifs-pro-health__item {
	position: relative;
	padding: 10px 0 10px 26px;
	border-bottom: 1px solid #f0f0f1;
	font-size: 13px;
}

.tarifs-pro-health__item:before {
	content: "";
	position: absolute;
	left: 4px;
	top: 15px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--tp-ok);
}

.tarifs-pro-health__item--warning:before {
	background: #f0b849;
}

.tarifs-pro-health__item--error:before {
	background: var(--tp-error);
}

.tarifs-pro-health__item strong {
	display: block;
}

.tarifs-pro-health__item span {
	color: var(--tp-muted);
}

/* Alerts ------------------------------------------------------------------ */

.tarifs-pro-alert {
	border-radius: 8px;
	padding: 12px 14px;
	margin: 12px 0;
	font-size: 13px;
	border-left: 4px solid var(--tp-muted);
	background: #f6f7f7;
}

.tarifs-pro-alert--info {
	border-color: var(--tp-accent);
	background: var(--tp-accent-soft);
}

.tarifs-pro-alert--warning {
	border-color: #f0b849;
	background: #fffaf0;
}

.tarifs-pro-alert--error {
	border-color: var(--tp-error);
	background: #fdecec;
}

/* Applications ------------------------------------------------------------ */

.tarifs-pro-verifications {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 14px;
}

@media screen and (max-width: 782px) {
	.tarifs-pro-verifications {
		grid-template-columns: 1fr;
	}
}

.tarifs-pro-verification {
	border: 1px solid var(--tp-border);
	border-left-width: 4px;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 13px;
}

.tarifs-pro-verification p {
	margin: 6px 0 0;
}

.tarifs-pro-verification--valid {
	border-left-color: var(--tp-ok);
}

.tarifs-pro-verification--invalid {
	border-left-color: var(--tp-error);
}

.tarifs-pro-verification--unknown {
	border-left-color: #f0b849;
}

.tarifs-pro-application__secondary {
	margin-top: 10px;
}

/* Simulator --------------------------------------------------------------- */

.tarifs-pro-result__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
	margin: 14px 0 18px;
}

.tarifs-pro-result__label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--tp-muted);
}

.tarifs-pro-result__value {
	display: block;
	font-size: 18px;
	font-weight: 600;
	margin-top: 2px;
}

.tarifs-pro-result__value--big {
	font-size: 26px;
	color: var(--tp-accent);
}

.tarifs-pro-result__headline {
	font-size: 14px;
	background: var(--tp-accent-soft);
	border-radius: 8px;
	padding: 10px 12px;
}

.tarifs-pro-trace--won td {
	background: #e6f5ec;
}

.tarifs-pro-trace--rejected td,
.tarifs-pro-trace--ignored td {
	color: var(--tp-muted);
}

/* Legal blocks ------------------------------------------------------------ */

.tarifs-pro-legal-block {
	margin-bottom: 16px;
}

.tarifs-pro-legal-block textarea {
	width: 100%;
	background: #f6f7f7;
	font-size: 12px;
}

/* Ready-to-paste snippets: readable without scrolling or resizing. */
textarea.tarifs-pro-copyable {
	display: block;
	width: 100%;
	max-width: 780px;
	margin-bottom: 8px;
	padding: 10px 12px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 1.6;
	white-space: pre;
	overflow-x: auto;
	resize: vertical;
}

/* Wizard ------------------------------------------------------------------ */

.tarifs-pro-wizard {
	max-width: 780px;
}

.tarifs-pro-wizard__steps {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 18px 0 22px;
	padding: 0;
	counter-reset: step;
}

.tarifs-pro-wizard__step {
	flex: 1;
	counter-increment: step;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f6f7f7;
	color: var(--tp-muted);
	font-size: 13px;
	font-weight: 500;
}

.tarifs-pro-wizard__step:before {
	content: counter(step) ". ";
	font-weight: 700;
}

.tarifs-pro-wizard__step.is-active {
	background: var(--tp-accent);
	color: #fff;
}

.tarifs-pro-wizard__step.is-done {
	background: #e6f5ec;
	color: var(--tp-ok);
}

.tarifs-pro-wizard__todo li {
	margin-bottom: 10px;
}

/* Order box --------------------------------------------------------------- */

.tarifs-pro-order-box {
	font-size: 13px;
}

.tarifs-pro-order-box__late {
	background: #fdecec;
	border-radius: 6px;
	padding: 8px 10px;
}

.tarifs-pro-order-lines {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.tarifs-pro-order-lines li {
	padding: 6px 0;
	border-bottom: 1px solid #f0f0f1;
}

/* First-run invitation: present without shouting, and it removes itself. */
.tarifs-pro-panel--highlight {
	border-left: 4px solid #2271b1;
	background: #f6f9fc;
}

.tarifs-pro-panel--highlight h2 {
	margin-top: 0;
}

/* Reminder wording: placeholders legend and message boxes. */
.tarifs-pro-placeholders {
	columns: 2;
	margin: 6px 0 12px;
	font-size: 12px;
}

.tarifs-pro-placeholders code {
	font-size: 11px;
}

.tarifs-pro-settings textarea {
	width: 100%;
	max-width: 640px;
	font-family: inherit;
}

.tarifs-pro-settings h3 {
	margin: 18px 0 6px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #50575e;
}

/* Credit granted but the method is off: the one contradiction that costs a sale. */
.tarifs-pro-panel--alert {
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	margin-bottom: 20px;
}

.tarifs-pro-panel--alert h2 {
	margin-top: 0;
}

.tarifs-pro-status {
	display: block;
	margin-top: 4px;
}

.tarifs-pro-status--ok {
	color: #00753a;
}

.tarifs-pro-status--off {
	color: #b32d2e;
}

/* Check lists: a <select multiple> needs Ctrl+click, which no merchant guesses. */
.tarifs-pro-checklist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 2px 18px;
	margin-top: 8px;
	padding: 12px 14px;
	max-height: 260px;
	overflow-y: auto;
	border: 1px solid var(--tp-border);
	border-radius: 8px;
	background: #fff;
}

.tarifs-pro-checklist .tarifs-pro-checkbox {
	margin-bottom: 0;
	padding: 4px 0;
	align-items: center;
}

.tarifs-pro-checklist__count {
	color: var(--tp-muted);
	font-size: 12px;
}

.tarifs-pro-filter {
	display: block;
	width: 100%;
	max-width: 320px;
	margin-top: 8px;
}

/* Folded sections: exceptions and other things a merchant rarely needs. */
.tarifs-pro-details {
	margin: 16px 0 0;
	padding: 10px 14px;
	border: 1px solid var(--tp-border);
	border-radius: 8px;
	background: #fafafa;
}

.tarifs-pro-details > summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
}

.tarifs-pro-details[open] > summary {
	margin-bottom: 8px;
}

/* Handbook ---------------------------------------------------------------- */

.tarifs-pro-guide__search-panel {
	padding-bottom: 14px;
}

.tarifs-pro-guide__search-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
}

.tarifs-pro-guide__search {
	width: 100%;
	max-width: 520px;
	padding: 9px 12px;
	border: 1px solid var(--tp-border);
	border-radius: 8px;
	font-size: 15px;
}

.tarifs-pro-guide__search:focus {
	border-color: var(--tp-accent);
	box-shadow: 0 0 0 1px var(--tp-accent);
	outline: none;
}

.tarifs-pro-guide__best {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 500;
}

.tarifs-pro-guide__count,
.tarifs-pro-guide__empty {
	margin: 8px 0 0;
	color: var(--tp-muted);
	font-size: 13px;
}

.tarifs-pro-guide__empty {
	color: var(--tp-warning);
}

/* The short version: four steps, each saying whether it is done here. */
.tarifs-pro-guide__steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: tp-step;
}

.tarifs-pro-guide__step {
	position: relative;
	padding: 14px 16px 16px 46px;
	background: #fff;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	counter-increment: tp-step;
}

.tarifs-pro-guide__step:before {
	content: counter(tp-step);
	position: absolute;
	left: 14px;
	top: 15px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tp-accent-soft);
	color: var(--tp-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

.tarifs-pro-guide__step.is-done:before {
	content: "\2713";
	background: var(--tp-ok);
	color: #fff;
}

.tarifs-pro-guide__step h3 {
	margin: 0 0 6px;
}

.tarifs-pro-guide__step p {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--tp-muted);
}

.tarifs-pro-guide__after {
	margin: 16px 0 0;
	font-size: 13px;
}

.tarifs-pro-guide__map {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.tarifs-pro-guide__map li {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f1;
	color: var(--tp-muted);
}

.tarifs-pro-guide__map li:last-child {
	border-bottom: none;
}

.tarifs-pro-guide__map a {
	text-decoration: none;
}

/* Drawers: closed by default, so the page stays a page and not a manual. */
.tarifs-pro-guide__entry {
	border-top: 1px solid #f0f0f1;
}

.tarifs-pro-guide__entry:first-of-type {
	border-top: none;
}

.tarifs-pro-guide__entry > summary {
	position: relative;
	padding: 12px 0 12px 22px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	list-style: none;
}

.tarifs-pro-guide__entry > summary::-webkit-details-marker {
	display: none;
}

.tarifs-pro-guide__entry > summary:before {
	content: "";
	position: absolute;
	left: 4px;
	top: 18px;
	width: 6px;
	height: 6px;
	border-right: 2px solid var(--tp-accent);
	border-bottom: 2px solid var(--tp-accent);
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}

.tarifs-pro-guide__entry[open] > summary:before {
	transform: rotate(45deg);
	top: 16px;
}

.tarifs-pro-guide__entry > summary:hover {
	color: var(--tp-accent);
}

.tarifs-pro-guide__answer {
	padding: 0 0 14px 22px;
	max-width: 80ch;
}

.tarifs-pro-guide__answer p {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.6;
}

.tarifs-pro-guide__links {
	margin-top: 12px;
}

.tarifs-pro-guide__links .button {
	margin: 0 6px 6px 0;
}

/* Arriving from a link: the section being pointed at says so for a moment. */
.tarifs-pro-guide__entry:target,
.tarifs-pro-panel:target {
	box-shadow: 0 0 0 2px var(--tp-accent);
	border-radius: var(--tp-radius);
	scroll-margin-top: 60px;
}

.tarifs-pro-guide__entry:target {
	padding: 4px 8px;
}

[hidden] {
	display: none !important;
}

/* 1.7.0 ------------------------------------------------------------------ */

.tarifs-pro-status--warning {
	color: var(--tp-warning);
}

.tarifs-pro-status--error {
	color: var(--tp-error);
}

.tarifs-pro-masked {
	font-weight: 600;
}

.tarifs-pro-flow {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: tp-flow;
}

.tarifs-pro-flow li {
	position: relative;
	padding: 14px 16px 14px 52px;
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius);
	background: #fff;
	counter-increment: tp-flow;
}

.tarifs-pro-flow li::before {
	content: counter(tp-flow);
	position: absolute;
	left: 14px;
	top: 14px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--tp-accent);
	color: #fff;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
}

.tarifs-pro-flow strong,
.tarifs-pro-flow span {
	display: block;
}

.tarifs-pro-flow span {
	margin-top: 4px;
	color: var(--tp-muted);
}

.tarifs-pro-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 12px;
}

.tarifs-pro-pro-prices .num {
	text-align: right;
	white-space: nowrap;
}

.tarifs-pro-price-input {
	width: 7em;
	text-align: right;
}

.tarifs-pro-row--child td {
	background: #fafbfc;
	font-size: 12px;
}

.tarifs-pro-deferred-summary {
	margin-top: 12px;
}
