/* aptcloud Store components. Tokens below are defaults; the aptcloud theme redefines them. */
:where(:root) {
	--c-bg: #ffffff;
	--c-bg-soft: #f6f7fb;
	--c-surface: #ffffff;
	--c-border: #e5e7ef;
	--c-text: #0f172a;
	--c-muted: #5b6475;
	--c-primary: #4f46e5;
	--c-primary-strong: #4338ca;
	--c-primary-soft: #eef2ff;
	--c-on-primary: #ffffff;
	--c-ok: #047857;
	--c-ok-soft: #ecfdf5;
	--c-bad: #b91c1c;
	--c-bad-soft: #fef2f2;
	--c-warn-soft: #fffbeb;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
	--shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .12);
	--shadow-lg: 0 24px 48px -16px rgba(79, 70, 229, .28);
}

.apt-icon { flex: none; vertical-align: -3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.apt-muted { color: var(--c-muted); }
.apt-small { font-size: .875rem; }

/* ---------- buttons ---------- */
.apt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .7rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid transparent;
	font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	background: var(--c-bg-soft); color: var(--c-text);
	transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}

.apt-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-primary) 45%, transparent); outline-offset: 2px; }
.apt-btn--primary { background: var(--c-primary); color: var(--c-on-primary); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--c-primary) 70%, transparent); }
.apt-btn--primary:hover { background: var(--c-primary-strong); color: var(--c-on-primary); }
.apt-btn--outline { background: transparent; border-color: var(--c-border); color: var(--c-text); }
.apt-btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.apt-btn--ghost { background: transparent; color: var(--c-primary); }
.apt-btn--sm { padding: .45rem .8rem; font-size: .85rem; }
.apt-btn--lg { padding: .95rem 1.4rem; font-size: 1rem; }
.apt-btn--block { width: 100%; }
.apt-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.apt-btn.is-loading .apt-icon { animation: apt-pulse 1s infinite; }
@keyframes apt-pulse { 50% { opacity: .3; } }
.apt-link { background: none; border: 0; padding: 0; font: inherit; color: var(--c-primary); text-decoration: underline; cursor: pointer; }

.apt-chip, .apt-badge {
	display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px;
	font-size: .75rem; font-weight: 600; background: var(--c-primary-soft); color: var(--c-primary);
}
.apt-badge--ok { background: var(--c-ok-soft); color: var(--c-ok); }
.apt-badge--muted { background: var(--c-bg-soft); color: var(--c-muted); }

