/* Aiolos Checkout settings screen. */

.acw-admin {
	--acw-a-brand: #2b4bff; --acw-a-brand-2: #7c3aed; --acw-a-ink: #0f172a; --acw-a-muted: #64748b;
	--acw-a-line: #e5e7eb; --acw-a-soft: #f5f7fb; --acw-a-card: #fff; --acw-a-radius: 14px;
	max-width: 1320px; margin-right: 20px; color: var(--acw-a-ink);
}

/* Header. */
.acw-admin__header {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 18px; padding: 18px 22px;
	border-radius: var(--acw-a-radius); color: #fff;
	background: radial-gradient(120% 160% at 0% 0%, #3b5bff 0%, #2b4bff 40%, #4c1d95 100%);
	box-shadow: 0 10px 30px -12px rgba(43, 75, 255, .55);
}
.acw-admin__mark { width: 38px; height: 38px; border-radius: 11px; flex: none; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); position: relative; }
.acw-admin__mark::after { content: ""; position: absolute; inset: 10px; border-radius: 3px; background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.acw-admin__brand { display: flex; align-items: baseline; gap: 10px; }
.acw-admin .acw-admin__title { margin: 0; padding: 0; color: #fff; font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.acw-admin__version { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .14); border-radius: 99px; padding: 2px 9px; }
.acw-admin__status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 99px; background: rgba(15, 23, 42, .28); }
.acw-admin__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; }
.acw-admin__status.is-on::before { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.acw-admin__actions { margin-left: auto; display: flex; gap: 8px; }
.acw-admin__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: background .15s; }
.acw-admin__btn .dashicons { font-size: 16px; width: 16px; height: 16px; }
.acw-admin__btn:hover, .acw-admin__btn:focus { color: #fff; background: rgba(255, 255, 255, .24); }
.acw-admin__btn--pro { background: #fff; color: var(--acw-a-brand); box-shadow: none; }
.acw-admin__btn--pro:hover, .acw-admin__btn--pro:focus { background: #eef1ff; color: var(--acw-a-brand); }

/* Navigation beside the content. */
.acw-admin__layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; align-items: start; }
.acw-admin__nav { position: sticky; top: 46px; display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--acw-a-card); border: 1px solid var(--acw-a-line); border-radius: var(--acw-a-radius); max-height: calc(100vh - 70px); overflow: auto; }
.acw-admin__group { margin: 12px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #94a3b8; }
.acw-admin__group:first-child { margin-top: 4px; }
.acw-admin .acw-admin__link { float: none; display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: #334155; font-size: 13.5px; font-weight: 500; line-height: 1.3; text-decoration: none; transition: background .12s, color .12s; }
.acw-admin .acw-admin__link .dashicons { font-size: 18px; width: 18px; height: 18px; color: #94a3b8; transition: color .12s; }
.acw-admin .acw-admin__link:hover { background: var(--acw-a-soft); color: var(--acw-a-ink); }
.acw-admin .acw-admin__link:focus { box-shadow: 0 0 0 2px var(--acw-a-brand); outline: 0; }
.acw-admin .acw-admin__link.is-active { background: #eef1ff; color: var(--acw-a-brand); font-weight: 600; }
.acw-admin .acw-admin__link.is-active .dashicons { color: var(--acw-a-brand); }

/* Content. */
.acw-admin__heading { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.acw-admin__heading .dashicons { width: 34px; height: 34px; font-size: 20px; line-height: 34px; text-align: center; border-radius: 10px; color: var(--acw-a-brand); background: #eef1ff; }
.acw-admin__heading h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--acw-a-ink); }
.acw-card { background: var(--acw-a-card); border: 1px solid var(--acw-a-line); border-radius: var(--acw-a-radius); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.acw-admin__panel.acw-card { padding: 8px 24px 20px; }
.acw-admin__section { margin: 0 0 18px; overflow: hidden; }
.acw-card__head { padding: 18px 24px 14px; border-bottom: 1px solid var(--acw-a-line); background: linear-gradient(#fff, #fcfdff); }
.acw-card__head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--acw-a-ink); }
.acw-card__head .description { margin: 6px 0 0; color: var(--acw-a-muted); max-width: 760px; }
.acw-rows { padding: 4px 24px; }
.acw-row { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 8px 28px; padding: 16px 0; border-top: 1px solid #f1f5f9; }
.acw-row:first-child { border-top: 0; }
.acw-row--wide { display: block; }
.acw-row__label { padding-top: 6px; }
.acw-row__label label { font-weight: 600; color: var(--acw-a-ink); }
.acw-row--toggle .acw-row__label { padding-top: 1px; }
.acw-row__control .description { color: var(--acw-a-muted); margin-top: 6px; max-width: 720px; }
.acw-admin input[type="text"], .acw-admin input[type="password"], .acw-admin input[type="number"], .acw-admin input[type="email"], .acw-admin input[type="url"], .acw-admin select, .acw-admin textarea { border-color: #cbd5e1; border-radius: 8px; min-height: 36px; box-shadow: none; }
.acw-admin input:focus, .acw-admin select:focus, .acw-admin textarea:focus { border-color: var(--acw-a-brand); box-shadow: 0 0 0 3px rgba(43, 75, 255, .15); outline: 0; }
.acw-admin .button { border-radius: 8px; }
.acw-admin .button-primary { background: var(--acw-a-brand); border-color: var(--acw-a-brand); }
.acw-admin .button-primary:hover, .acw-admin .button-primary:focus { background: #1f39d6; border-color: #1f39d6; }

/* Save bar: always in reach. */
.acw-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 6px 0 0; padding: 12px 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--acw-a-line); border-radius: var(--acw-a-radius); box-shadow: 0 -6px 20px -12px rgba(15, 23, 42, .25); }
.acw-savebar.is-dirty { border-color: #fcd34d; }
.acw-savebar__note { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #b45309; }
.acw-savebar__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.acw-savebar__note[hidden] { display: none; }
.acw-admin .acw-savebar__button { min-height: 38px; padding: 0 22px; font-weight: 600; }

@media (max-width: 960px) {
	.acw-admin__layout { grid-template-columns: 1fr; }
	.acw-admin__nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; }
	.acw-admin__group, 	.acw-row { grid-template-columns: 1fr; }
	.acw-row__label { padding-top: 0; }
	.acw-admin__actions { margin-left: 0; }
}

.acw-toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.acw-toggle input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acw-toggle__track { width: 40px; height: 22px; border-radius: 99px; background: #c3c4c7; position: relative; transition: background .15s; }
.acw-toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.acw-toggle input:checked + .acw-toggle__track { background: #2b4bff; }
.acw-toggle input:checked + .acw-toggle__track::after { transform: translateX(18px); }
.acw-toggle input:focus-visible + .acw-toggle__track { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2b4bff; }

.acw-image { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acw-image__preview { max-height: 56px; width: auto; border: 1px solid #dcdcde; border-radius: 6px; padding: 4px; background: #fff; }
.acw-image [hidden] { display: none; }

.acw-repeater { border-collapse: collapse; width: 100%; max-width: 760px; }
.acw-repeater th { text-align: left; font-weight: 600; padding: 6px 8px 6px 0; }
.acw-repeater td { padding: 4px 8px 4px 0; vertical-align: middle; }
.acw-repeater input[type="number"], .acw-repeater input[type="text"], .acw-repeater select { width: 100%; }

/* Design tab: settings beside a live preview. */
.acw-admin__panel--design { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 24px; align-items: start; }
.acw-admin__panel--design > * { grid-column: 1; }
.acw-admin__panel--design > .acw-preview { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 46px; }
@media (max-width: 1280px) {
	.acw-admin__panel--design { display: block; }
	.acw-admin__panel--design > .acw-preview { position: static; margin: 20px 0 0; }
}

.acw-preview {
	--acw-primary: #2b4bff; --acw-btn-text: #fff; --acw-text: #111827; --acw-muted: #6b7280; --acw-success: #15803d;
	--acw-bg: #fff; --acw-header-bg: #fff; --acw-surface: #f4f5f7; --acw-field: #fff; --acw-border: #d1d5db;
	--acw-radius: 12px; --acw-logo-h: 36px;
	--acw-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--acw-line: color-mix(in srgb, var(--acw-border) 55%, var(--acw-bg));
}
.acw-preview__label { margin: 0 0 8px; font-weight: 600; color: #646970; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.acw-preview__page { border: 1px solid #c3c4c7; border-radius: 10px; overflow: hidden; background: var(--acw-bg); color: var(--acw-text); font-family: var(--acw-font); font-size: 13px; line-height: 1.4; box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
.acw-preview__header { color: var(--acw-header-text, var(--acw-text)); display: flex; align-items: center; min-height: 52px; padding: 8px 16px; background: var(--acw-header-bg); border-bottom: 1px solid var(--acw-line); }
.acw-preview__page.is-center .acw-preview__header { justify-content: center; }
.acw-preview__logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.acw-preview__logo .acw-logo__img { max-height: min(var(--acw-logo-h), 48px); width: auto; display: block; }
.acw-preview__logo .acw-logo__mark { width: 22px; height: 22px; border-radius: 7px; background: var(--acw-primary); }
.acw-preview__body { padding: 16px; display: grid; gap: 10px; }
.acw-preview__field { border: 1px solid var(--acw-border); border-radius: var(--acw-radius); background: var(--acw-field); padding: 7px 12px; }
.acw-preview__field span { display: block; font-size: 11px; color: var(--acw-muted); }
.acw-preview__option { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--acw-primary); border-radius: var(--acw-radius); background: color-mix(in srgb, var(--acw-primary) 6%, var(--acw-bg)); padding: 10px 12px; font-weight: 600; }
.acw-preview__option i { width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--acw-primary); background: var(--acw-field); }
.acw-preview__option b { margin-left: auto; }
.acw-preview__muted { margin: -4px 0 0; color: var(--acw-muted); font-size: 12px; }
.acw-preview__summary { background: var(--acw-surface); border: 1px solid var(--acw-line); border-radius: calc(var(--acw-radius) + 4px); padding: 10px 12px; display: grid; gap: 4px; }
.acw-preview__summary div { display: flex; justify-content: space-between; }
.acw-preview__save { color: var(--acw-success); font-weight: 600; }
.acw-preview__total { border-top: 1px solid var(--acw-line); padding-top: 6px; margin-top: 2px; font-weight: 800; font-size: 15px; }
.acw-preview__button { display: block; text-align: center; padding: 12px; border-radius: var(--acw-radius); background: var(--acw-primary); color: var(--acw-btn-text); font-weight: 800; font-size: 15px; }

/* Fields tab. */
.acw-admin__wide { padding-left: 0 !important; padding-right: 0 !important; }
.acw-fields-editor__group { margin: 22px 0 8px; font-size: 14px; }
.acw-fields-editor { max-width: 1050px; }
.acw-fields-editor th, .acw-fields-editor td { vertical-align: middle; }
.acw-fields-editor tbody th { width: 200px; font-weight: 600; }
.acw-fields-editor tbody th code { font-size: 11px; font-weight: 400; background: none; padding: 0; color: #646970; }
.acw-fields-editor .regular-text { width: 100%; }
.acw-fields-editor td:nth-child(2), .acw-fields-editor thead th:nth-child(2) { width: 50px; text-align: center; }
.acw-fields-editor td:nth-child(6) { width: 70px; }

/* News from aiolosweb.com (opt-in), on this screen only. */
.acw-remote-notice { position: relative; }
.acw-promo { border: 0; border-radius: 10px; padding: 18px 48px 18px 22px; background: linear-gradient(120deg, #1e2a78 0%, #2b4bff 55%, #5b7cff 100%); color: #fff; box-shadow: 0 8px 24px rgba(43, 75, 255, .25); }
.acw-promo p { color: #fff; margin: .2em 0; }
.acw-promo .acw-remote-notice__title { font-size: 16px; }
.acw-promo .button.acw-remote-notice__cta { background: #fff; border-color: #fff; color: #1e2a78; font-weight: 600; }
.acw-promo .acw-remote-notice__close { color: #fff; }

/* Pro features without Pro. */
.acw-admin__badge { display: inline-block; margin-left: auto; padding: 1px 7px; border-radius: 99px; font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #fff; background: linear-gradient(135deg, var(--acw-a-brand), var(--acw-a-brand-2)); }
.acw-pro-feature { max-width: 640px; padding: 12px 0 8px; }
.acw-pro-feature .acw-admin__badge { margin-left: 0; }
.acw-pro-feature h3 { margin: 10px 0 6px; font-size: 17px; }
.acw-pro-feature p { color: var(--acw-a-muted); }
.acw-pro-feature ul { margin: 12px 0 16px 18px; list-style: disc; }
.acw-pro-feature li { margin: 4px 0; }
.acw-pro-feature__note { font-size: 12px; }
