/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4 — scoped CorteX public-store overrides preserve the approved Instant storefront language. */

/*
 * Instant × CorteX Store public compatibility layer.
 *
 * Every selector begins at the theme's shortcode-service wrapper or a CorteX
 * public component class. No admin screens, plugin logic, or generic site
 * controls are affected here.
 */

.instant-entry--store {
	padding-block: clamp( var(--space-6), 4vw, var(--space-12) );
}

.instant-entry--store :is(
	.cortex-single-wrap,
	.cortex-cart-wrap,
	.cortex-checkout-wrap,
	.cortex-account-shell,
	.casl-products-shortcode,
	.cortex-categories-shortcode
) {
	color: var(--color-ink);
	font-family: var(--font-body);
}

.instant-entry--store :is(
	.cortex-single-title,
	.cortex-single-details-title,
	.cortex-single-size-guide-title,
	.cortex-product-reviews__title,
	.cortex-checkout-card h3,
	.cortex-checkout-success-card h3,
	.cortex-account-auth-hero__title,
	.cortex-account-header__title
) {
	color: var(--color-ink);
	font-family: var(--font-display);
	font-style: normal;
	letter-spacing: -0.035em;
}

.instant-entry--store :is(
	.cortex-single-description,
	.cortex-single-long-description,
	.cortex-product-reviews__intro,
	.cortex-product-review-card__body,
	.cortex-checkout-wrap,
	.cortex-account-shell
) {
	color: var(--color-ink-2);
	line-height: var(--leading-copy);
}

.instant-entry--store :is(
	.cortex-single-empty,
	.cortex-cart-empty,
	.cortex-checkout-empty,
	.cortex-account-empty,
	.cortex-product-reviews__empty
) {
	border: 0.0625rem dashed var(--color-rule-strong);
	border-radius: var(--radius-md);
	background: var(--color-white);
	box-shadow: none;
	color: var(--color-muted);
	padding: var(--space-8);
	text-align: center;
}

.instant-entry--store :is(
	.cortex-single-add-btn,
	.cortex-product-review-form__submit,
	.cortex-cart-checkout-btn,
	.cortex-checkout-btn,
	.cortex-checkout-success-card__button,
	.cortex-account-button
) {
	align-items: center;
	background: var(--color-accent);
	border: 0.0625rem solid var(--color-accent);
	border-radius: var(--radius-sm);
	box-shadow: none;
	color: var(--color-accent-ink);
	cursor: pointer;
	display: inline-flex;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 800;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1.2;
	min-height: var(--control-height);
	padding: var(--space-3) var(--space-5);
	text-align: center;
	text-decoration: none;
	text-transform: none;
	transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.instant-entry--store :is(
	.cortex-single-add-btn,
	.cortex-product-review-form__submit,
	.cortex-cart-checkout-btn,
	.cortex-checkout-btn,
	.cortex-checkout-success-card__button,
	.cortex-account-button
):hover {
	background: var(--color-accent-text);
	border-color: var(--color-accent-text);
	box-shadow: none;
	color: var(--color-accent-ink);
	filter: none;
	transform: translateY(-0.0625rem);
}

.instant-entry--store :is(
	.cortex-single-add-btn,
	.cortex-product-review-form__submit,
	.cortex-cart-checkout-btn,
	.cortex-checkout-btn,
	.cortex-checkout-success-card__button,
	.cortex-account-button
):active {
	transform: translateY(0);
}

.instant-entry--store :is(
	.cortex-single-add-btn,
	.cortex-product-review-form__submit,
	.cortex-cart-checkout-btn,
	.cortex-checkout-btn,
	.cortex-checkout-success-card__button,
	.cortex-account-button,
	.cortex-cart-remove,
	.cortex-cart-qty-btn,
	.cortex-single-size-option,
	.cortex-single-gallery-thumb,
	.cortex-product-review-stars__button,
	.cortex-account-tabs__link,
	.cortex-account-logout
):focus-visible {
	outline: 0.1875rem solid var(--color-focus);
	outline-offset: 0.1875rem;
}

.instant-entry--store :is(
	.cortex-single-add-btn,
	.cortex-product-review-form__submit,
	.cortex-checkout-btn,
	.cortex-account-button
):disabled {
	background: var(--color-disabled);
	border-color: var(--color-disabled);
	box-shadow: none;
	color: var(--color-white);
	transform: none;
}

/* Product detail and reviews. */
.instant-entry--store .cortex-single-wrap {
	margin: 0 auto;
	max-width: var(--shell);
}

.instant-entry--store .cortex-single-card {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

.instant-entry--store .cortex-single-grid {
	gap: clamp( var(--space-6), 4vw, var(--space-12) );
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	padding: clamp( var(--space-5), 3vw, var(--space-8) );
}

.instant-entry--store .cortex-single-image-shell {
	background: var(--color-paper-2);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-md);
	box-shadow: none;
	padding: 0;
}

.instant-entry--store :is(.cortex-single-image, .cortex-single-image-placeholder) {
	aspect-ratio: 4 / 5;
	background: var(--color-paper-2);
	border-radius: calc(var(--radius-md) - 0.0625rem);
	height: auto;
	object-fit: contain;
}

.instant-entry--store .cortex-single-image-shell:hover .cortex-single-image {
	filter: none;
	transform: none;
}

.instant-entry--store .cortex-single-gallery {
	gap: var(--space-2);
	margin-top: var(--space-3);
}

.instant-entry--store .cortex-single-gallery-thumb {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-sm);
	box-shadow: none;
	width: 4.5rem;
}