.apt-notice { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin: 0 0 1.25rem; border: 1px solid var(--c-border); background: var(--c-bg-soft); }
.apt-notice--warn { background: var(--c-warn-soft); border-color: color-mix(in srgb, #d97706 30%, transparent); }
.apt-notice--info { background: var(--c-primary-soft); border-color: color-mix(in srgb, var(--c-primary) 25%, transparent); }

.apt-yes { color: var(--c-ok); }
.apt-no { color: var(--c-muted); opacity: .6; }

/* ---------- plan cards ---------- */
.apt-plans {
	display: grid; gap: 1.25rem; align-items: stretch;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
@media (min-width: 1000px) { .apt-plans { grid-template-columns: repeat(var(--apt-cols, 4), 1fr); } }
.apt-plan {
	position: relative; display: flex; flex-direction: column; gap: .75rem;
	padding: 1.75rem 1.5rem; border-radius: var(--radius); background: var(--c-surface);
	border: 1px solid var(--c-border); box-shadow: var(--shadow-sm);
	transition: box-shadow .2s, border-color .2s;
}
:root:not(.js-motion) .apt-plan:hover { transform: translateY(-3px); }
.apt-plan:hover { box-shadow: var(--shadow); }
.apt-plan.is-best { border: 2px solid var(--c-primary); box-shadow: var(--shadow-lg); }
.apt-plan__badge {
	position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%); white-space: nowrap;
	display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .8rem; border-radius: 999px;
	background: var(--c-primary); color: var(--c-on-primary); font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}
.apt-plan__badge .apt-icon { width: 14px; height: 14px; }
.apt-plan__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.apt-plan__name { margin: 0; font-size: 1.15rem; font-weight: 700; }
.apt-plan__price { display: flex; align-items: baseline; gap: .2rem; }
.apt-plan__amount { font-family: var(--font-display, inherit); font-size: 2.5rem; font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.apt-plan__per { color: var(--c-muted); font-weight: 500; }
.apt-plan__billing { margin: 0; color: var(--c-muted); font-size: .875rem; min-height: 1.3em; }
.apt-plan__features { list-style: none; margin: .5rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--c-border); display: grid; gap: .6rem; font-size: .92rem; }
.apt-plan__features li { display: flex; gap: .55rem; align-items: flex-start; }
.apt-plan__features .apt-icon { color: var(--c-ok); margin-top: 2px; }
.apt-plans__more { text-align: center; margin: 1.5rem 0 0; }
.apt-plans__more a { color: var(--c-primary); font-weight: 600; text-decoration: none; }
.apt-from { font-weight: 800; }
.apt-from small { font-weight: 500; color: var(--c-muted); }

/* ---------- comparison / tables ---------- */
.apt-compare { margin-top: 3rem; scroll-margin-top: 90px; }
.apt-compare__scroll { overflow-x: auto; contain: paint; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); }
.apt-compare__table, .apt-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.apt-compare__table th, .apt-compare__table td, .apt-table th, .apt-table td { padding: .75rem 1rem; text-align: center; border-bottom: 1px solid var(--c-border); }
.apt-compare__table tbody th, .apt-table tbody th { text-align: left; font-weight: 500; }
.apt-table thead th, .apt-table tbody th:first-child { text-align: left; }
.apt-compare__table thead th { position: sticky; top: 0; background: var(--c-surface); vertical-align: bottom; min-width: 140px; }
.apt-compare__corner { text-align: left !important; color: var(--c-muted); font-weight: 600; }
.apt-compare__plan { display: block; font-weight: 700; font-size: 1rem; }
.apt-compare__price { display: block; color: var(--c-muted); font-weight: 500; margin: .2rem 0 .6rem; }
.apt-compare__group th { text-align: left !important; background: var(--c-bg-soft); font-size: .9rem; color: var(--c-text); font-weight: 700; }
.apt-table thead th { background: var(--c-bg-soft); font-size: .88rem; color: var(--c-muted); font-weight: 600; }
.apt-table tbody tr:hover { background: var(--c-bg-soft); }

/* ---------- TLD grid ---------- */
.apt-tlds { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.apt-tld { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--c-border); background: var(--c-surface); transition: border-color .15s, transform .15s; }
.apt-tld:hover { border-color: var(--c-primary); }
.apt-tld__ext { font-family: var(--font-display, inherit); font-size: 1.4rem; font-weight: 750; letter-spacing: -.02em; }
.apt-tld__price { font-weight: 600; }
.apt-tld__price small, .apt-drow__price small { color: var(--c-muted); font-weight: 400; }
.apt-tld__note { font-size: .75rem; color: var(--c-ok); font-weight: 600; }
.apt-tlds-table__filter { display: flex; align-items: center; gap: .5rem; max-width: 360px; margin-bottom: 1rem; padding: 0 .9rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-muted); }
.apt-tlds-table__filter input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: .7rem 0 !important; width: 100%; color: var(--c-text); }

/* ---------- domain search ---------- */
.apt-dsearch { width: 100%; max-width: 720px; margin: 0 auto; }
.apt-dsearch__field {
	display: flex; align-items: center; gap: .5rem; padding: .45rem .45rem .45rem 1.1rem;
	background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; box-shadow: var(--shadow);
	color: var(--c-muted); transition: border-color .15s, box-shadow .15s;
}
.apt-dsearch__field:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 18%, transparent), var(--shadow); }
.apt-dsearch__field input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 1.05rem; padding: .7rem .25rem !important; color: var(--c-text); }
.apt-dsearch--hero .apt-dsearch__field { padding: .55rem .55rem .55rem 1.3rem; }
.apt-dsearch--hero .apt-dsearch__field input { font-size: 1.15rem; }
.apt-dsearch--hero .apt-btn { padding: .9rem 1.6rem; }
.apt-dsearch__tlds { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin: 1rem 0 0; padding: 0; font-size: .9rem; color: var(--c-muted); }
.apt-dsearch__tlds strong { color: var(--c-text); }

