/*!
 * SK24 Customer API – My-Account Styles (Redesign 2026-05).
 * Konsistent mit dem SK24-Kunden-Dashboard (Card-Layout + Section-Header).
 */

#sk24-ca-keys-wrap-8472.sk24-ca-account,
#sk24-ca-examples-wrap-8473.sk24-ca-account {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #1c2431;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sk24-ca-hidden {
	display: none !important;
}

/* =========================================================
 * Info-Banner (oben, blau).
 * ========================================================= */

.sk24-ca-banner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 10px;
	padding: 10px 14px;
}

.sk24-ca-banner-icon {
	display: inline-flex;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #2563eb;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.sk24-ca-banner-icon svg {
	width: 15px;
	height: 15px;
	stroke: #fff;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sk24-ca-banner-text p {
	margin: 0;
	font-size: 0.85rem;
	color: #1e3a8a;
	font-weight: 500;
	line-height: 1.4;
}

.sk24-ca-banner-sub {
	color: #1e40af !important;
	font-weight: 400 !important;
	font-size: 0.78rem !important;
}

/* =========================================================
 * Layout-Grid.
 * ========================================================= */

.sk24-ca-grid {
	display: grid;
	gap: 12px;
}

.sk24-ca-grid-2 {
	grid-template-columns: 3fr 2fr;
}

/* =========================================================
 * Card.
 * ========================================================= */

.sk24-ca-card {
	background: #fff;
	border: 1px solid #e8edf2;
	border-radius: 10px;
	padding: 14px 16px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.sk24-ca-card-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eef1f5;
}

.sk24-ca-card-icon {
	display: inline-flex;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: #eef4ff;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.sk24-ca-card-icon svg {
	width: 17px;
	height: 17px;
	stroke: #2563eb;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sk24-ca-card-titles {
	flex: 1;
	min-width: 0;
}

.sk24-ca-card-titles h2 {
	margin: 0 0 2px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #1c2431;
	line-height: 1.25;
}

.sk24-ca-card-titles p {
	margin: 0;
	font-size: 0.76rem;
	color: #6b7785;
}

.sk24-ca-card-foot {
	margin: 0;
	font-size: 0.78rem;
}

.sk24-ca-card-foot a {
	color: #2563eb;
	text-decoration: none;
}

.sk24-ca-card-foot a:hover {
	text-decoration: underline;
}

/* =========================================================
 * Endpoint-Liste (linke Card).
 * ========================================================= */