.instant-entry--store .cortex-single-gallery-thumb:hover,
.instant-entry--store .cortex-single-gallery-thumb.is-active {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 0.125rem var(--color-accent-soft);
	transform: none;
}

.instant-entry--store .cortex-single-content-col {
	min-width: 0;
}

.instant-entry--store .cortex-single-title {
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 900;
	line-height: 0.98;
	margin: var(--space-1) 0 var(--space-4);
	overflow-wrap: anywhere;
}

.instant-entry--store .cortex-single-price,
.instant-entry--store .cortex-order-total strong,
.instant-entry--store .cortex-cart-total strong {
	color: var(--color-ink);
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	font-weight: 900;
	letter-spacing: -0.03em;
}

.instant-entry--store :is(.cortex-price-sale, .casl-sale-price) {
	color: var(--color-accent-text);
}

.instant-entry--store :is(.cortex-price-regular, .casl-regular-price) {
	color: var(--color-muted);
}

.instant-entry--store .cortex-single-stock {
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-pill);
	font-size: var(--text-xs);
	font-weight: 800;
	letter-spacing: 0.02em;
	margin-bottom: var(--space-5);
	padding: var(--space-1) var(--space-3);
}

.instant-entry--store .cortex-single-stock.is-in {
	background: color-mix(in oklch, var(--color-success) 12%, var(--color-white));
	border-color: color-mix(in oklch, var(--color-success) 36%, var(--color-rule));
	color: var(--color-success);
}

.instant-entry--store .cortex-single-stock.is-out {
	background: var(--color-japan-soft);
	border-color: color-mix(in oklch, var(--color-japan) 30%, var(--color-rule));
	color: var(--color-japan);
}

.instant-entry--store .cortex-single-description {
	margin-bottom: var(--space-6);
}

.instant-entry--store .cortex-single-details,
.instant-entry--store .cortex-single-size-guide {
	background: var(--color-paper-2);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-md);
	box-shadow: none;
}

.instant-entry--store .cortex-single-details-row {
	padding: 0 clamp( var(--space-5), 3vw, var(--space-8) ) clamp( var(--space-5), 3vw, var(--space-8) );
}

.instant-entry--store .cortex-single-details-title,
.instant-entry--store .cortex-single-size-guide-title {
	font-size: var(--text-lg);
	font-weight: 900;
}

