/* KitePlugins Store – WooCommerce: login, My account, checkout (blocks + classic), thank-you page.
   Rules are scoped to .kp-wc (the <main> of shop pages) so they win over WooCommerce's block CSS,
   which is printed later in the page. */

/* ---------- Shared: cards, notices, tables ---------- */
.kp-wc .kp-section--page { padding-bottom: clamp(48px, 7vw, 96px); }
.kp-card-surface, .kp-wc .woocommerce-MyAccount-content > form, .kp-wc .woocommerce-EditAccountForm, .kp-wc .woocommerce-address-fields,
.kp-wc .woocommerce-Addresses .woocommerce-Address, .kp-wc .woocommerce-order-details, .kp-wc .woocommerce-customer-details {
	padding: 28px; border: 1px solid #eceef5; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 40px -24px rgba(16, 24, 40, .14);
}
.woocommerce-notices-wrapper:empty { display: none; }
.kp-wc .woocommerce-message, .kp-wc .woocommerce-info, .kp-wc .woocommerce-error, .kp-wc .wc-block-components-notice-banner {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; list-style: none; margin: 0 0 24px; padding: 14px 18px 14px 52px;
	border: 1px solid #e4e7ec; border-radius: 14px; background: #fff; color: var(--kp-ink); font-size: 15px; box-shadow: 0 10px 30px -18px rgba(16, 24, 40, .25);
}
.kp-wc .woocommerce-message::before, .kp-wc .woocommerce-info::before, .kp-wc .woocommerce-error::before {
	content: ""; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
	background: var(--kp-primary) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 8h.01M12 12v4'/%3E%3C/svg%3E");
}
.kp-wc .woocommerce-message { border-color: #abefc6; background: #f6fef9; }
.kp-wc .woocommerce-message::before { background-color: #17b26a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.kp-wc .woocommerce-error { border-color: #fecdca; background: #fffbfa; }
.kp-wc .woocommerce-error::before { background-color: #f04438; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.kp-wc .woocommerce-error li { margin: 0; width: 100%; }
.kp-wc .woocommerce-message .button, .kp-wc .woocommerce-info .button { order: 2; margin-left: auto; min-height: 38px; padding: 8px 16px; font-size: 14px; }
.kp-wc .woocommerce-message a:not(.button), .kp-wc .woocommerce-info a:not(.button) { font-weight: 600; }

.kp-wc table.shop_table, .kp-wc .woocommerce table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 24px; border: 1px solid #eceef5; border-radius: 16px; overflow: hidden; background: #fff; font-size: 15px; }
.kp-wc table.shop_table th, .kp-wc table.shop_table td { padding: 14px 18px; border: 0; border-bottom: 1px solid #f0f2f7; text-align: left; vertical-align: middle; }
.kp-wc table.shop_table tr:last-child > * { border-bottom: 0; }
.kp-wc table.shop_table thead th { background: #f9fafc; color: var(--kp-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kp-wc table.shop_table tbody tr:hover > * { background: #fbfbfe; }
.kp-wc table.shop_table tfoot th { color: var(--kp-ink); }
.kp-wc table.shop_table tfoot tr:last-child > * { font-size: 1.1rem; font-weight: 800; color: var(--kp-ink); }
.kp-wc table.shop_table .button { min-height: 36px; padding: 7px 14px; font-size: 13.5px; }
.kp-wc mark.order-status, .kp-wc .woocommerce-orders-table__cell-order-status { font-weight: 600; }
.kp-wc mark { background: var(--kp-primary-soft); color: var(--kp-primary); padding: 2px 8px; border-radius: 999px; }
.kp-wc h2, .kp-wc h3 { font-size: 1.25rem; letter-spacing: -.01em; }

/* Form rows (classic forms: login, account, addresses, classic checkout) */
.kp-wc .woocommerce form .form-row, .kp-wc form .form-row { margin: 0 0 18px; padding: 0; }
.kp-wc form .form-row label, .kp-wc .woocommerce form .form-row label { display: block; margin-bottom: 6px; color: var(--kp-ink); font-weight: 600; font-size: 14px; line-height: 1.4; }
.kp-wc form .form-row .required { color: #f04438; text-decoration: none; }
.kp-wc form .form-row-first, .kp-wc form .form-row-last { width: calc(50% - 8px); float: left; }
.kp-wc form .form-row-last { float: right; }
.kp-wc form .form-row-wide, .kp-wc form .form-row:not(.form-row-first):not(.form-row-last) { clear: both; }
.kp-wc form::after, .kp-wc .woocommerce-billing-fields::after, .kp-wc .woocommerce-address-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.kp-wc fieldset { margin: 24px 0 0; padding: 20px; border: 1px solid #eceef5; border-radius: 16px; }
.kp-wc fieldset legend { padding: 0 8px; font-weight: 700; color: var(--kp-ink); }
.kp-wc .password-input { position: relative; display: block; }
.kp-wc .show-password-input { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.kp-wc em, .kp-wc #account_display_name_description em { color: var(--kp-muted); font-size: 13px; }
.kp-wc .woocommerce-form__label-for-checkbox { display: inline-flex !important; align-items: center; gap: 10px; font-weight: 500 !important; cursor: pointer; }
@media (max-width: 600px) { .kp-wc form .form-row-first, .kp-wc form .form-row-last { width: 100%; float: none; } }

/* ---------- Login / register: split screen ---------- */
.kp-auth-page .kp-section--page { padding-top: clamp(24px, 5vw, 64px); }
.kp-auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 1060px; margin: 0 auto; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 40px 80px -32px rgba(16, 24, 40, .25); border: 1px solid #eceef5; }
.kp-auth__brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 56px); background: radial-gradient(500px 300px at 0% 0%, color-mix(in srgb, var(--kp-primary) 55%, transparent), transparent 70%), radial-gradient(420px 300px at 100% 100%, color-mix(in srgb, var(--kp-accent) 40%, transparent), transparent 70%), var(--kp-dark); color: #c9cfdd; }
.kp-auth__glow { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 70%); }
.kp-auth__brand > * { position: relative; }
.kp-auth__brand .kp-brand__mark { width: 52px; height: 52px; border-radius: 15px; margin-bottom: 28px; }
.kp-auth__brand .kp-brand__mark .kp-icon { width: 26px; height: 26px; }
.kp-auth__brand h1 { margin: 0 0 12px; color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.kp-auth__brand p { margin: 0 0 28px; font-size: 1.05rem; }
.kp-auth__brand ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.kp-auth__brand li { display: flex; align-items: center; gap: 12px; color: #e4e8f2; }
.kp-auth__brand li .kp-icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--kp-accent); }
.kp-auth__panel { padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.kp-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 28px; padding: 4px; border-radius: 14px; background: #f2f4f8; }
.kp-auth__tabs button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--kp-muted); font: 600 15px var(--kp-font); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.kp-auth__tabs button[aria-selected="true"] { background: #fff; color: var(--kp-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.kp-auth #customer_login { display: block; width: auto; margin: 0; }
.kp-auth #customer_login .u-column1, .kp-auth #customer_login .u-column2 { float: none; width: auto; max-width: none; padding: 0; }
.kp-auth[data-tab="login"] #customer_login .u-column2, .kp-auth[data-tab="register"] #customer_login .u-column1 { display: none; }
.kp-auth:not([data-tab]) #customer_login .u-column2 { margin-top: 32px; padding-top: 32px; border-top: 1px solid #eceef5; }
.kp-auth[data-tab] #customer_login h2 { display: none; }
.kp-auth #customer_login h2 { margin-bottom: 16px; }
.kp-wc .kp-auth form.login, .kp-wc .kp-auth form.register { margin: 0; padding: 0; border: 0; border-radius: 0; }
.kp-auth .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.kp-auth .woocommerce-form-login__submit, .kp-auth .woocommerce-form-register__submit { width: 100%; min-height: 52px; font-size: 16px; float: none !important; margin: 0 !important; }
.kp-auth .woocommerce-form-login__rememberme { margin: 0; }
.kp-auth .lost_password { margin: 14px 0 0; text-align: center; font-size: 14px; }
.kp-auth .woocommerce-privacy-policy-text p, .kp-auth .woocommerce-form-register p:not(.form-row) { color: var(--kp-muted); font-size: 13.5px; }
.kp-auth__foot { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #eceef5; color: var(--kp-muted); font-size: 13px; }
.kp-auth-page .woocommerce > .woocommerce-notices-wrapper { max-width: 1060px; margin: 0 auto; }
@media (max-width: 860px) { .kp-auth { grid-template-columns: 1fr; } .kp-auth__brand { padding: 32px 28px; } .kp-auth__brand ul { display: none; } .kp-auth__brand p { margin: 0; } }
/* Lost / reset password */
.kp-wc .woocommerce-ResetPassword, .kp-wc form.lost_reset_password { max-width: 520px; margin: 0 auto; padding: 32px; border: 1px solid #eceef5; border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -30px rgba(16, 24, 40, .25); }
.kp-wc .woocommerce-ResetPassword .form-row-first { width: 100%; float: none; }
.kp-wc .woocommerce-ResetPassword .button { width: 100%; }

/* ---------- My account ---------- */
.kp-account .woocommerce, .kp-account-dashboard .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.kp-account .woocommerce::before, .kp-account .woocommerce::after, .kp-account-dashboard .woocommerce::before, .kp-account-dashboard .woocommerce::after { display: none; }
.kp-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.kp-wc .woocommerce-MyAccount-navigation, .kp-wc .woocommerce-MyAccount-content { float: none; width: auto; }
.kp-wc .woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--kp-header-h) + 20px); }
.kp-wc .woocommerce-MyAccount-navigation ul { margin: 0; padding: 10px; list-style: none; border: 1px solid #eceef5; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px -24px rgba(16, 24, 40, .14); }
.kp-wc .woocommerce-MyAccount-navigation li { margin: 0; }
.kp-wc .woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--kp-text); font-weight: 500; font-size: 15px; text-decoration: none; transition: background .15s, color .15s; }
.kp-wc .woocommerce-MyAccount-navigation a { --kp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E"); }
.kp-wc .woocommerce-MyAccount-navigation a::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; opacity: .75; -webkit-mask: var(--kp-nav-icon) center / contain no-repeat; mask: var(--kp-nav-icon) center / contain no-repeat; }
.kp-wc .woocommerce-MyAccount-navigation a:hover { background: #f5f6fa; color: var(--kp-ink); }
.kp-wc .woocommerce-MyAccount-navigation .is-active a { background: var(--kp-primary-soft); color: var(--kp-primary); font-weight: 600; }
.kp-wc .woocommerce-MyAccount-navigation .is-active a::before { opacity: 1; }
.kp-wc .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px !important; padding-top: 8px; border-top: 1px solid #eceef5; }
.kp-wc .woocommerce-MyAccount-navigation-link--customer-logout a { color: #b42318; }
.kp-wc .woocommerce-MyAccount-navigation-link--dashboard a { --kp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E"); }
.kp-wc .woocommerce-MyAccount-navigation-link--orders a { --kp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.kp-wc .woocommerce-MyAccount-navigation-link--licenses a { --kp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3Cpath d='m21 2-9.6 9.6M15.5 7.5l3 3L22 7l-3-3'/%3E%3C/svg%3E"); }
.kp-wc .woocommerce-MyAccount-navigation-link--subscriptions a { --kp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 4v6h-6M1 20v-6h6'/%3E%3Cpath d='M3.5 9a9 9 0 0 1 14.9-3.4L23 10M1 14l4.6 4.4A9 9 0 0 0 20.5 15'/%3E%3C/svg%3E"); }
.kp-wc .woocommerce-MyAccount-navigation-link--downloads a { --kp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E"); }
.kp-wc .woocommerce-MyAccount-navigation-link--edit-address a { --kp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.kp-wc .woocommerce-MyAccount-navigation-link--payment-methods a { --kp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2'/%3E%3Cpath d='M1 10h22'/%3E%3C/svg%3E"); }
.kp-wc .woocommerce-MyAccount-navigation-link--edit-account a { --kp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.kp-wc .woocommerce-MyAccount-navigation-link--customer-logout a { --kp-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }
.kp-wc .woocommerce-MyAccount-content { min-width: 0; }
.kp-wc .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.kp-account-dashboard .woocommerce-MyAccount-content > p { display: none; } /* WooCommerce's default dashboard text – replaced by the tiles. */
.kp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.kp-tile { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid #eceef5; border-radius: 18px; background: #fff; color: var(--kp-text); text-decoration: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: transform .2s, box-shadow .2s, border-color .2s; }
.kp-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--kp-primary) 35%, #eceef5); box-shadow: 0 20px 40px -20px rgba(16, 24, 40, .25); color: var(--kp-text); }
.kp-tile__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--kp-primary-soft); color: var(--kp-primary); }
.kp-tile__icon .kp-icon { width: 22px; height: 22px; }
.kp-tile__body { display: flex; flex-direction: column; min-width: 0; }
.kp-tile__body strong { color: var(--kp-ink); font-size: 16px; }
.kp-tile__body span { color: var(--kp-muted); font-size: 14px; overflow-wrap: anywhere; }
.kp-tile > .kp-icon { margin-left: auto; color: #b8c0cc; transition: transform .2s, color .2s; }
.kp-tile:hover > .kp-icon { transform: translateX(3px); color: var(--kp-primary); }
.kp-wc .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.kp-wc .woocommerce-Addresses::before, .kp-wc .woocommerce-Addresses::after { display: none; }
.kp-wc .woocommerce-Addresses .woocommerce-Address { float: none; width: auto; }
.kp-wc .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: center; }
.kp-wc .woocommerce-Address-title h2, .kp-wc .woocommerce-Address-title h3 { margin: 0; }
.kp-wc address { font-style: normal; line-height: 1.7; }
.kp-wc .woocommerce-MyAccount-content .woocommerce-pagination { display: flex; gap: 8px; }
@media (max-width: 900px) {
	.kp-account .woocommerce, .kp-account-dashboard .woocommerce { grid-template-columns: 1fr; gap: 20px; }
	.kp-wc .woocommerce-MyAccount-navigation { position: static; }
	.kp-wc .woocommerce-MyAccount-navigation ul { display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: none; }
	.kp-wc .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	.kp-wc .woocommerce-MyAccount-navigation a { white-space: nowrap; padding: 9px 12px; }
	.kp-wc .woocommerce-MyAccount-navigation-link--customer-logout { margin: 0 !important; padding: 0; border: 0; }
	.kp-wc table.shop_table_responsive thead { display: none; }
	.kp-wc table.shop_table_responsive tr { display: block; padding: 8px 0; border-bottom: 1px solid #f0f2f7; }
	.kp-wc table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 18px; border: 0; text-align: right !important; }
	.kp-wc table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: var(--kp-muted); text-align: left; }
}

/* License cards (License Server plugin) */
.aicls-licenses { display: grid; gap: 20px; }
.aicls-license { padding: 24px; border: 1px solid #eceef5; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px -24px rgba(16, 24, 40, .14); }
.aicls-license__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.aicls-license h3 { margin: 0 0 6px; font-size: 1.15rem; }
.aicls-license__key { display: flex; gap: 8px; align-items: stretch; margin: 18px 0; }
.aicls-license__key code { flex: 1; display: flex; align-items: center; padding: 12px 16px; border: 1.5px dashed color-mix(in srgb, var(--kp-primary) 35%, #d6dbe4); border-radius: 12px; background: var(--kp-primary-soft); color: var(--kp-ink); font: 600 15px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; overflow-x: auto; white-space: nowrap; }
.aicls-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.aicls-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.aicls-badge--active { background: #dcfae6; color: #067647; }
.aicls-badge--expired { background: #fef0c7; color: #93370d; }
.aicls-badge--revoked { background: #fee4e2; color: #b42318; }
.aicls-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: var(--kp-muted); font-size: 14px; }
.aicls-sites { margin: 0; padding: 0; list-style: none; border-top: 1px solid #f0f2f7; }
.aicls-sites li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f2f7; font-size: 15px; }
.aicls-sites form { margin: 0; }
.aicls-sites button { padding: 0; border: 0; background: none; color: #b42318; cursor: pointer; font-size: 14px; text-decoration: underline; }
.aicls-renew-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #f6fef9; color: #067647; font-size: 14px; }
.aicls-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Checkout (blocks) ---------- */
.kp-checkout .kp-section--page { padding-top: 28px; }
.kp-wc .wc-block-checkout { margin-top: 8px; }
.kp-wc .wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 32px; }
.kp-wc .wc-block-checkout__form { counter-reset: kp-step; }
.kp-wc .wc-block-checkout__form > .wc-block-components-checkout-step,
.kp-wc .wc-block-components-express-payment--checkout {
	margin: 0 0 20px; padding: 26px 28px 28px; border: 1px solid #eceef5; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 40px -28px rgba(16, 24, 40, .18);
}
.kp-wc .wc-block-checkout__form > .wc-block-components-checkout-step { counter-increment: kp-step; }
.kp-wc .wc-block-components-checkout-step__heading { margin: 0 0 16px; }
.kp-wc .wc-block-components-checkout-step__title { display: flex; align-items: center; gap: 12px; margin: 0; font: 700 1.15rem/1.3 var(--kp-font-head); color: var(--kp-ink); }
.kp-wc .wc-block-checkout__form > .wc-block-components-checkout-step .wc-block-components-checkout-step__title::before {
	content: counter(kp-step); display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--kp-gradient); color: #fff; font-size: 14px; font-weight: 800;
}
.kp-wc .wc-block-components-checkout-step__container::after, .kp-wc .wc-block-components-checkout-step::after { display: none; }
.kp-wc .wc-block-components-checkout-step { padding-left: 28px !important; }
.kp-wc .wc-block-components-checkout-step__description { color: var(--kp-muted); font-size: 14px; }
.kp-wc .wc-block-components-express-payment--checkout { border-style: solid; }
.kp-wc .wc-block-components-express-payment__title-container::before, .kp-wc .wc-block-components-express-payment__title-container::after { border-color: #eceef5 !important; }
.kp-wc .wc-block-components-express-payment__title { color: var(--kp-ink); font-weight: 700; }
.kp-wc .wc-block-components-express-payment-continue-rule { margin: 4px 0 20px; color: var(--kp-muted); font-size: 13px; }
.kp-wc .wc-block-components-express-payment-continue-rule::before, .kp-wc .wc-block-components-express-payment-continue-rule::after { border-color: #e4e7ec; }
.kp-wc .wc-block-components-express-payment__event-buttons > li { border-radius: 10px; overflow: hidden; }

.kp-wc .wc-block-components-text-input input, .kp-wc .wc-block-components-combobox .wc-block-components-combobox-control input, .kp-wc .wc-blocks-components-select__select, .kp-wc .wc-block-components-textarea {
	border: 1.5px solid #d6dbe4 !important; border-radius: 12px !important; background-color: #fff !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.kp-wc .wc-block-components-text-input input:focus, .kp-wc .wc-block-components-combobox .wc-block-components-combobox-control input:focus, .kp-wc .wc-blocks-components-select__select:focus {
	border-color: var(--kp-primary) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--kp-primary) 16%, transparent) !important; outline: none !important;
}
.kp-wc .wc-blocks-components-select__container { border-radius: 12px; }
.kp-wc .wc-block-components-text-input.has-error input { border-color: #f04438 !important; }
.kp-wc .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border-radius: 6px; border-color: #c0c7d2; }
.kp-wc .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--kp-primary); border-color: var(--kp-primary); }
.kp-wc .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }
.kp-wc .wc-block-components-address-form__address_2-toggle, .kp-wc .wc-block-components-checkout-step__description a { font-weight: 600; }

/* Payment methods as selectable cards */
.kp-wc .wc-block-components-radio-control--highlight-checked { border: 0 !important; }
.kp-wc .wc-block-components-radio-control--highlight-checked::after { display: none !important; }
.kp-wc .wc-block-components-radio-control-accordion-option { margin-bottom: 10px; border: 1.5px solid #e4e7ec !important; border-radius: 14px !important; background: #fff; box-shadow: none !important; transition: border-color .15s, box-shadow .15s; }
.kp-wc .wc-block-components-radio-control-accordion-option::after { display: none !important; }
.kp-wc .wc-block-components-radio-control-accordion-option:hover { border-color: #c0c7d2 !important; }
.kp-wc .wc-block-components-radio-control-accordion-option--checked-option-highlighted { border-color: var(--kp-primary) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--kp-primary) 12%, transparent) !important; }
.kp-wc .wc-block-components-radio-control__option { padding-top: 16px; padding-bottom: 16px; }
.kp-wc .wc-block-components-radio-control__input:checked { border-color: var(--kp-primary); }
.kp-wc .wc-block-components-radio-control__input:checked::before { background: var(--kp-primary); }
.kp-wc .wc-block-components-radio-control__label { color: var(--kp-ink); font-weight: 600; }
.kp-wc .wc-block-components-radio-control-accordion-content { padding-bottom: 18px; }

/* Order notes are not needed for a digital product. */
.kp-wc .wc-block-checkout__add-note, .kp-wc .wc-block-checkout__order-notes { display: none !important; }

/* Terms + place order */
.kp-wc .wc-block-checkout__terms { margin: 4px 0 16px; padding: 0; border: 0; color: var(--kp-muted); font-size: 13.5px; }
.kp-wc .wc-block-checkout__actions { padding: 0; }
.kp-wc .wc-block-checkout__actions_row { gap: 16px; }
.kp-wc .wc-block-components-checkout-return-to-cart-button { display: none; }
.kp-wc .wc-block-components-checkout-place-order-button { width: 100%; min-height: 58px; font-size: 17px !important; border-radius: 14px !important; }
.kp-wc .wc-block-components-checkout-place-order-button::before { content: ""; width: 18px; height: 18px; margin-right: 4px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Order summary: sticky card */
.kp-wc .wc-block-checkout__sidebar { position: sticky; top: calc(var(--kp-header-h) + 16px); padding: 0 !important; background: none !important; }
.kp-wc .wp-block-woocommerce-checkout-order-summary-block { border: 1px solid #eceef5 !important; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 50px -28px rgba(16, 24, 40, .25); }
.kp-wc .wc-block-components-checkout-order-summary__title { padding: 20px 24px; margin: 0; border-bottom: 1px solid #f0f2f7; background: #f9fafc; }
.kp-wc .wc-block-components-checkout-order-summary__title-text { font: 700 1.05rem var(--kp-font-head); color: var(--kp-ink); }
.kp-wc .wc-block-components-order-summary { padding: 8px 24px 0 !important; }
.kp-wc .wc-block-components-order-summary-item { padding: 16px 0; }
.kp-wc .wc-block-components-order-summary-item__image:has(img[src*="placeholder"]) { display: none; }
.kp-wc .wc-block-components-order-summary-item__description { padding-left: 0 !important; }
.kp-wc .wc-block-components-product-name { color: var(--kp-ink); font-weight: 700; font-size: 16px; }
.kp-wc .wc-block-components-order-summary-item__description .wc-block-components-product-metadata { color: var(--kp-muted); font-size: 13.5px; }
.kp-wc .wc-block-components-order-summary-item__description ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.kp-wc .wc-block-components-order-summary-item__description li::before { content: "✓"; margin-right: 6px; color: var(--kp-accent); font-weight: 700; }
.kp-wc .wc-block-components-totals-wrapper { padding-left: 24px !important; padding-right: 24px !important; border-color: #f0f2f7 !important; }
.kp-wc .wc-block-components-totals-footer-item .wc-block-components-totals-item__label, .kp-wc .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font: 800 1.35rem var(--kp-font-head); color: var(--kp-ink); }
.kp-wc .wc-block-components-totals-coupon-link, .kp-wc .wc-block-components-panel__button { font-weight: 600; color: var(--kp-primary); }

/* Trust strip under the checkout */
.kp-checkout-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 28px 0 0; padding: 18px 20px; list-style: none; border: 1px dashed #dfe3ea; border-radius: 16px; background: #fff; color: var(--kp-muted); font-size: 14px; }
.kp-checkout-trust li { display: flex; align-items: center; gap: 8px; }
.kp-checkout-trust .kp-icon { width: 18px; height: 18px; color: var(--kp-accent); }
#order_review .kp-checkout-trust { display: grid; justify-content: start; margin-top: 16px; padding: 14px 16px; }

@media (max-width: 700px) {
	.kp-wc .wc-block-checkout__form > .wc-block-components-checkout-step, .kp-wc .wc-block-components-express-payment--checkout { padding: 20px 18px 22px; border-radius: 16px; }
	.kp-wc .wc-block-checkout__sidebar { position: static; margin-bottom: 20px; }
}

/* ---------- Checkout (classic, if used) ---------- */
.kp-wc form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0 32px; align-items: start; }
.kp-wc form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.kp-wc form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; padding: 28px; border: 1px solid #eceef5; border-radius: 20px; background: #fff; }
.kp-wc form.checkout #customer_details .col-1, .kp-wc form.checkout #customer_details .col-2 { width: 100%; float: none; }
.kp-wc #order_review_heading, .kp-wc #order_review { grid-column: 2; }
.kp-wc #order_review_heading { margin: 0; padding: 22px 24px; border: 1px solid #eceef5; border-bottom: 0; border-radius: 20px 20px 0 0; background: #f9fafc; }
.kp-wc #order_review { padding: 8px 24px 24px; border: 1px solid #eceef5; border-top: 0; border-radius: 0 0 20px 20px; background: #fff; position: sticky; top: 24px; }
.kp-wc .woocommerce-checkout-review-order-table { border: 0 !important; }
.kp-wc #payment { background: transparent; }
.kp-wc #payment ul.payment_methods { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; border: 0; }
.kp-wc #payment ul.payment_methods li { padding: 14px 16px; border: 1.5px solid #e4e7ec; border-radius: 14px; background: #fff; }
.kp-wc #payment div.payment_box { margin: 10px 0 0; background: #f6f7fb; border-radius: 10px; color: var(--kp-muted); font-size: 14px; }
.kp-wc #payment div.payment_box::before { display: none; }
.kp-wc #place_order { width: 100%; min-height: 58px; font-size: 17px; }
@media (max-width: 900px) {
	.kp-wc form.checkout { grid-template-columns: 1fr; }
	.kp-wc form.checkout #customer_details, .kp-wc #order_review_heading, .kp-wc #order_review { grid-column: 1; grid-row: auto; }
	.kp-wc form.checkout #customer_details { margin-bottom: 24px; padding: 22px; }
	.kp-wc #order_review { position: static; }
}

/* ---------- Thank-you page ---------- */
.kp-thankyou .woocommerce-order { max-width: 860px; margin: 0 auto; }
.kp-wc .woocommerce-thankyou-order-received {
	position: relative; margin: 0 0 24px; padding: 88px 28px 32px; border-radius: 24px; text-align: center;
	background: radial-gradient(400px 200px at 50% 0%, rgba(255, 255, 255, .25), transparent 70%), var(--kp-gradient); color: #fff; font: 800 clamp(1.3rem, 2.6vw, 1.7rem)/1.35 var(--kp-font-head);
	box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--kp-primary) 70%, transparent);
}
.kp-wc .woocommerce-thankyou-order-received::before {
	content: ""; position: absolute; top: 24px; left: 50%; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%;
	background: rgba(255, 255, 255, .2) center / 26px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	box-shadow: 0 0 0 8px rgba(255, 255, 255, .1);
}
.kp-wc .woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.kp-wc ul.woocommerce-order-overview.order_details::before, .kp-wc ul.woocommerce-order-overview.order_details::after { display: none; }
.kp-wc ul.woocommerce-order-overview.order_details li { float: none; font-size: 12px; line-height: 1.4; margin: 0; padding: 14px 16px; border: 1px solid #eceef5 !important; border-radius: 14px; background: #fff; color: var(--kp-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.kp-wc ul.woocommerce-order-overview.order_details li strong { display: block; margin-top: 4px; color: var(--kp-ink); font-size: 15px; text-transform: none; letter-spacing: 0; }
.kp-next { margin: 0 0 24px; padding: 28px; border: 1px solid #eceef5; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px -24px rgba(16, 24, 40, .14); }
.kp-next h2 { margin: 0 0 18px; }
.kp-next ol { margin: 0; padding: 0; list-style: none; counter-reset: kp-next; display: grid; gap: 16px; }
.kp-next li { position: relative; display: grid; gap: 4px; padding-left: 48px; counter-increment: kp-next; }
.kp-next li::before { content: counter(kp-next); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--kp-primary-soft); color: var(--kp-primary); font-weight: 800; }
.kp-next li strong { color: var(--kp-ink); }
.kp-next li span { color: var(--kp-muted); font-size: 15px; }
.kp-next li .kp-btn { justify-self: start; margin-top: 6px; }
.kp-wc .woocommerce-order-details { margin-bottom: 24px; }
.kp-wc .woocommerce-order-details__title, .kp-wc .woocommerce-column__title { margin-top: 0; }
.kp-wc .woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kp-wc .woocommerce-customer-details .woocommerce-column { width: auto; float: none; }
.aicls-key { margin-top: 10px !important; padding: 14px 16px !important; border: 1.5px dashed color-mix(in srgb, var(--kp-primary) 45%, #d6dbe4) !important; border-radius: 14px !important; background: var(--kp-primary-soft); }
.aicls-key code { background: #fff; padding: 4px 10px; border-radius: 8px; font: 700 15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.kp-wc .woocommerce-order-downloads { margin-bottom: 24px; }

/* ---------- Cart (rarely seen with direct checkout) ---------- */
.kp-wc .wc-block-cart .wc-block-cart-items { border: 1px solid #eceef5; border-radius: 20px; background: #fff; }
.kp-wc .wc-block-cart__sidebar .wc-block-components-sidebar { padding: 24px; border: 1px solid #eceef5; border-radius: 20px; background: #fff; }
.kp-wc .wc-block-cart__submit-button { width: 100%; min-height: 56px; }
