/* JakoStore Core — front-end components.
   Uses the JakoStore theme tokens when available, with sensible fallbacks for other themes. */

.jdc-license {
	flex: 1 1 100%;
	display: grid;
	gap: 10px;
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	min-width: 0;
}
.jdc-license__legend { padding: 0; margin: 0 0 4px; font-weight: 750; font-size: 0.875rem; letter-spacing: 0.02em; color: var(--md-sys-color-on-surface-variant, #555); }
.jdc-license__option {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border-radius: 20px;
	background: var(--md-sys-color-surface-container-high, #f2f2f2);
	box-shadow: inset 0 0 0 1px transparent;
	cursor: pointer;
	transition: box-shadow 0.2s ease, background-color 0.2s ease, border-radius 0.35s cubic-bezier(0.38, 1.21, 0.22, 1);
}
.jdc-license__option:hover { background: var(--md-sys-color-surface-container-highest, #eaeaea); }
.jdc-license__option input { margin-top: 3px; flex: none; }
.jdc-license__option:has(input:checked) {
	background: var(--md-sys-color-secondary-container, #ece8ff);
	box-shadow: inset 0 0 0 2px var(--md-sys-color-primary, #111);
	border-radius: 24px;
}
.jdc-license__body { display: grid; gap: 4px; flex: 1; min-width: 0; }
.jdc-license__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.jdc-license__row strong { font-size: 1rem; }
.jdc-license__price { font-weight: 800; font-size: 1.0625rem; white-space: nowrap; }
.jdc-license__desc { font-size: 0.8125rem; line-height: 1.45; color: var(--md-sys-color-on-surface-variant, #555); }
.jdc-license__more { font-size: 0.8125rem; font-weight: 700; justify-self: start; color: inherit; }

.jdc-buy-now { flex: 1 1 100%; }
form.cart .jdc-buy-now { min-height: 56px; font-size: 1rem; }

/* Features tab */
.jdc-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.jdc-features li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	border-radius: 18px;
	background: var(--md-sys-color-surface-container, #f4f4f4);
	font-weight: 650;
	font-size: 0.9375rem;
	line-height: 1.35;
}
.jdc-features svg { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 10px; background: var(--jd-accent, #C9F53B); color: var(--jd-on-accent, #141A00); }

/* Changelog */
.jdc-changelog { display: grid; gap: 14px; }
.jdc-changelog__entry { position: relative; padding: 18px 20px 14px 28px; border-radius: 20px; background: var(--md-sys-color-surface-container, #f4f4f4); }
.jdc-changelog__entry::before { content: ""; position: absolute; left: 12px; top: 22px; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--md-sys-color-outline, #999); }
.jdc-changelog__entry.is-latest::before { background: var(--jd-accent, #C9F53B); box-shadow: 0 0 0 4px color-mix(in srgb, var(--jd-accent, #C9F53B) 30%, transparent); }
.jdc-changelog__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.jdc-changelog__version { font-weight: 800; font-size: 1.0625rem; font-family: var(--md-ref-typeface-mono, monospace); }
.jdc-changelog__date { margin-left: auto; font-size: 0.8125rem; font-weight: 600; color: var(--md-sys-color-on-surface-variant, #666); }
.jdc-changelog ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.jdc-changelog li { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.jdc-tag { display: inline-block; min-width: 72px; margin-right: 8px; padding: 2px 8px; border-radius: 6px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; background: var(--md-sys-color-surface-container-highest, #e5e5e5); }
.jdc-tag--new { background: var(--jd-accent, #C9F53B); color: var(--jd-on-accent, #141A00); }
.jdc-tag--fix { background: #FFD8A8; color: #4A2500; }
.jdc-tag--improved { background: #C5F6FA; color: #062C33; }
.jdc-tag--security { background: #FFC9C9; color: #4A0000; }
.jdc-tag--removed { background: #E9ECEF; color: #343A40; }

.jdc-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: var(--md-sys-color-surface-container-highest, #e5e5e5); color: var(--md-sys-color-on-surface, #111); }
.jdc-pill--accent { background: var(--jd-accent, #C9F53B); color: var(--jd-on-accent, #141A00); }

/* Support tab */
.jdc-support__hero { display: grid; gap: 4px; margin-bottom: 18px; padding: 18px 20px; border-radius: 20px; background: var(--jd-accent, #C9F53B); color: var(--jd-on-accent, #141A00); }
.jdc-support__hero strong { font-size: 1.125rem; }
.jdc-support ul { padding-left: 1.2em; }

/* License key (orders / emails) */
.jdc-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.jdc-key__label { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.7; }
.jdc-key__code { padding: 4px 10px; border-radius: 8px; background: var(--md-sys-color-surface-container-highest, #eee); font-family: var(--md-ref-typeface-mono, monospace); font-weight: 700; letter-spacing: 0.04em; }

/* My Account → Licenses */
.jdc-licenses { display: grid; gap: 14px; }
.jdc-license-card { display: grid; gap: 14px; padding: 20px 22px; border-radius: 28px; background: var(--md-sys-color-surface-container-low, #f6f6f6); }
.jdc-license-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.jdc-license-card__title { margin: 0 0 4px; font-size: 1.125rem; }
.jdc-license-card__title a { color: inherit; text-decoration: none; }
.jdc-license-card__meta { font-size: 0.8125rem; color: var(--md-sys-color-on-surface-variant, #666); font-weight: 600; }
.jdc-license-card__key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--md-sys-color-surface-container-highest, #eaeaea); }
.jdc-license-card__key code { flex: 1; min-width: 0; font-family: var(--md-ref-typeface-mono, monospace); font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; background: none; padding: 0; overflow-wrap: anywhere; }
.jdc-license-card__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.jdc-license-card__facts dt { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--md-sys-color-on-surface-variant, #666); }
.jdc-license-card__facts dd { margin: 2px 0 0; font-weight: 700; }
.jdc-license-card__facts dd.is-ok { color: var(--md-sys-color-success, #1B7F3B); }
.jdc-license-card__facts dd.is-off { color: var(--md-sys-color-error, #BA1A1A); }
.jdc-license-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* License comparison table */
.jdc-license-table-wrap { overflow-x: auto; margin: 2em auto; border-radius: 28px; background: var(--md-sys-color-surface-container-low, #f6f6f6); }
.jdc-license-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.jdc-license-table th,
.jdc-license-table td { padding: 16px 18px; border-bottom: 1px solid var(--md-sys-color-outline-variant, #ddd); text-align: left; }
.jdc-license-table tr:last-child th,
.jdc-license-table tr:last-child td { border-bottom: 0; }
.jdc-license-table thead th { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.jdc-license-table td,
.jdc-license-table thead th:not(:first-child) { text-align: center; width: 18%; }
.jdc-license-table .is-accent { background: color-mix(in srgb, var(--jd-accent, #C9F53B) 16%, transparent); }
.jdc-license-table tbody th { font-weight: 600; }
.jdc-yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; background: var(--jd-accent, #C9F53B); color: var(--jd-on-accent, #141A00); font-weight: 900; }
.jdc-no { color: var(--md-sys-color-outline, #999); font-weight: 700; }

/* Newsletter fallback (non-JakoStore themes) */
.jdc-newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.jdc-newsletter-form input[type="email"] { flex: 1; min-width: 200px; }
.jdc-notice { font-weight: 650; }