.instant-entry--store .cortex-single-size-label,
.instant-entry--store .cortex-product-reviews__eyebrow,
.instant-entry--store .cortex-product-reviews__summary-label {
	color: var(--color-muted);
	font-size: var(--text-xs);
	font-weight: 800;
	letter-spacing: 0.08em;
}

.instant-entry--store .cortex-single-size-option {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-sm);
	box-shadow: none;
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	letter-spacing: 0;
	min-height: var(--control-height);
	text-transform: none;
}

.instant-entry--store .cortex-single-size-option:hover,
.instant-entry--store .cortex-single-size-option.is-active {
	background: var(--color-accent-soft);
	border-color: var(--color-accent);
	box-shadow: none;
	color: var(--color-ink);
	transform: none;
}

.instant-entry--store .cortex-single-purchase {
	border-color: var(--color-rule);
	padding-top: var(--space-5);
}

.instant-entry--store .cortex-single-qty-label {
	color: var(--color-ink);
	font-size: var(--text-sm);
}

.instant-entry--store .cortex-single-purchase-row {
	gap: var(--space-3);
}

.instant-entry--store .cortex-single-qty-input {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule-strong);
	border-radius: var(--radius-sm);
	box-shadow: none;
	color: var(--color-ink);
	min-height: var(--control-height);
}

.instant-entry--store .cortex-single-qty-input:focus {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 0.1875rem var(--color-accent-soft);
	outline: none;
}

.instant-entry--store .cortex-single-add-btn {
	min-width: 11rem;
}

.instant-entry--store .cortex-product-reviews {
	background: var(--color-paper-2);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-lg);
	box-shadow: none;
	margin: 0 clamp( var(--space-5), 3vw, var(--space-8) ) clamp( var(--space-5), 3vw, var(--space-8) );
	padding: clamp( var(--space-5), 3vw, var(--space-8) );
	width: auto;
}

.instant-entry--store .cortex-product-reviews__title {
	font-size: var(--text-xl);
	font-weight: 900;
}

.instant-entry--store .cortex-product-reviews__summary,
.instant-entry--store .cortex-product-review-card,
.instant-entry--store .cortex-product-review-form-shell {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-md);
	box-shadow: none;
}

.instant-entry--store .cortex-product-reviews__summary-score {
	color: var(--color-ink);
	font-family: var(--font-display);
	font-weight: 900;
}

.instant-entry--store .cortex-product-review-card__avatar {
	background: var(--color-accent-soft);
	color: var(--color-accent-text);
}

.instant-entry--store :is(.cortex-product-review-stars-display__star.is-active, .cortex-product-review-stars__button.is-active) {
	color: var(--color-accent-text);
	text-shadow: none;
}

.instant-entry--store .cortex-product-review-stars__button {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-sm);
	box-shadow: none;
}

.instant-entry--store .cortex-product-review-stars__button:hover,
.instant-entry--store .cortex-product-review-stars__button.is-active {
	background: var(--color-accent-soft);
	border-color: var(--color-accent);
	box-shadow: none;
	transform: none;
}

.instant-entry--store :is(
	.cortex-product-review-form input,
	.cortex-product-review-form textarea,
	.cortex-checkout-form input[type="text"],
	.cortex-checkout-form input[type="email"],
	.cortex-checkout-form textarea,
	.cortex-account-form input
) {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule-strong);
	border-radius: var(--radius-sm);
	box-shadow: none;
	color: var(--color-ink);
	font-family: var(--font-body);
	min-height: var(--control-height);
}

.instant-entry--store :is(
	.cortex-product-review-form input,
	.cortex-product-review-form textarea,
	.cortex-checkout-form input[type="text"],
	.cortex-checkout-form input[type="email"],
	.cortex-checkout-form textarea,
	.cortex-account-form input
):focus {
	background: var(--color-white);
	border-color: var(--color-accent);
	box-shadow: 0 0 0 0.1875rem var(--color-accent-soft);
	outline: none;
}

.instant-entry--store :is(.cortex-product-review-form textarea, .cortex-checkout-form textarea) {
	min-height: 8.5rem;
	resize: vertical;
}