.apt-dresults { max-width: 860px; margin: 2rem auto 0; }
.apt-dresults__title { font-size: 1.15rem; margin: 2.25rem 0 .75rem; }
.apt-dresults__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); overflow: hidden; }
.apt-drow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--c-border); }
.apt-drow:last-child { border-bottom: 0; }
.apt-drow__name { display: flex; align-items: center; gap: .6rem; font-weight: 600; word-break: break-all; }
.apt-drow.is-taken .apt-drow__name > span:first-child { color: var(--c-muted); }
.apt-drow__price { text-align: right; }
.apt-drow__free { display: block; font-size: .75rem; color: var(--c-ok); font-weight: 600; }
.apt-dhero { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--c-border); background: var(--c-surface); box-shadow: var(--shadow); }
.apt-dhero.is-available { border-color: color-mix(in srgb, var(--c-ok) 40%, transparent); background: linear-gradient(180deg, var(--c-ok-soft), var(--c-surface)); }
.apt-dhero__kicker { margin: 0; color: var(--c-muted); font-weight: 600; }
.apt-dhero h2 { margin: .2rem 0 1rem; font-size: clamp(1.3rem, 3vw, 1.8rem); word-break: break-all; }
.apt-dhero.is-available h2 span { color: var(--c-ok); }
.apt-drow--hero { padding: 0; border: 0; }
.apt-skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--c-bg-soft), var(--c-border), var(--c-bg-soft)); background-size: 200% 100%; animation: apt-shimmer 1.2s infinite; }
@keyframes apt-shimmer { to { background-position: -200% 0; } }
@media (max-width: 560px) {
	.apt-drow { grid-template-columns: 1fr auto; }
	.apt-drow__price { grid-column: 1; text-align: left; }
	.apt-drow .apt-btn { grid-row: 1 / span 2; grid-column: 2; }
	.apt-dsearch__field { flex-wrap: wrap; padding: .5rem; }
	.apt-dsearch__field > .apt-icon { display: none; }
	.apt-dsearch__field input { padding-left: .5rem !important; }
	.apt-dsearch__field .apt-btn { width: 100%; }
}

/* ---------- forms ---------- */
.apt-checkout input[type=text], .apt-checkout input[type=email], .apt-checkout input[type=tel], .apt-checkout input[type=password], .apt-checkout input:not([type]), .apt-checkout select {
	width: 100%; padding: .7rem .85rem; border-radius: var(--radius-sm); border: 1px solid var(--c-border);
	background: var(--c-surface); color: var(--c-text); font: inherit; font-size: 1rem; box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
}
.apt-checkout input:focus, .apt-checkout select:focus { outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 15%, transparent); }
.apt-field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.apt-field > label, .apt-field > legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.apt-field label small { color: var(--c-muted); font-weight: 400; }
.apt-field__hint { margin: .35rem 0 0; font-size: .82rem; color: var(--c-muted); }
.apt-field__hint.is-ok { color: var(--c-ok); }
.apt-field__hint.is-bad, .apt-field__err { color: var(--c-bad); }
.apt-field__err { margin: .35rem 0 0; font-size: .82rem; font-weight: 500; }
.apt-field__err:empty { display: none; }
.has-error input, .has-error select { border-color: var(--c-bad) !important; }
.apt-grid-2, .apt-grid-3 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .apt-grid-2 { grid-template-columns: 1fr 1fr; } .apt-grid-3 { grid-template-columns: 2fr 1.4fr 1fr; } }
.apt-check { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; margin: .5rem 0 1rem; cursor: pointer; }
.apt-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-primary); flex: none; }
.apt-check a { color: var(--c-primary); }

