/*
 * MAS Store shortcodes. Colours and fonts are the theme's design tokens
 * (child theme assets/css/mas.css, DESIGN-IMPLEMENTATION-PLAN.md §3); the
 * fallbacks keep the markup usable with any theme. Elementor widget style
 * controls override these through their own selectors.
 */
.mas-tiers, .mas-buy, .mas-rows, .mas-steps, .mas-details, .mas-faq, .mas-shots, .mas-free, .mas-releases {
	--mas-c-accent: var(--mas-accent-solid, #c2560a);
	--mas-c-grad: var(--mas-accent, linear-gradient(90deg, #ff9a3d, #ff5c00));
	--mas-c-soft: var(--mas-accent-soft, #fff3ea);
	--mas-c-surface: var(--mas-surface, #f6f7fa);
	--mas-c-border: var(--mas-border, #e4e7ee);
	--mas-c-title: var(--mas-title, #0f1020);
	--mas-c-body: var(--mas-body, #4a4f5c);
	--mas-c-muted: var(--mas-muted, #6b7080);
	--mas-c-good: var(--mas-good, #0e9f6e);
	--mas-c-good-soft: var(--mas-good-soft, #e8f7f1);
	--mas-c-mono: var(--mas-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	color: var(--mas-c-body);
	box-sizing: border-box;
}
.mas-tiers *, .mas-buy *, .mas-details *, .mas-shots * { box-sizing: border-box; }

.mas-eyebrow { display: block; font-family: var(--mas-font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mas-muted, #6b7080); margin-bottom: 10px; }
.mas-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.6; vertical-align: middle; }
.mas-chip-version { font-family: var(--mas-font-mono, ui-monospace, monospace); font-weight: 400; background: var(--mas-surface, #f6f7fa); border: 1px solid var(--mas-border, #e4e7ee); color: var(--mas-muted, #6b7080); }
.mas-chip-accent { background: var(--mas-accent-soft, #fff3ea); color: var(--mas-accent-on-soft, #a84a08); }
.mas-chip-good { background: var(--mas-good-soft, #e8f7f1); color: var(--mas-good-text, #087a55); }
.mas-muted { color: var(--mas-muted, #6b7080); font-size: 13px; }

.mas-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1.4px solid transparent; }
.mas-btn-primary { background: var(--mas-c-grad, linear-gradient(90deg, #ff9a3d, #ff5c00)); color: #1a0e03; box-shadow: 0 10px 24px -10px rgba(255, 92, 0, .55); }
.mas-btn-secondary { background: #fff; border-color: var(--mas-border, #e4e7ee); color: var(--mas-title, #0f1020); }
/* The parent theme colours every button:hover / :focus; keep ours. */
button.mas-btn-primary:hover, button.mas-btn-primary:focus, a.mas-btn-primary:hover, a.mas-btn-primary:focus { background: var(--mas-c-grad, linear-gradient(90deg, #ff9a3d, #ff5c00)); color: #1a0e03; filter: brightness(1.04); }
/* A link styled as a button (card Buy, mas-store 0.8.6) keeps its dark text. */
a.mas-btn-primary, a.mas-btn-primary:visited { color: #1a0e03; }
button.mas-btn-secondary:hover, button.mas-btn-secondary:focus { background: #fff; color: var(--mas-title, #0f1020); }
.mas-btn:focus-visible { outline: 2px solid var(--mas-accent-solid, #c2560a); outline-offset: 3px; }
.mas-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* Tier row ---------------------------------------------------------------- */
.mas-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; background: var(--mas-c-surface); border-radius: 12px; padding: 14px 16px; }
.mas-tiers[data-count="1"] { grid-template-columns: 1fr; }
.mas-tier-chip { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; border-left: 1px solid var(--mas-c-border); }
.mas-tier-chip:first-child { border-left: 0; padding-left: 0; }
.mas-tier-name, .mas-tier-sites, .mas-tier-note { font-size: 12px; color: var(--mas-c-muted); }
.mas-tier-price { font-size: 18px; font-weight: 600; color: var(--mas-c-title); }
.mas-tier-price small { font-size: 11px; font-weight: 400; color: var(--mas-c-muted); }
.mas-tier-chip.is-sold-out .mas-tier-price { text-decoration: line-through; opacity: .6; }
.mas-flag { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--mas-accent, linear-gradient(90deg, #ff9a3d, #ff5c00)); color: #1a0e03; font-size: 10px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.mas-buy-mini-form { margin: 0; }
.mas-buy-mini { width: 100%; justify-content: flex-start; padding: 12px 22px; font-size: 14px; }
.mas-buy-mini.is-sold-out { opacity: .5; cursor: not-allowed; box-shadow: none; }
.mas-from-label { font-size: 12px; color: var(--mas-muted, #6b7080); }
.mas-from-price { font-size: 18px; font-weight: 600; color: var(--mas-title, #0f1020); }
.mas-from-note { display: block; margin-top: 3px; font-size: 12px; color: var(--mas-muted, #6b7080); }

/* Buy panel --------------------------------------------------------------- */
.mas-buy { background: #fff; border: 1px solid var(--mas-c-border); border-radius: 20px; padding: 22px; box-shadow: 0 24px 48px -24px rgba(15, 16, 32, .18); }
.mas-buy-title { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--mas-c-title); }
.mas-buy-note { margin: 0 0 14px; font-size: 12px; color: var(--mas-c-muted); }
.mas-buy-tiers { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.mas-buy-tier { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--mas-c-border); border-radius: 10px; cursor: pointer; }
.mas-buy-tier input { accent-color: var(--mas-c-accent); margin: 0; }
.mas-buy-tier.is-selected, .mas-buy-tier:has(input:checked) { background: var(--mas-c-soft); border-color: var(--mas-c-accent); }
.mas-buy-tier:focus-within { outline: 2px solid var(--mas-c-accent); outline-offset: 2px; }
.mas-buy-tier.is-sold-out { opacity: .55; cursor: not-allowed; }
.mas-buy-tier-text { flex: 1; display: flex; flex-direction: column; }
.mas-buy-tier-name { font-size: 14px; font-weight: 600; color: var(--mas-c-title); }
.mas-buy-tier-sites { font-size: 12px; color: var(--mas-c-muted); }
.mas-buy-tier-price { display: flex; flex-direction: column; align-items: flex-end; font-size: 18px; font-weight: 600; color: var(--mas-c-title); }
.mas-buy-tier-price small { font-size: 10px; font-weight: 400; color: var(--mas-c-muted); }
.mas-buy-get { background: var(--mas-c-surface); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.mas-buy-get ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--mas-c-title); }
.mas-buy-get li::before, .mas-bullets li::before, .mas-trust li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mas-good, #0e9f6e); margin-right: 10px; vertical-align: middle; }
.mas-buy-left { margin: 0 0 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--mas-c-accent); }
.mas-buy-button { width: 100%; padding: 16px; }
.mas-buy-foot { margin: 12px 0 0; text-align: center; font-size: 11px; line-height: 1.6; color: var(--mas-c-muted); }

/* Lists ------------------------------------------------------------------- */
.mas-bullets, .mas-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mas-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--mas-muted, #6b7080); }
.mas-rows { display: grid; gap: 12px; }
.mas-row { display: grid; grid-template-columns: 28px minmax(180px, 1fr) 2fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--mas-c-border); border-radius: 12px; padding: 18px 22px; }
.mas-row strong { color: var(--mas-c-title); font-size: 15px; }
.mas-row p { margin: 0; font-size: 14px; }
.mas-check, .mas-ticks li::before { width: 28px; height: 28px; border-radius: 8px; background: var(--mas-accent-soft, #fff3ea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='%23ff5c00' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; }
.mas-steps { list-style: none; margin: 0; padding: 0; }
.mas-steps li { display: grid; grid-template-columns: 44px minmax(180px, 1fr) 2fr; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--mas-c-border); }
.mas-steps strong { color: var(--mas-c-title); }
.mas-steps p { margin: 0; font-size: 14px; }
.mas-step-n { font-family: var(--mas-c-mono); font-size: 11px; text-align: center; padding: 4px 0; border-radius: 999px; background: var(--mas-c-surface); color: var(--mas-c-muted); }
.mas-steps li:last-child .mas-step-n { background: var(--mas-c-soft); color: var(--mas-accent-on-soft, #a84a08); }
.mas-note { margin: 24px 0 0; padding: 18px 22px; border-radius: 12px; font-size: 14px; }
.mas-note-good { background: var(--mas-good-soft, #e8f7f1); border: 1px solid color-mix(in srgb, var(--mas-good, #0e9f6e) 30%, transparent); color: var(--mas-title, #0f1020); }

/* Screenshots ------------------------------------------------------------- */
.mas-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mas-shot { margin: 0; }
.mas-shot.is-main { grid-column: 1 / -1; }
.mas-shot-frame { display: flex; gap: 6px; padding: 12px 14px; background: #fff; border: 1px solid var(--mas-c-border); border-bottom: 0; border-radius: 12px 12px 0 0; }
.mas-shot-frame span { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.mas-shot-frame span + span { background: #febc2e; }
.mas-shot-frame span + span + span { background: #28c840; }
.mas-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--mas-c-border); border-top: 0; border-radius: 0 0 12px 12px; }
.mas-shot figcaption { margin-top: 14px; font-style: normal; }
.mas-shot figcaption strong { color: var(--mas-c-title); }
.mas-shot figcaption p { margin: 4px 0 0; font-size: 13px; }

/* Details ----------------------------------------------------------------- */
.mas-details { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); background: #fff; border: 1px solid var(--mas-c-border); border-radius: 16px; }
.mas-details[data-cols="1"] { --cols: 1; }
.mas-details[data-cols="2"] { --cols: 2; }
.mas-details-col { padding: 26px; border-left: 1px solid var(--mas-c-border); }
.mas-details-col:first-child { border-left: 0; }
.mas-req { margin: 0; display: grid; gap: 10px; font-size: 13px; }
.mas-req div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mas-req dt { color: var(--mas-c-muted); }
.mas-req dd { margin: 0; color: var(--mas-c-title); }
.mas-logos { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mas-logos li { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px; border-radius: 8px; background: var(--mas-c-surface); font-size: 12px; }
.mas-logos img { max-height: 24px; width: auto; }
.mas-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 13px; color: var(--mas-c-title); }
.mas-ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.mas-ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 5px; background-color: var(--mas-good-soft, #e8f7f1); background-size: 11px; }

/* Free version, FAQ, releases --------------------------------------------- */
.mas-free { display: flex; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 16px; background: var(--mas-good-soft, #e8f7f1); border: 1px solid color-mix(in srgb, var(--mas-good, #0e9f6e) 30%, transparent); }
.mas-free-badge { display: flex; flex-direction: column; align-items: center; padding: 12px 16px; background: #fff; border-radius: 10px; font-size: 11px; color: var(--mas-muted, #6b7080); }
.mas-free-badge .mas-eyebrow { color: var(--mas-good-text, #087a55); margin: 0; }
.mas-free-text { flex: 1; }
.mas-free-text strong { color: var(--mas-title, #0f1020); font-size: 17px; }
.mas-free-text p { margin: 6px 0 0; font-size: 13px; }
.mas-faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; margin: 0; }
.mas-faq div { padding: 22px 0; border-top: 1px solid var(--mas-c-border); }
.mas-faq dt { font-weight: 600; font-size: 17px; color: var(--mas-c-title); margin-bottom: 8px; }
.mas-faq dd { margin: 0; font-size: 14px; line-height: 1.7; }
.mas-releases { list-style: none; margin: 0; padding: 0; }
.mas-release { position: relative; padding: 0 0 18px 28px; border-left: 1px solid var(--mas-c-border); margin-left: 6px; }
.mas-release::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 1px solid var(--mas-c-border); }
.mas-release.is-current::before { background: var(--mas-accent-solid, #ff5c00); border-color: transparent; }
.mas-release:last-child { border-left-color: transparent; }
.mas-release-head { margin-bottom: 8px; }
.mas-release.is-current .mas-chip-version { background: var(--mas-accent-soft, #fff3ea); color: var(--mas-accent-on-soft, #a84a08); border-color: transparent; }
.mas-release-date { font-size: 12px; color: var(--mas-muted, #6b7080); }
.mas-release p { margin: 0 0 6px; font-size: 13px; color: var(--mas-title, #0f1020); }

@media (max-width: 767px) {
	.mas-row, .mas-steps li { grid-template-columns: 28px 1fr; }
	.mas-row p, .mas-steps p { grid-column: 2; }
	.mas-shots, .mas-faq, .mas-details, .mas-details[data-cols] { grid-template-columns: 1fr; }
	.mas-details-col { border-left: 0; border-top: 1px solid var(--mas-c-border); }
	.mas-details-col:first-child { border-top: 0; }
	.mas-free { flex-direction: column; align-items: flex-start; }
	.mas-tiers { grid-template-columns: 1fr 1fr; row-gap: 12px; }
	.mas-tier-chip:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* Category chips over the pricing grid ([mas_category_chips]) */
.mas-chips-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mas-chips-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mas-chips-bar a.mas-chip-link { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--mas-border, #e4e7ee); background: #fff; color: var(--mas-body, #4a4f5c); font-size: 14px; font-weight: 500; line-height: 1.3; text-decoration: none; }
.mas-chips-bar a.mas-chip-link:hover { border-color: var(--mas-title, #0f1020); color: var(--mas-title, #0f1020); }
.mas-chips-bar a.mas-chip-link.is-current { background: var(--mas-title, #0f1020); border-color: var(--mas-title, #0f1020); color: #fff; }
.mas-chips-bar a.mas-chip-link:focus-visible { outline: 2px solid var(--mas-accent-solid, #c2560a); outline-offset: 2px; }
.mas-chips-count { font-size: 14px; color: var(--mas-muted, #6b7080); }

/* Footer product list ([mas_product_links]): inherits the footer's colours. */
.mas-product-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mas-product-links a { color: inherit; text-decoration: none; }
.mas-product-links a:hover { color: var(--mas-accent-bright, #ff5c00); }