.instant-entry--store .cortex-product-review-form__message.is-error,
.instant-entry--store .cortex-checkout-message.is-error,
.instant-entry--store .cortex-cart-payment-message.is-error,
.instant-entry--store .cortex-account-notice.is-error {
	background: var(--color-japan-soft);
	border-color: color-mix(in oklch, var(--color-japan) 30%, var(--color-rule));
	color: var(--color-japan);
}

.instant-entry--store .cortex-product-review-form__message.is-success,
.instant-entry--store .cortex-checkout-message.is-success,
.instant-entry--store .cortex-account-notice.is-success {
	background: color-mix(in oklch, var(--color-success) 12%, var(--color-white));
	border-color: color-mix(in oklch, var(--color-success) 36%, var(--color-rule));
	color: var(--color-success);
}

/* Cart: retain CorteX actions while making the table fit a normal desktop. */
.instant-entry--store .cortex-cart-wrap {
	margin: 0 auto;
	max-width: var(--shell);
}

.instant-entry--store .cortex-cart-payment-message {
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-4);
	padding: var(--space-3) var(--space-4);
}

.instant-entry--store .cortex-cart-table-wrap {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-lg);
	box-shadow: none;
	overflow: visible;
}

.instant-entry--store .cortex-cart-table {
	min-width: 0;
	table-layout: fixed;
	width: 100%;
}

.instant-entry--store .cortex-cart-table :is(th, td) {
	border-color: var(--color-rule);
	padding: var(--space-4);
}

.instant-entry--store .cortex-cart-table th {
	background: var(--color-paper-2);
	color: var(--color-muted);
	font-size: var(--text-xs);
	font-weight: 800;
	letter-spacing: 0.06em;
}

.instant-entry--store .cortex-cart-table :is(th, td):nth-child(1) {
	width: 43%;
}

.instant-entry--store .cortex-cart-table :is(th, td):nth-child(2) {
	width: 13%;
}

.instant-entry--store .cortex-cart-table :is(th, td):nth-child(3) {
	width: 18%;
}

.instant-entry--store .cortex-cart-table :is(th, td):nth-child(4) {
	width: 15%;
}

.instant-entry--store .cortex-cart-table :is(th, td):nth-child(5) {
	padding-inline: var(--space-3);
	width: 11%;
}

.instant-entry--store .cortex-cart-product {
	gap: var(--space-3);
	grid-template-columns: 4.5rem minmax(0, 1fr);
}

.instant-entry--store .cortex-cart-product-image {
	background: var(--color-paper-2);
	border-color: var(--color-rule);
	border-radius: var(--radius-sm);
	width: 4.5rem;
}

.instant-entry--store .cortex-cart-product-meta strong {
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: 800;
	overflow-wrap: anywhere;
}

.instant-entry--store .cortex-cart-product-size {
	color: var(--color-muted);
	font-size: var(--text-xs);
	letter-spacing: 0.04em;
}

.instant-entry--store :is(.cortex-cart-price, .cortex-cart-subtotal) {
	color: var(--color-ink);
	font-size: var(--text-sm);
	font-weight: 700;
	overflow-wrap: anywhere;
	white-space: normal;
}

.instant-entry--store .cortex-cart-qty-controls {
	background: var(--color-white);
	border-color: var(--color-rule-strong);
	border-radius: var(--radius-sm);
	gap: var(--space-1);
	padding: var(--space-1);
}

.instant-entry--store .cortex-cart-qty-btn {
	background: var(--color-paper-2);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-sm);
	box-shadow: none;
	color: var(--color-ink);
	font-size: var(--text-lg);
	transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.instant-entry--store .cortex-cart-qty-btn:hover {
	background: var(--color-accent-soft);
	border-color: var(--color-accent);
	filter: none;
	transform: none;
}

.instant-entry--store .cortex-cart-qty-value {
	color: var(--color-ink);
}

.instant-entry--store .cortex-cart-actions {
	text-align: center;
}