/* ---------- checkout ---------- */
.apt-checkout__form { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .apt-checkout__form { grid-template-columns: minmax(0, 1fr) 360px; } }
.apt-step { padding: 1.75rem; margin-bottom: 1.25rem; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
.apt-step[hidden] { display: none; }
.apt-step__title { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.25rem; font-size: 1.2rem; }
.apt-step__num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); font-size: .9rem; font-weight: 800; }
.apt-plan-mini { list-style: none; margin: -.25rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.apt-plan-mini li { font-size: .8rem; padding: .25rem .6rem; border-radius: 999px; background: var(--c-bg-soft); color: var(--c-muted); }
.apt-pills { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.apt-pill { position: relative; cursor: pointer; }
.apt-pill input { position: absolute; opacity: 0; }
.apt-pill span { display: flex; flex-direction: column; gap: .1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--c-border); transition: border-color .15s, background .15s; }
.apt-pill em { font-style: normal; font-weight: 700; }
.apt-pill small { color: var(--c-muted); font-size: .78rem; }
.apt-pill input:checked + span { border-color: var(--c-primary); background: var(--c-primary-soft); }
.apt-pill input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--c-primary) 40%, transparent); }
.apt-tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; margin-bottom: 1.25rem; border-radius: 12px; background: var(--c-bg-soft); }
.apt-tabs label { flex: 1 1 auto; position: relative; text-align: center; cursor: pointer; }
.apt-tabs label[hidden] { display: none; }
.apt-tabs input { position: absolute; opacity: 0; }
.apt-tabs span { display: block; padding: .6rem .9rem; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--c-muted); transition: background .15s, color .15s; }
.apt-tabs label.is-active span, .apt-tabs input:checked + span { background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-sm); }
.apt-tabs input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--c-primary) 40%, transparent); }
.apt-domain-input { display: grid; grid-template-columns: 1fr 130px auto; gap: .5rem; margin-bottom: .5rem; }
@media (max-width: 520px) { .apt-domain-input { grid-template-columns: 1fr 110px; } .apt-domain-input .apt-btn { grid-column: 1 / -1; } }
.apt-domain-status { min-height: 1.5em; margin: .25rem 0 1rem; font-size: .92rem; }
.apt-domain-status.is-ok { color: var(--c-ok); }
.apt-domain-status.is-bad { color: var(--c-bad); }
.apt-domain-status.is-loading { color: var(--c-muted); }
.apt-extra__title { font-weight: 700; margin: 1rem 0 .75rem; }
.apt-pass { display: flex; gap: .5rem; }
.apt-pm { display: grid; gap: .6rem; margin-bottom: .5rem; }
.apt-pm__opt { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--c-border); cursor: pointer; transition: border-color .15s, background .15s; }
.apt-pm__opt:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }
.apt-pm__opt input { accent-color: var(--c-primary); width: 18px; height: 18px; flex: none; }
.apt-pm__body { flex: 1; display: flex; flex-direction: column; }
.apt-pm__body small { color: var(--c-muted); font-size: .8rem; }
.apt-pm__opt img { max-height: 24px; max-width: 120px; border-radius: 4px; background: #fff; padding: 2px; }
.apt-promo { margin: .5rem 0 1rem; }
.apt-promo summary { cursor: pointer; color: var(--c-primary); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }

.apt-checkout__aside { position: sticky; top: 90px; }
.apt-summary { padding: 1.5rem; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow); }
.apt-summary__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: 1.1rem; }
.apt-summary__lines { list-style: none; margin: 0; padding: 0; }
.apt-summary__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px dashed var(--c-border); }
.apt-summary__lines span { display: flex; flex-direction: column; min-width: 0; word-break: break-all; }
.apt-summary__lines small { color: var(--c-muted); font-size: .8rem; word-break: normal; }
.apt-summary__total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0 .25rem; font-weight: 600; }
.apt-summary__total strong { display: inline-block; font-family: var(--font-display, inherit); font-size: 1.7rem; letter-spacing: -.02em; }
.apt-summary__note { margin: 0 0 1rem; font-size: .8rem; color: var(--c-muted); }
.apt-summary__trust { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: .85rem; color: var(--c-muted); }
.apt-summary__trust .apt-icon { color: var(--c-ok); width: 16px; height: 16px; }
.apt-form-error { margin: 0 0 1rem; padding: .75rem .9rem; border-radius: var(--radius-sm); background: var(--c-bad-soft); color: var(--c-bad); font-size: .9rem; font-weight: 500; }

/* ---------- misc ---------- */
.apt-dcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.apt-dcs li { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); }
.apt-dcs small { grid-column: 2; color: var(--c-muted); }
.apt-dcs__pin { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 5px var(--c-ok-soft); }

.apt-thanks { max-width: 640px; margin: 0 auto; text-align: center; }
.apt-thanks__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--c-ok-soft); color: var(--c-ok); margin-bottom: 1rem; }
.apt-thanks__icon .apt-icon { width: 36px; height: 36px; }
.apt-thanks__steps { text-align: left; margin: 2rem 0; padding-left: 1.2rem; display: grid; gap: .75rem; }
.apt-lead { font-size: 1.1rem; color: var(--c-muted); }
.apt-legal { max-width: 860px; font-size: .95rem; line-height: 1.7; }
.apt-legal h1, .apt-legal h2, .apt-legal h3 { line-height: 1.3; }