.sk24-ca-endpoints {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.sk24-ca-endpoints li {
	display: grid;
	grid-template-columns: 50px 1fr auto 28px;
	gap: 8px;
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e8edf2;
	border-radius: 7px;
	padding: 5px 8px;
	min-width: 0;
}

.sk24-ca-method {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 3px 6px;
	border-radius: 4px;
	letter-spacing: 0.4px;
}

.sk24-ca-method-get {
	background: #fff3d6;
	color: #c2410c;
}

.sk24-ca-endpoint-path {
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.75rem;
	color: #1c2431;
	background: transparent;
	padding: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.sk24-ca-endpoint-desc {
	font-size: 0.72rem;
	color: #6b7785;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: right;
}

/* Mini-Outline (Endpoint-Liste, 26×26) – konsistent zu Shop-Outline. */
body .sk24-ca-account .sk24-ca-copy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	min-height: 26px;
	box-sizing: border-box;
	border: 1px solid #1f2429;
	background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
	border-radius: 7px;
	cursor: pointer;
	padding: 0;
	color: #1f2429;
	line-height: 1;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .9),
		0 1px 0 rgba(0, 0, 0, .06),
		0 2px 6px rgba(15, 23, 42, .08);
	transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.sk24-ca-account .sk24-ca-copy-btn:hover,
.sk24-ca-account .sk24-ca-copy-btn:focus-visible {
	background: linear-gradient(180deg, #3a3f44 0%, #1f2429 45%, #0f1318 100%);
	color: #ffffff;
	border-color: #0a0d10;
	outline: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .12),
		inset 0 -1px 0 rgba(0, 0, 0, .35),
		0 2px 0 rgba(0, 0, 0, .25),
		0 5px 14px rgba(0, 0, 0, .26);
}

.sk24-ca-copy-btn svg {
	width: 13px;
	height: 13px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* =========================================================
 * Tabs (rechte Card – Beispiele).
 * ========================================================= */

.sk24-ca-tabs {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

/* Tabs – inaktiv: Shop-Outline, aktiv: Shop-Primary (orange).
 * body-Präfix neutralisiert Grogin-Theme-Default für <button>. */
body .sk24-ca-account .sk24-ca-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	min-height: 32px;
	box-sizing: border-box;
	padding: 0 14px;
	font-size: 0.78rem;
	font-weight: 300;
	line-height: 1.2;
	background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
	color: #1f2429;
	border: 1px solid #1f2429;
	border-radius: 9px;
	cursor: pointer;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .9),
		0 1px 0 rgba(0, 0, 0, .06),
		0 2px 6px rgba(15, 23, 42, .08);
	transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.sk24-ca-account .sk24-ca-tab:hover,
.sk24-ca-account .sk24-ca-tab:focus-visible {
	background: linear-gradient(180deg, #3a3f44 0%, #1f2429 45%, #0f1318 100%);
	color: #ffffff;
	border-color: #0a0d10;
	outline: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .12),
		inset 0 -1px 0 rgba(0, 0, 0, .35),
		0 2px 0 rgba(0, 0, 0, .25),
		0 5px 14px rgba(0, 0, 0, .26);
}

.sk24-ca-account .sk24-ca-tab.active {
	background: linear-gradient(180deg, #ffd957 0%, #ffb327 45%, #ff9b18 100%);
	color: #1a1a1a;
	border-color: #d97a00;
	text-shadow: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .55),
		inset 0 -1px 0 rgba(170, 80, 0, .18),
		0 1px 0 rgba(170, 80, 0, .18),
		0 3px 10px rgba(255, 140, 0, .16);
}

.sk24-ca-account .sk24-ca-tab.active:hover,
.sk24-ca-account .sk24-ca-tab.active:focus-visible {
	background: linear-gradient(180deg, #ffe07a 0%, #ffbe45 45%, #ffa628 100%);
	color: #1a1a1a;
	border-color: #d97a00;
	filter: saturate(1.05);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .65),
		inset 0 -1px 0 rgba(170, 80, 0, .18),
		0 2px 0 rgba(170, 80, 0, .22),
		0 5px 14px rgba(255, 140, 0, .26);
}

/* =========================================================
 * Code-Blöcke (dunkles Theme + Copy-Button).
 * ========================================================= */

.sk24-ca-code-wrap {
	position: relative;
}

.sk24-ca-code {
	background: #1f2937;
	color: #e5e7eb;
	padding: 10px 38px 10px 12px;
	overflow-x: auto;
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.78rem;
	line-height: 1.5;
	border-radius: 7px;
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

.sk24-ca-code code {
	font-family: inherit;
	background: transparent;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

/* Shop-Outline-Style (hell → dark glossy on hover) – konsistent zu sk24-button-design.css.
 * body-Präfix neutralisiert Grogin-Theme-Default für <button>.
 */
body .sk24-ca-account .sk24-ca-btn-copy-snippet {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-top: 6px;
	height: 30px;
	min-height: 30px;
	box-sizing: border-box;
	background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
	color: #1f2429;
	border: 1px solid #1f2429;
	border-radius: 9px;
	padding: 0 12px;
	font-size: 0.75rem;
	line-height: 1.2;
	cursor: pointer;
	font-weight: 300;
	text-shadow: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .9),
		0 1px 0 rgba(0, 0, 0, .06),
		0 2px 6px rgba(15, 23, 42, .08);
	transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.sk24-ca-account .sk24-ca-btn-copy-snippet:hover,
.sk24-ca-account .sk24-ca-btn-copy-snippet:focus-visible {
	background: linear-gradient(180deg, #3a3f44 0%, #1f2429 45%, #0f1318 100%);
	color: #ffffff;
	border-color: #0a0d10;
	outline: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .12),
		inset 0 -1px 0 rgba(0, 0, 0, .35),
		0 2px 0 rgba(0, 0, 0, .25),
		0 5px 14px rgba(0, 0, 0, .26);
}

.sk24-ca-btn-copy-snippet svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Floating Copy-Button im Output-Panel (dunkler Hintergrund) – an dark glossy angeglichen. */
body .sk24-ca-account .sk24-ca-code-wrap-output .sk24-ca-btn-copy-snippet {
	position: absolute;
	top: 6px;
	right: 6px;
	margin: 0;
	width: 28px;
	height: 28px;
	min-height: 28px;
	padding: 0;
	background: linear-gradient(180deg, #3a3f44 0%, #1f2429 45%, #0f1318 100%);
	color: #f3f4f6;
	border-color: #0a0d10;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .12),
		inset 0 -1px 0 rgba(0, 0, 0, .35),
		0 1px 0 rgba(0, 0, 0, .18),
		0 3px 10px rgba(0, 0, 0, .22);
}

.sk24-ca-account .sk24-ca-code-wrap-output .sk24-ca-btn-copy-snippet:hover,
.sk24-ca-account .sk24-ca-code-wrap-output .sk24-ca-btn-copy-snippet:focus-visible {
	background: linear-gradient(180deg, #4a4f54 0%, #292f35 45%, #161b21 100%);
	color: #ffffff;
	border-color: #0a0d10;
	filter: saturate(1.05) brightness(1.05);
}

/* =========================================================
 * API-Tester / Form-Card.
 * ========================================================= */

.sk24-ca-tester-form {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 10px 14px;
	align-items: end;
}

.sk24-ca-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.sk24-ca-field label {
	font-size: 0.78rem;
	font-weight: 500;
	color: #374151;
}

body .sk24-ca-account .sk24-ca-field input[type="text"],
body .sk24-ca-account .sk24-ca-field input[type="password"],
body .sk24-ca-account .sk24-ca-field select {
	width: 100%;
	height: 38px;
	min-height: 38px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 7px;
	padding: 0 10px;
	font-size: 0.82rem;
	line-height: 1.2;
	color: #1c2431;
	transition: border-color .15s, box-shadow .15s;
}

.sk24-ca-field input:focus,
.sk24-ca-field select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.sk24-ca-pw-wrap {
	position: relative;
}

.sk24-ca-pw-wrap input {
	padding-right: 32px !important;
}

.sk24-ca-pw-toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	padding: 3px;
	cursor: pointer;
	color: #6b7785;
	display: inline-flex;
	line-height: 0;
}

.sk24-ca-pw-toggle:hover {
	color: #1c2431;
}

.sk24-ca-pw-toggle svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Shop-Primary-Style (orange) – konsistent zu sk24-button-design.css.
 * body-Präfix erhöht Spezifität, damit der Grogin-Theme-Default für <button>
 * (line-height: var(--theme-form-button-height) = 42px, padding 0 1.125rem)
 * nicht greift und die Buttonhöhe an die Input-Höhe (38px) angeglichen wird.
 */
body .sk24-ca-account .sk24-ca-btn-send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 38px;
	min-height: 38px;
	box-sizing: border-box;
	background: linear-gradient(180deg, #ffd957 0%, #ffb327 45%, #ff9b18 100%);
	color: #1a1a1a;
	border: 1px solid #d97a00;
	border-radius: 9px;
	padding: 0 16px;
	font-size: 0.82rem;
	font-weight: 300;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	text-shadow: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .55),
		inset 0 -1px 0 rgba(170, 80, 0, .18),
		0 1px 0 rgba(170, 80, 0, .18),
		0 3px 10px rgba(255, 140, 0, .16);
	transition: transform .12s ease, box-shadow .15s ease, filter .15s ease, background .15s ease;
}

.sk24-ca-account .sk24-ca-btn-send:hover,
.sk24-ca-account .sk24-ca-btn-send:focus-visible {
	background: linear-gradient(180deg, #ffe07a 0%, #ffbe45 45%, #ffa628 100%);
	color: #1a1a1a;
	filter: saturate(1.05);
	outline: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .65),
		inset 0 -1px 0 rgba(170, 80, 0, .18),
		0 2px 0 rgba(170, 80, 0, .22),
		0 5px 14px rgba(255, 140, 0, .26);
}

.sk24-ca-account .sk24-ca-btn-send:active {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .45),
		inset 0 -1px 0 rgba(170, 80, 0, .18),
		0 1px 0 rgba(170, 80, 0, .22),
		0 2px 6px rgba(255, 140, 0, .18);
}

.sk24-ca-account .sk24-ca-btn-send[disabled] {
	background: linear-gradient(180deg, #f3d9aa 0%, #e8c386 45%, #dfb670 100%);
	border-color: #c9a05f;
	box-shadow: none;
	cursor: not-allowed;
	filter: saturate(.7);
}

.sk24-ca-btn-send svg {
	width: 13px;
	height: 13px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sk24-ca-response {
	margin-top: 4px;
}

.sk24-ca-response-head {
	margin-bottom: 4px;
}

.sk24-ca-response-label {
	font-size: 0.78rem;
	font-weight: 500;
	color: #374151;
}

.sk24-ca-test-output {
	min-height: 80px;
	max-height: 360px;
	overflow: auto;
}

/* =========================================================
 * API-Key-Verwaltung (Keys-Liste-Tabelle, Reveal, Status).
 * ========================================================= */

.sk24-ca-reveal {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sk24-ca-warning {
	margin: 0;
	color: #9a3412;
	font-size: 0.8rem;
	font-weight: 500;
}

.sk24-ca-table-wrap {
	overflow-x: auto;
}

.sk24-ca-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.82rem;
}

.sk24-ca-table th,
.sk24-ca-table td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid #f1f5f9;
}

.sk24-ca-table th {
	background: #f8fafc;
	font-size: 0.76rem;
	font-weight: 600;
	color: #374151;
}

.sk24-ca-table td code {
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.78rem;
	background: #f3f4f6;
	padding: 1px 5px;
	border-radius: 4px;
}

.sk24-ca-status {
	display: inline-flex;
	padding: 2px 8px;
	border-radius: 99px;
	font-size: 0.7rem;
	font-weight: 600;
}

.sk24-ca-status-active {
	background: #dcfce7;
	color: #166534;
}

.sk24-ca-status-revoked {
	background: #fee2e2;
	color: #991b1b;
}

/* Destruktive Aktion (Sperren) – Outline-Look in Shop-Optik, rot getönt.
 * body-Präfix neutralisiert Grogin-Theme-Default für <button>. */
body .sk24-ca-account .sk24-ca-btn-revoke {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	min-height: 30px;
	box-sizing: border-box;
	padding: 0 12px;
	background: linear-gradient(180deg, #ffffff 0%, #fdecec 100%);
	color: #b91c1c;
	border: 1px solid #b91c1c;
	border-radius: 9px;
	font-size: 0.75rem;
	font-weight: 300;
	line-height: 1.2;
	cursor: pointer;
	text-shadow: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .9),
		0 1px 0 rgba(0, 0, 0, .04),
		0 2px 6px rgba(185, 28, 28, .12);
	transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.sk24-ca-account .sk24-ca-btn-revoke:hover,
.sk24-ca-account .sk24-ca-btn-revoke:focus-visible {
	background: linear-gradient(180deg, #dc2626 0%, #b91c1c 45%, #991b1b 100%);
	color: #ffffff;
	border-color: #7f1d1d;
	outline: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .18),
		inset 0 -1px 0 rgba(0, 0, 0, .25),
		0 2px 0 rgba(127, 29, 29, .25),
		0 5px 14px rgba(185, 28, 28, .26);
}

.sk24-ca-empty {
	margin: 0;
	font-size: 0.82rem;
	color: #6b7785;
	font-style: italic;
}

/* =========================================================
 * Footer-Link.
 * ========================================================= */

.sk24-ca-footer-link {
	margin: 4px 0 0;
	font-size: 0.82rem;
}

.sk24-ca-footer-link a {
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
}

.sk24-ca-footer-link a:hover {
	text-decoration: underline;
}

/* =========================================================
 * Responsive.
 * ========================================================= */

@media (max-width: 1100px) {
	.sk24-ca-grid-2 {
		grid-template-columns: 1fr;
	}

	.sk24-ca-tester-form {
		grid-template-columns: 1fr;
	}

	.sk24-ca-endpoints li {
		grid-template-columns: 44px 1fr 26px;
		row-gap: 4px;
	}

	.sk24-ca-endpoint-desc {
		grid-column: 1 / -1;
		text-align: left;
	}
}

@media (max-width: 600px) {
	.sk24-ca-table thead {
		display: none;
	}

	.sk24-ca-table tr {
		display: block;
		border: 1px solid #e8edf2;
		border-radius: 8px;
		margin-bottom: 8px;
		padding: 8px;
	}

	.sk24-ca-table td {
		display: flex;
		justify-content: space-between;
		gap: 10px;
		border: 0;
		padding: 4px 0;
		font-size: 0.8rem;
	}

	.sk24-ca-table td:before {
		content: attr(data-label);
		font-weight: 600;
		color: #6b7785;
	}
}