.instant-entry--store .cortex-cart-remove {
	background: var(--color-transparent);
	border: 0.0625rem solid var(--color-transparent);
	border-radius: var(--radius-sm);
	color: var(--color-japan);
	cursor: pointer;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 800;
	line-height: 1.2;
	min-height: var(--control-height);
	padding: var(--space-2) var(--space-3);
	white-space: nowrap;
}

.instant-entry--store .cortex-cart-remove:hover {
	background: var(--color-japan-soft);
	border-color: color-mix(in oklch, var(--color-japan) 28%, var(--color-rule));
	color: var(--color-japan);
}

.instant-entry--store .cortex-cart-summary {
	align-items: center;
	background: var(--color-paper-2);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-md);
	box-shadow: none;
	display: grid;
	gap: var(--space-5);
	grid-template-columns: minmax(0, 1fr) auto;
	margin: var(--space-5) 0 0 auto;
	max-width: 30rem;
	padding: var(--space-5);
}

.instant-entry--store .cortex-cart-total span {
	color: var(--color-muted);
	font-size: var(--text-xs);
	letter-spacing: 0.06em;
}

.instant-entry--store .cortex-cart-checkout-btn {
	min-width: 12rem;
}

/* Checkout: CSS grid reorders the plugin's existing cards only visually. */
.instant-entry--store .cortex-checkout-wrap {
	margin: 0 auto;
	max-width: var(--shell);
}

.instant-entry--store .cortex-checkout-grid {
	align-items: start;
	gap: clamp( var(--space-5), 3vw, var(--space-8) );
	grid-template-areas: "details summary";
	grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr);
}

.instant-entry--store .cortex-checkout-card {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	padding: clamp( var(--space-5), 3vw, var(--space-8) );
}

.instant-entry--store .cortex-checkout-card:first-child {
	background: var(--color-paper-2);
	grid-area: summary;
}

.instant-entry--store .cortex-checkout-card:last-child {
	grid-area: details;
}

.instant-entry--store .cortex-checkout-card h3 {
	font-size: var(--text-xl);
	font-weight: 900;
	margin-bottom: var(--space-5);
}

.instant-entry--store .cortex-order-items {
	gap: var(--space-3);
}

.instant-entry--store .cortex-order-item {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-sm);
	padding: var(--space-3);
}

.instant-entry--store .cortex-order-item-title,
.instant-entry--store .cortex-order-item-total {
	color: var(--color-ink);
	font-weight: 800;
}

.instant-entry--store :is(.cortex-order-item-meta, .cortex-order-item-size, .cortex-order-total span) {
	color: var(--color-muted);
}

.instant-entry--store .cortex-order-total {
	border-color: var(--color-rule-strong);
	padding-top: var(--space-4);
}

.instant-entry--store .cortex-checkout-form {
	gap: var(--space-2);
}

.instant-entry--store .cortex-checkout-form > label,
.instant-entry--store .cortex-payment-methods > span {
	color: var(--color-ink);
	font-size: var(--text-sm);
	font-weight: 800;
	margin-top: var(--space-2);
}

.instant-entry--store .cortex-checkout-form :is(input[type="text"], input[type="email"]) {
	padding-inline: var(--space-3);
}

.instant-entry--store .cortex-checkout-form textarea {
	padding: var(--space-3);
}

.instant-entry--store .cortex-checkout-account-optin,
.instant-entry--store .cortex-payment-methods label {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-sm);
	color: var(--color-ink-2);
	font-size: var(--text-sm);
	gap: var(--space-2);
	padding: var(--space-3);
}

.instant-entry--store .cortex-checkout-account-optin.is-locked {
	background: var(--color-paper-2);
}

.instant-entry--store .cortex-payment-methods label:has(input:checked) {
	background: var(--color-accent-soft);
	border-color: var(--color-accent);
}

.instant-entry--store .cortex-payment-methods input[type="radio"],
.instant-entry--store .cortex-checkout-account-optin input[type="checkbox"],
.instant-entry--store .cortex-account-checkbox input[type="checkbox"] {
	accent-color: var(--color-accent);
}

.instant-entry--store .cortex-checkout-btn {
	margin-top: var(--space-4);
	width: 100%;
}

.instant-entry--store :is(.cortex-checkout-message, .cortex-account-notice) {
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-sm);
	box-shadow: none;
	padding: var(--space-3) var(--space-4);
}

.instant-entry--store .cortex-checkout-success-card {
	background: color-mix(in oklch, var(--color-success) 8%, var(--color-white));
	border: 0.0625rem solid color-mix(in oklch, var(--color-success) 36%, var(--color-rule));
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	padding: clamp( var(--space-6), 4vw, var(--space-10) );
}

.instant-entry--store .cortex-checkout-success-card h3 {
	color: var(--color-success);
	font-size: var(--text-xl);
	font-weight: 900;
}

.instant-entry--store .cortex-checkout-success-card p {
	color: var(--color-ink-2);
}

.instant-entry--store .cortex-checkout-whatsapp {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule-strong);
	border-radius: var(--radius-sm);
	box-shadow: none;
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 800;
	text-decoration: none;
}

/* Account and orders. */
.instant-entry--store .cortex-account-shell {
	margin: 0 auto;
	max-width: 58rem;
}

.instant-entry--store :is(.cortex-account-auth-hero, .cortex-account-header) {
	margin-bottom: var(--space-6);
}

.instant-entry--store .cortex-account-auth-hero__eyebrow {
	color: var(--color-accent-text);
	font-size: var(--text-xs);
	font-weight: 800;
	letter-spacing: 0.08em;
}

.instant-entry--store :is(.cortex-account-auth-hero__title, .cortex-account-header__title) {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 900;
	line-height: 1;
}

.instant-entry--store .cortex-account-header__copy,
.instant-entry--store .cortex-account-panel__intro,
.instant-entry--store .cortex-account-checkbox {
	color: var(--color-muted);
}

.instant-entry--store .cortex-account-card {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
}

.instant-entry--store .cortex-account-tabs {
	border-bottom: 0.0625rem solid var(--color-rule);
	gap: var(--space-2);
	padding: var(--space-4);
}

.instant-entry--store .cortex-account-tabs__link {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-sm);
	box-shadow: none;
	color: var(--color-muted);
	font-size: var(--text-sm);
	font-weight: 800;
	min-height: var(--control-height);
	padding-inline: var(--space-4);
	transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}

.instant-entry--store .cortex-account-tabs__link:hover,
.instant-entry--store .cortex-account-tabs__link.is-active {
	background: var(--color-accent-soft);
	border-color: var(--color-accent);
	box-shadow: none;
	color: var(--color-ink);
}

.instant-entry--store .cortex-account-panel {
	padding: clamp( var(--space-5), 3vw, var(--space-8) );
}

.instant-entry--store .cortex-account-form {
	gap: var(--space-2);
}

.instant-entry--store .cortex-account-form label {
	color: var(--color-ink);
	font-size: var(--text-sm);
	font-weight: 800;
	margin-top: var(--space-2);
}

.instant-entry--store .cortex-account-checkbox {
	font-size: var(--text-sm);
}

.instant-entry--store .cortex-account-button {
	margin-top: var(--space-3);
	width: fit-content;
}

.instant-entry--store .cortex-account-logout {
	background: var(--color-white);
	border: 0.0625rem solid var(--color-rule-strong);
	border-radius: var(--radius-sm);
	box-shadow: none;
	color: var(--color-ink);
	font-size: var(--text-sm);
	font-weight: 800;
	min-height: var(--control-height);
	padding: var(--space-3) var(--space-4);
	text-decoration: none;
}

.instant-entry--store .cortex-account-logout:hover {
	background: var(--color-paper-2);
	border-color: var(--color-ink);
	box-shadow: none;
	filter: none;
	transform: none;
}

.instant-entry--store .cortex-account-dashboard-grid {
	gap: var(--space-3);
}

.instant-entry--store .cortex-account-stat-card {
	background: var(--color-paper-2);
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-md);
}

.instant-entry--store .cortex-account-stat-card__label {
	color: var(--color-muted);
	font-size: var(--text-xs);
	letter-spacing: 0.06em;
}

.instant-entry--store .cortex-account-stat-card__value {
	color: var(--color-ink);
	font-family: var(--font-display);
	font-weight: 900;
}

.instant-entry--store .cortex-account-orders-table-wrap {
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-md);
	overflow: visible;
}

.instant-entry--store .cortex-account-orders-table {
	background: var(--color-white);
	border: 0;
	border-radius: 0;
	min-width: 0;
	table-layout: fixed;
}

.instant-entry--store .cortex-account-orders-table :is(th, td) {
	border-color: var(--color-rule);
	padding: var(--space-3) var(--space-4);
	overflow-wrap: anywhere;
}

.instant-entry--store .cortex-account-orders-table th {
	background: var(--color-paper-2);
	color: var(--color-muted);
	font-size: var(--text-xs);
	letter-spacing: 0.06em;
}

.instant-entry--store .cortex-account-status-pill {
	border: 0.0625rem solid var(--color-rule);
	border-radius: var(--radius-pill);
	font-size: var(--text-xs);
	font-weight: 800;
}

.instant-entry--store .cortex-account-status-pill.is-pending {
	background: var(--color-accent-soft);
	border-color: color-mix(in oklch, var(--color-accent) 35%, var(--color-rule));
	color: var(--color-accent-text);
}

.instant-entry--store :is(.cortex-account-status-pill.is-processing, .cortex-account-status-pill.is-paid, .cortex-account-status-pill.is-complete) {
	background: color-mix(in oklch, var(--color-success) 12%, var(--color-white));
	border-color: color-mix(in oklch, var(--color-success) 36%, var(--color-rule));
	color: var(--color-success);
}

/* Catalog, category, and search shortcodes retain CorteX data but adopt Instant cards. */
.instant-entry--store .casl-products-shortcode {
	--casl-bg: var(--color-white);
	--casl-text: var(--color-ink);
	--casl-muted: var(--color-muted);
	--casl-border: var(--color-rule);
	--casl-blue: var(--color-accent);
	--casl-blue-soft: var(--color-accent-soft);
	--casl-blue-deep: var(--color-accent-text);
}

.instant-entry--store :is(.casl-product-card, .cortex-category-card, .cortex-products-filter-field) {
	background: var(--color-white);
	border-color: var(--color-rule);
	border-radius: var(--radius-md);
	box-shadow: none;
}

.instant-entry--store :is(.casl-add-to-cart, .cortex-products-apply-filters) {
	background: var(--color-accent);
	border-color: var(--color-accent);
	border-radius: var(--radius-sm);
	box-shadow: none;
	color: var(--color-accent-ink);
}

.instant-entry--store :is(.casl-add-to-cart:hover, .cortex-products-apply-filters:hover) {
	background: var(--color-accent-text);
	border-color: var(--color-accent-text);
	box-shadow: none;
	filter: none;
}

@media (max-width: 59.99rem) {
	.instant-entry--store .cortex-checkout-grid {
	grid-template-areas:
		"details"
		"summary";
		grid-template-columns: minmax(0, 1fr);
	}

	.instant-entry--store .cortex-checkout-card:first-child {
		grid-area: summary;
	}

	.instant-entry--store .cortex-checkout-card:last-child {
		grid-area: details;
	}
}

@media (max-width: 48.99rem) {
	.instant-entry--store .cortex-single-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.instant-entry--store .cortex-single-image,
	.instant-entry--store .cortex-single-image-placeholder {
		aspect-ratio: 1 / 1;
	}

	.instant-entry--store .cortex-product-reviews__header,
	.instant-entry--store .cortex-product-reviews__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.instant-entry--store .cortex-product-reviews__header {
		display: grid;
	}

	.instant-entry--store .cortex-cart-table-wrap,
	.instant-entry--store .cortex-account-orders-table-wrap {
		border: 0;
		border-radius: 0;
		background: var(--color-transparent);
	}

	.instant-entry--store .cortex-cart-table,
	.instant-entry--store .cortex-cart-table :is(thead, tbody, tr, th, td),
	.instant-entry--store .cortex-account-orders-table,
	.instant-entry--store .cortex-account-orders-table :is(thead, tbody, tr, th, td) {
		display: block;
		min-width: 0;
		width: 100%;
	}

	.instant-entry--store :is(.cortex-cart-table, .cortex-account-orders-table) thead {
		display: none;
	}

	.instant-entry--store :is(.cortex-cart-table, .cortex-account-orders-table) tbody {
		display: grid;
		gap: var(--space-3);
	}

	.instant-entry--store :is(.cortex-cart-table, .cortex-account-orders-table) tr {
		background: var(--color-white);
		border: 0.0625rem solid var(--color-rule);
		border-radius: var(--radius-md);
		overflow: hidden;
	}

	.instant-entry--store .cortex-cart-table td,
	.instant-entry--store .cortex-account-orders-table td {
		align-items: center;
		display: flex;
		justify-content: space-between;
		padding: var(--space-3) var(--space-4);
		width: 100%;
	}

	/* Reset desktop column proportions before the cart becomes stacked cards. */
	.instant-entry--store .cortex-cart-table td:nth-child(n) {
		width: 100%;
	}

	.instant-entry--store .cortex-cart-table td:first-child {
		display: block;
		padding: var(--space-4);
	}

	.instant-entry--store .cortex-cart-table td::before,
	.instant-entry--store .cortex-account-orders-table td::before {
		color: var(--color-muted);
		font-size: var(--text-xs);
		font-weight: 800;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	.instant-entry--store .cortex-cart-table td:nth-child(2)::before {
		content: "Price";
	}

	.instant-entry--store .cortex-cart-table td:nth-child(3)::before {
		content: "Quantity";
	}

	.instant-entry--store .cortex-cart-table td:nth-child(4)::before {
		content: "Subtotal";
	}

	.instant-entry--store .cortex-account-orders-table td:nth-child(1)::before {
		content: "Order";
	}

	.instant-entry--store .cortex-account-orders-table td:nth-child(2)::before {
		content: "Date";
	}

	.instant-entry--store .cortex-account-orders-table td:nth-child(3)::before {
		content: "Total";
	}

	.instant-entry--store .cortex-account-orders-table td:nth-child(4)::before {
		content: "Status";
	}

	.instant-entry--store .cortex-cart-actions {
		justify-content: flex-end;
	}

	.instant-entry--store .cortex-cart-summary {
		grid-template-columns: minmax(0, 1fr);
		margin-inline: 0;
		max-width: none;
	}

	.instant-entry--store .cortex-cart-checkout-btn {
		width: 100%;
	}
}

@media (max-width: 29.99rem) {
	.instant-entry--store .cortex-single-purchase-row {
		align-items: stretch;
		flex-direction: column;
	}

	.instant-entry--store :is(.cortex-single-qty-input, .cortex-single-add-btn, .cortex-account-button) {
		width: 100%;
	}

	.instant-entry--store .cortex-product-reviews,
	.instant-entry--store .cortex-checkout-card,
	.instant-entry--store .cortex-checkout-success-card {
		padding: var(--space-4);
	}

	.instant-entry--store .cortex-account-tabs {
		padding: var(--space-3);
	}

	.instant-entry--store .cortex-account-tabs__link {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.instant-entry--store :is(
	.cortex-single-add-btn,
	.cortex-product-review-form__submit,
	.cortex-cart-checkout-btn,
	.cortex-checkout-btn,
	.cortex-checkout-success-card__button,
	.cortex-account-button,
	.cortex-cart-qty-btn,
	.cortex-account-tabs__link
) {
		transition-duration: 0ms;
	}
}
