.qcom-error-boundary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.qcom-error-boundary__message {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--qcom-muted-fg));
}

.qcom-error-boundary__retry {
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  background-color: hsl(var(--qcom-primary));
  border: none;
  border-radius: var(--qcom-radius-md);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.qcom-error-boundary__retry:hover {
  opacity: 0.9;
}

.qcom-error-boundary__retry:focus-visible {
  outline: 2px solid hsl(var(--qcom-primary));
  outline-offset: 2px;
}

/* ── WpButton ── qcom-wp-button ────────────────────────────── */

.qcom-wp-button {
	/* wrapper — no extra styles by default, inherits wp-block-button */
}

.qcom-wp-button--full-width {
	width: 100%;
}

/* Inner link / button element — normalize padding across all variants
   so default, outline, secondary etc. have identical dimensions. */
.qcom-wp-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.625rem 1.25rem !important;
	font-size: 0.875rem !important;
	box-sizing: border-box;
}

/* ── Variant modifiers ─────────────────────────────────────── */

.qcom-wp-button__link--link {
	color: hsl(var(--qcom-primary)) !important;
	text-decoration: none;
	cursor: pointer;
}

.qcom-wp-button__link--link:hover {
	text-decoration: none;
}

.qcom-wp-button__link--secondary {
	background: hsl(var(--qcom-secondary)) !important;
	color: hsl(var(--qcom-secondary-fg)) !important;
}

.qcom-wp-button__link--destructive {
	background: hsl(var(--qcom-destructive)) !important;
	color: #fff !important;
}

.qcom-wp-button__link--ghost {
	background: transparent !important;
	color: inherit !important;
}

.qcom-wp-button__link--ghost:hover {
	background: hsl(var(--qcom-accent)) !important;
}

/* ── Size modifiers ────────────────────────────────────────── */

.wp-element-button.qcom-wp-button__link--size-sm {
	font-size: 0.875rem;
	padding: 0.375rem 0.75rem;
}

.qcom-wp-button__link--size-lg {
	padding: 0.75rem 2rem;
}

.qcom-wp-button__link--size-icon {
	padding: 0;
	width: 2.5rem;
	height: 2.5rem;
	justify-content: center;
}

/* ── State modifiers ───────────────────────────────────────── */

.qcom-wp-button__link--disabled {
	opacity: 0.5;
	pointer-events: none;
}

.qcom-wp-button__link--full-width {
	width: 100%;
	justify-content: center;
}

/* ── Input ── qcom-input ───────────────────────────────────── */

.qcom-input {
	--qcom-input-height: 2.5rem;
	display: flex;
	width: 100%;
	height: var(--qcom-input-height);
	border-radius: var(--qcom-radius-md);
	border: 1px solid hsl(var(--qcom-border));
	background: var(--qcom-input-bg, hsl(var(--qcom-bg)));
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-family: inherit;
	color: inherit;
	line-height: 1.5;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	outline: none;
}

.qcom-input::-moz-placeholder {
	color: hsl(var(--qcom-muted-fg));
}

.qcom-input::placeholder {
	color: hsl(var(--qcom-muted-fg));
}

.qcom-input:focus {
	border-color: hsl(var(--qcom-primary));
	box-shadow: inset 0 0 0 1px hsl(var(--qcom-primary));
}

.qcom-input:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* File input reset */
.qcom-input[type="file"] {
	border: 0;
	background: transparent;
	padding: 0;
}

.qcom-input[type="file"]::file-selector-button {
	font-size: 0.875rem;
	font-weight: 500;
	border: 0;
	background: transparent;
	color: inherit;
}

/* ── Select ── qcom-select ─────────────────────────────────── */

/* Trigger */
.qcom-select__trigger {
	display: flex;
	height: 2.5rem;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	border-radius: var(--qcom-radius-md);
	border: 1px solid hsl(var(--qcom-border));
	background: var(--qcom-input-bg, hsl(var(--qcom-bg)));
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	outline: none;
	cursor: pointer;
}

.qcom-select__trigger:focus {
	box-shadow: 0 0 0 2px hsl(var(--qcom-ring));
}

.qcom-select__trigger[data-disabled] {
	cursor: not-allowed;
	opacity: 0.5;
}

.qcom-select__trigger > span {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.qcom-select__trigger-icon {
	width: 1rem;
	height: 1rem;
	opacity: 0.5;
	flex-shrink: 0;
}

/* Scroll buttons */
.qcom-select__scroll-btn {
	display: flex;
	cursor: default;
	align-items: center;
	justify-content: center;
	padding: 0.25rem 0;
}

.qcom-select__scroll-icon {
	width: 1rem;
	height: 1rem;
}

/* Content (dropdown) */
.qcom-select__content {
	position: relative;
	z-index: 10002;
	max-height: 24rem;
	min-width: 8rem;
	overflow: hidden;
	border-radius: var(--qcom-radius-md);
	border: 1px solid hsl(var(--qcom-border));
	background: hsl(var(--qcom-popover));
	color: hsl(var(--qcom-popover-fg));
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.qcom-select__content[data-state="open"] {
	animation: qcom-select-in 0.15s ease;
}

.qcom-select__content[data-state="closed"] {
	animation: qcom-select-out 0.1s ease;
}

/* Popper-position modifier */
.qcom-select__content--popper {
	width: var(--radix-select-trigger-width);
}

.qcom-select__content--popper[data-side="bottom"] {
	transform: translateY(0.25rem);
}

.qcom-select__content--popper[data-side="top"] {
	transform: translateY(-0.25rem);
}

.qcom-select__content--popper[data-side="left"] {
	transform: translateX(-0.25rem);
}

.qcom-select__content--popper[data-side="right"] {
	transform: translateX(0.25rem);
}

/* Viewport */
.qcom-select__viewport {
	padding: 0.25rem;
}

.qcom-select__viewport--popper {
	height: var(--radix-select-trigger-height);
	width: 100%;
	min-width: var(--radix-select-trigger-width);
}

/* Label */
.qcom-select__label {
	padding: 0.375rem 0.5rem 0.375rem 2rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
}

/* Item */
.qcom-select__item {
	position: relative;
	display: flex;
	width: 100%;
	cursor: default;
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	align-items: center;
	border-radius: 0.125rem;
	padding: 0.375rem 0.5rem 0.375rem 2rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	outline: none;
}

.qcom-select__item:focus,
.qcom-select__item[data-highlighted] {
	background: hsl(var(--qcom-accent));
	color: hsl(var(--qcom-accent-fg));
}

.qcom-select__item[data-disabled] {
	pointer-events: none;
	opacity: 0.5;
}

.qcom-select__item-indicator-wrapper {
	position: absolute;
	left: 0.5rem;
	display: flex;
	width: 0.875rem;
	height: 0.875rem;
	align-items: center;
	justify-content: center;
}

.qcom-select__item-check {
	width: 1rem;
	height: 1rem;
}

/* Separator */
.qcom-select__separator {
	margin: 0.25rem -0.25rem;
	height: 1px;
	background: hsl(var(--qcom-muted));
}

/* Animations */
@keyframes qcom-select-in {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes qcom-select-out {
	from {
		opacity: 1;
		transform: scale(1);
	}
	to {
		opacity: 0;
		transform: scale(0.95);
	}
}

.qcom-country-input__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qcom-country-input__flag {
  font-size: 1rem;
}

.qcom-country-input__static {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  height: var(--qcom-input-height, 2.5rem);
  border: 1px solid hsl(var(--qcom-border));
  border-radius: var(--qcom-radius-md);
  background: hsl(var(--qcom-muted));
  font-size: 0.875rem;
}

/* ── Tabs ── qcom-tabs ─────────────────────────────────────── */

/* List (tab bar) */
.qcom-tabs__list {
	display: inline-flex;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: var(--qcom-radius-md);
	background: hsl(var(--qcom-muted));
	color: hsl(var(--qcom-muted-fg));
	padding: 0.25rem;
}

/* Trigger (individual tab) */
.qcom-tabs__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	border-radius: 0.125rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	transition: all 0.15s ease;
	border: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.qcom-tabs__trigger:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px hsl(var(--qcom-ring));
}

.qcom-tabs__trigger[data-disabled] {
	pointer-events: none;
	opacity: 0.5;
}

.qcom-tabs__trigger[data-state="active"] {
	background: var(--qcom-tabs-active-bg, hsl(var(--qcom-bg)));
	color: var(--qcom-tabs-active-fg, hsl(var(--qcom-fg)));
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Content panel */
.qcom-tabs__content {
	margin-top: 0.5rem;
}

.qcom-tabs__content:focus-visible {
	outline: none;
}

/* ── Card ── qcom-card ─────────────────────────────────────── */

.qcom-card {
	border-radius: var(--qcom-radius-lg);
	border: 1px solid hsl(var(--qcom-border));
	background: hsl(var(--qcom-card));
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.qcom-card__header {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 1.5rem;
}

.qcom-card__title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0;
}

.qcom-card__description {
	font-size: 0.875rem;
	color: hsl(var(--qcom-muted-fg));
	margin: 0;
}

.qcom-card__content {
	padding: 0 1.5rem 1.5rem;
}

.qcom-card__content:first-child {
	padding-top: 1.5rem;
}

.qcom-card__footer {
	display: flex;
	align-items: center;
	padding: 0 1.5rem 1.5rem;
}

/* ==========================================================================
   Dialog (qcom-dialog)
   BEM CSS for the Dialog component backed by Radix DialogPrimitive.
   ========================================================================== */

/* -- Animations ---------------------------------------------------------- */

@keyframes qcom-dialog-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes qcom-dialog-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes qcom-dialog-zoom-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes qcom-dialog-zoom-out {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
}

/* -- Overlay ------------------------------------------------------------- */

.qcom-dialog__overlay {
  position: fixed;
  inset: 0;
  z-index: var(--qcom-dialog-overlay-z, 10000);
  background-color: var(--qcom-dialog-overlay-bg, rgba(0, 0, 0, 0.8));
}

.qcom-dialog__overlay[data-state="open"] {
  animation: qcom-dialog-fade-in 150ms ease-out;
}

.qcom-dialog__overlay[data-state="closed"] {
  animation: qcom-dialog-fade-out 150ms ease-in;
}

/* -- Content panel ------------------------------------------------------- */

.qcom-dialog__content {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: var(--qcom-dialog-content-z, 10001);
  display: grid;
  width: calc(100% - 2rem);
  max-width: var(--qcom-dialog-max-width, 32rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  transform: translate(-50%, -50%);
  gap: 1rem;
  border: 1px solid var(--qcom-dialog-border-color, hsl(var(--qcom-border)));
  background: #fff !important;
  color: #111827 !important;
  padding: 1.5rem;
  box-shadow: var(--qcom-dialog-shadow, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1));
  border-radius: var(--qcom-dialog-radius, var(--qcom-radius-lg));
  font-size: 16px !important;
  line-height: 1.5;
  box-sizing: border-box;
}

.qcom-dialog__content[data-state="open"] {
  animation: qcom-dialog-zoom-in 150ms ease-out;
}

.qcom-dialog__content[data-state="closed"] {
  animation: qcom-dialog-zoom-out 150ms ease-in;
}

/* Tighter padding on small screens */
@media (max-width: 480px) {
  .qcom-dialog__content {
    width: calc(100% - 1rem);
    padding: 1.25rem;
  }
}

/* -- Close button -------------------------------------------------------- */

.qcom-dialog__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border-radius: 0.125rem;
  opacity: 0.7;
  transition: opacity 150ms ease;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  line-height: 1;
}

.qcom-dialog__close:hover {
  opacity: 1;
}

.qcom-dialog__close:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--qcom-ring-color, hsl(var(--qcom-ring))),
              0 0 0 4px var(--qcom-ring-offset-color, hsl(var(--qcom-bg)));
}

.qcom-dialog__close:disabled {
  pointer-events: none;
}

.qcom-dialog__close[data-state="open"] {
  background-color: var(--qcom-dialog-close-open-bg, hsl(var(--qcom-accent)));
  color: var(--qcom-dialog-close-open-color, hsl(var(--qcom-muted-fg)));
}

.qcom-dialog__close-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

/* -- Header -------------------------------------------------------------- */

.qcom-dialog__header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-align: center;
}

@media (min-width: 640px) {
  .qcom-dialog__header {
    text-align: left;
  }
}

/* -- Footer -------------------------------------------------------------- */

.qcom-dialog__footer {
  display: flex;
  flex-direction: column-reverse;
}

@media (min-width: 640px) {
  .qcom-dialog__footer {
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.5rem;
  }
}

/* -- Title --------------------------------------------------------------- */

.qcom-dialog__title {
  font-size: var(--qcom-dialog-title-size, 1.125rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* -- Description --------------------------------------------------------- */

.qcom-dialog__description {
  font-size: var(--qcom-dialog-description-size, 0.875rem);
  color: var(--qcom-dialog-description-color, hsl(var(--qcom-muted-fg)));
}

/* -- Screen-reader only -------------------------------------------------- */

.qcom-dialog__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Label ── qcom-label ───────────────────────────────────── */

.qcom-label {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	cursor: default;
}

.qcom-label[data-disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.qcom-form-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.qcom-form-label--error {
  color: hsl(var(--qcom-destructive));
}

.qcom-form-description {
  font-size: 0.875rem;
  color: hsl(var(--qcom-muted-fg));
}

.qcom-form-message {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--qcom-destructive));
}

/* ==========================================================================
   Toast (qcom-toast)
   BEM CSS for the Toast component backed by Radix ToastPrimitives.
   ========================================================================== */

/* -- Animations ---------------------------------------------------------- */

@keyframes qcom-toast-slide-in-from-top {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes qcom-toast-slide-in-from-bottom {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes qcom-toast-fade-out-right {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

/* -- Viewport ------------------------------------------------------------ */

.qcom-toast__viewport {
  position: fixed;
  top: 0;
  z-index: var(--qcom-toast-viewport-z, 99999);
  display: flex;
  max-height: 100vh;
  width: 100%;
  flex-direction: column-reverse;
  padding: 1rem;

  /* Re-scope design tokens — this portal renders to <body> where the
     WP theme overrides :root CSS variables. */
  --qcom-bg: 0 0% 100%;
  --qcom-fg: 222.2 84% 4.9%;
  --qcom-border: 214.3 31.8% 91.4%;
  --qcom-destructive: 0 84.2% 60.2%;
  --qcom-destructive-fg: 210 40% 98%;
  --qcom-success: 142 76% 36%;
  --qcom-success-bg: #f0fdf4;
  --qcom-success-border: #86efac;
  --qcom-success-text: #14532d;
  --qcom-warning: 38 92% 50%;
  --qcom-warning-bg: #fffbeb;
  --qcom-warning-border: #fde68a;
  --qcom-warning-text: #92400e;
  --qcom-info-bg: #eff6ff;
  --qcom-info-border: #7dd3fc;
  --qcom-info-text: #0c4a6e;
  --qcom-ring: 222.2 84% 4.9%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 0.875rem !important;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .qcom-toast__viewport {
    bottom: 0;
    right: 0;
    top: auto;
    flex-direction: column;
    max-width: var(--qcom-toast-max-width, 420px);
  }
}

/* -- Toast root ---------------------------------------------------------- */

.qcom-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  border-radius: var(--qcom-toast-radius, var(--qcom-radius-md));
  border: 1px solid var(--qcom-toast-border-color, hsl(var(--qcom-border)));
  padding: 1.5rem;
  padding-right: 2rem;
  box-shadow: var(--qcom-toast-shadow, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1));
  transition: transform 150ms ease, opacity 150ms ease;
}

/* Swipe handling via Radix CSS custom properties */
.qcom-toast[data-swipe="cancel"] {
  transform: translateX(0);
}

.qcom-toast[data-swipe="move"] {
  transform: translateX(var(--radix-toast-swipe-move-x));
  transition: none;
}

.qcom-toast[data-swipe="end"] {
  animation: qcom-toast-fade-out-right 150ms ease-out forwards;
  --qcom-toast-end-x: var(--radix-toast-swipe-end-x);
}

/* Open / close animations */
.qcom-toast[data-state="open"] {
  animation: qcom-toast-slide-in-from-top 150ms ease-out;
}

.qcom-toast[data-state="closed"] {
  animation: qcom-toast-fade-out-right 200ms ease-in forwards;
}

@media (min-width: 640px) {
  .qcom-toast[data-state="open"] {
    animation-name: qcom-toast-slide-in-from-bottom;
  }
}

/* -- Variant: default ---------------------------------------------------- */

.qcom-toast--default {
  background-color: var(--qcom-toast-default-bg, hsl(var(--qcom-bg)));
  color: var(--qcom-toast-default-color, hsl(var(--qcom-fg)));
}

/* -- Variant: destructive ------------------------------------------------ */

.qcom-toast--destructive {
  border-color: var(--qcom-toast-destructive-border, hsl(var(--qcom-destructive)));
  background-color: var(--qcom-toast-destructive-bg, hsl(var(--qcom-destructive)));
  color: var(--qcom-toast-destructive-color, hsl(var(--qcom-destructive-fg)));
}

/* -- Variant: success ---------------------------------------------------- */

.qcom-toast--success {
  border-color: var(--qcom-success-border);
  background-color: var(--qcom-success-bg);
  color: var(--qcom-success-text);
}

/* -- Variant: warning ---------------------------------------------------- */

.qcom-toast--warning {
  border-color: var(--qcom-warning-border);
  background-color: var(--qcom-warning-bg);
  color: var(--qcom-warning-text);
}

/* -- Variant: info ------------------------------------------------------- */

.qcom-toast--info {
  border-color: var(--qcom-info-border);
  background-color: var(--qcom-info-bg);
  color: var(--qcom-info-text);
}

/* -- Close button -------------------------------------------------------- */

.qcom-toast__close {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  border-radius: var(--qcom-radius-md);
  padding: 0.25rem;
  color: var(--qcom-toast-close-color, hsl(var(--qcom-fg) / 0.5));
  opacity: 0;
  transition: opacity 150ms ease, color 150ms ease;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.qcom-toast__close:hover {
  color: var(--qcom-toast-close-hover-color, hsl(var(--qcom-fg)));
}

.qcom-toast__close:focus {
  opacity: 1;
  outline: none;
  box-shadow: 0 0 0 2px var(--qcom-ring-color, hsl(var(--qcom-ring)));
}

/* Show close button when toast is hovered */
.qcom-toast:hover .qcom-toast__close {
  opacity: 1;
}

/* Destructive close-button overrides */
.qcom-toast--destructive .qcom-toast__close {
  color: var(--qcom-toast-destructive-close-color, rgb(252, 165, 165)); /* red-300 */
}

.qcom-toast--destructive .qcom-toast__close:hover {
  color: var(--qcom-toast-destructive-close-hover, rgb(254, 242, 242)); /* red-50 */
}

.qcom-toast--destructive .qcom-toast__close:focus {
  box-shadow: 0 0 0 2px var(--qcom-toast-destructive-ring, rgb(248, 113, 113)); /* red-400 */
}

.qcom-toast__close-icon {
  width: 1rem;
  height: 1rem;
  display: block;
}

/* -- Action -------------------------------------------------------------- */

.qcom-toast__action {
  display: inline-flex;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--qcom-radius-md);
  border: 1px solid var(--qcom-toast-action-border, hsl(var(--qcom-border)));
  background: transparent;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  cursor: pointer;
}

.qcom-toast__action:hover {
  background-color: var(--qcom-toast-action-hover-bg, hsl(var(--qcom-secondary)));
}

.qcom-toast__action:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--qcom-ring-color, hsl(var(--qcom-ring))),
              0 0 0 4px var(--qcom-ring-offset-color, hsl(var(--qcom-bg)));
}

.qcom-toast__action:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Destructive action overrides */
.qcom-toast--destructive .qcom-toast__action {
  border-color: rgba(hsl(var(--qcom-muted)), 0.4);
}

.qcom-toast--destructive .qcom-toast__action:hover {
  border-color: rgba(hsl(var(--qcom-destructive)), 0.3);
  background-color: hsl(var(--qcom-destructive));
  color: hsl(var(--qcom-destructive-fg));
}

.qcom-toast--destructive .qcom-toast__action:focus {
  box-shadow: 0 0 0 2px hsl(var(--qcom-destructive));
}

/* -- Title --------------------------------------------------------------- */

.qcom-toast__title {
  font-size: 0.875rem;
  font-weight: 600;
}

/* -- Description --------------------------------------------------------- */

.qcom-toast__description {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* -- Toaster grid (used by Toaster component) ---------------------------- */

.qcom-toast__text-group {
  display: grid;
  gap: 0.25rem;
}

/* ── Skeleton ── qcom-skeleton ─────────────────────────────── */

.qcom-skeleton {
	border-radius: var(--qcom-radius-md);
	background: var(--qcom-skeleton-bg, hsl(var(--qcom-muted)));
	animation: qcom-skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes qcom-skeleton-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

/* ── Loading ── qcom-loading ───────────────────────────────── */

.qcom-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.qcom-loading__spinner {
	color: hsl(var(--qcom-primary));
	animation: qcom-spin 1s linear infinite;
}

.qcom-loading__spinner--sm {
	width: 1rem;
	height: 1rem;
}

.qcom-loading__spinner--md {
	width: 1.5rem;
	height: 1.5rem;
}

.qcom-loading__spinner--lg {
	width: 2rem;
	height: 2rem;
}

@keyframes qcom-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   QuickCommerce Account Components – BEM CSS
   Shared styles for all customer-account tab components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties — defined globally in qcom-front.css
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Shared utility classes (used across multiple components)
   -------------------------------------------------------------------------- */
.qcom-account-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qcom-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 480px) {
  .qcom-account-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
}

.qcom-account-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* Stitch: text-xl font-bold for section subtitles */
.qcom-account-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

@media (max-width: 480px) {
  .qcom-account-title {
    font-size: 1.25rem;
  }

  .qcom-account-subtitle {
    font-size: 1rem;
    font-weight: 600;
  }
}

.qcom-account-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.qcom-account-empty__icon {
  width: 3rem;
  height: 3rem;
  color: hsl(var(--qcom-muted-fg));
  margin-bottom: 1rem;
}

.qcom-account-empty__title {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.qcom-account-empty__text {
  color: hsl(var(--qcom-muted-fg));
  text-align: center;
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.qcom-account-icon--sm {
  width: 1rem;
  height: 1rem;
}

.qcom-account-icon--md {
  width: 1.25rem;
  height: 1.25rem;
}

.qcom-account-icon--lg {
  width: 3rem;
  height: 3rem;
}

/* Icon button (actions column) */
.qcom-account-icon-btn {
  padding: 0.375rem;
  border-radius: var(--qcom-radius-sm);
  color: hsl(var(--qcom-muted-fg));
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--qcom-transition), background var(--qcom-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qcom-account-icon-btn:hover {
  color: hsl(var(--qcom-fg));
  background: var(--qcom-muted-bg);
}

.qcom-account-icon-btn--danger:hover {
  color: hsl(var(--qcom-destructive));
  background: var(--qcom-destructive-bg);
}

/* Badge / pill */
.qcom-account-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--qcom-radius-full);
  flex-shrink: 0;
}

.qcom-account-badge--destructive {
  background: var(--qcom-destructive-bg);
  color: hsl(var(--qcom-destructive));
}

.qcom-account-badge--muted {
  background: rgba(107, 114, 128, 0.2);
  color: hsl(var(--qcom-muted-fg));
}

.qcom-account-badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Refresh button */
.qcom-account-refresh {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: hsl(var(--qcom-muted-fg));
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--qcom-transition);
}

.qcom-account-refresh:hover {
  color: hsl(var(--qcom-fg));
}

.qcom-account-refresh:disabled {
  opacity: 0.5;
  cursor: default;
}

.qcom-account-refresh__icon--spinning {
  animation: qcom-spin 1s linear infinite;
}

@keyframes qcom-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Search bar with icon */
.qcom-account-search {
  position: relative;
  flex: 1;
}

.qcom-account-search__icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--qcom-muted-fg));
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

/* Sort toggle button */
.qcom-account-sort-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.75rem;
  height: 2.5rem;
  border-radius: var(--qcom-radius-sm);
  font-size: 0.875rem;
  background: var(--qcom-muted-bg);
  color: hsl(var(--qcom-muted-fg));
  border: none;
  cursor: pointer;
  transition: background var(--qcom-transition);
}

.qcom-account-sort-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.qcom-account-sort-btn__label {
  font-size: 0.75rem;
  font-weight: 700;
}

/* Toolbar (search + sort row) */
.qcom-account-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
}

/* Load-more button */
.qcom-account-load-more {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--qcom-radius-sm);
  border: 1px solid hsl(var(--qcom-border));
  color: hsl(var(--qcom-fg));
  background: transparent;
  cursor: pointer;
  transition: background var(--qcom-transition);
}

.qcom-account-load-more:hover {
  background: var(--qcom-muted-bg);
}

.qcom-account-load-more:disabled {
  opacity: 0.5;
  cursor: default;
}

.qcom-account-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem;
  border-top: 1px solid hsl(var(--qcom-border));
}

.qcom-account-load-more-wrap--mobile {
  padding: 1rem 0 2rem;
  border-top: none;
}

/* Mobile filter toggle */
.qcom-account-filter-toggle {
  aspect-ratio: 1;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--qcom-radius-sm);
  background: var(--qcom-muted-bg);
  color: hsl(var(--qcom-muted-fg));
  border: none;
  cursor: pointer;
}

/* Mobile sort row */
.qcom-account-mobile-sort {
  display: flex;
  gap: 0.5rem;
}

/* Skeleton layout */
.qcom-account-skeleton {
  border-bottom: 1px solid hsl(var(--qcom-border));
  padding: 1rem;
}

.qcom-account-skeleton:last-child {
  border-bottom: none;
}

.qcom-account-skeleton__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.qcom-account-skeleton__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qcom-account-skeleton__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Field (read-only display) — Stitch: bg-slate-100 p-4, no border */
.qcom-account-field {
  padding: 1rem;
  background: var(--qcom-muted-bg);
  border-radius: var(--qcom-radius-sm);
  border: none;
}

.qcom-account-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--qcom-muted-fg));
  margin-bottom: 0.5rem;
}

.qcom-account-field-label--icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Grid helpers */
.qcom-account-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .qcom-account-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.qcom-account-grid-2-always {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.qcom-account-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Section divider */
.qcom-account-divider {
  border-top: 1px solid hsl(var(--qcom-border));
  padding-top: 1.5rem;
}

/* Vertical spacing */
.qcom-account-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qcom-account-stack--sm {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.qcom-account-stack--xs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   ACCOUNT PAGE (qcom-account-page)
   -------------------------------------------------------------------------- */
.qcom-account-page {
  min-height: 100vh;
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  color: hsl(var(--qcom-fg));
}

/* Normalize inputs within account pages */
.qcom-account-page .qcom-input {
  font-size: 0.875rem;
  border-radius: var(--qcom-radius-md);
}

/* Override WP theme pill border-radius on buttons — follow design tokens */
.qcom-account-page .wp-block-button__link {
  border-radius: var(--qcom-radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* Outline variant — transparent bg with visible border */
.qcom-account-page .is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: hsl(var(--qcom-fg)) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.qcom-account-page .is-style-outline .wp-block-button__link:hover {
  background: var(--qcom-muted-bg) !important;
  border-color: rgba(0, 0, 0, 0.4) !important;
}

.qcom-account-page__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Layout wrapper (tabs + content) */
.qcom-account-page__layout {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .qcom-account-page__layout {
    flex-direction: row;
    gap: 2rem;
  }
}

/* Hide mobile nav when a dialog overlay is open */
.qcom-dialog__overlay[data-state="open"] ~ .qcom-account-page__mobile-nav,
body:has(.qcom-dialog__overlay[data-state="open"]) .qcom-account-page__mobile-nav {
  display: none !important;
}

/* Mobile bottom navigation bar */
.qcom-account-page__mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--wp--preset--color--base, #fff);
  border-top: 1px solid hsl(var(--qcom-border));
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 1024px) {
  .qcom-account-page__mobile-nav {
    display: none;
  }
}

/* Reserve space so content isn't hidden behind fixed nav */
@media (max-width: 1023px) {
  .qcom-account-page {
    padding-bottom: 5.5rem;
  }
}

.qcom-account-page__mobile-nav-inner {
  display: flex;
  min-width: 0;
}

.qcom-account-page__mobile-tab {
  flex: 1 1 0%;
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1875rem;
  padding: 0.5rem 0.25rem 0.375rem !important;
  color: hsl(var(--qcom-muted-fg)) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  transition: color var(--qcom-transition);
  -webkit-tap-highlight-color: transparent;
}

.qcom-account-page__mobile-tab--active {
  color: hsl(var(--qcom-primary)) !important;
}

.qcom-account-page__mobile-tab:not(.qcom-account-page__mobile-tab--active):hover {
  color: hsl(var(--qcom-fg)) !important;
  background: transparent !important;
}

.qcom-account-page__mobile-tab:focus-visible {
  color: hsl(var(--qcom-primary)) !important;
}

.qcom-account-page__mobile-tab svg {
  width: 1.25rem;
  height: 1.25rem;
}

.qcom-account-page__mobile-tab-label {
  font-size: 0.6875rem !important;
  font-weight: 500 !important;
  line-height: 1;
  letter-spacing: 0.01em;
  font-family: inherit !important;
}

.qcom-account-page__mobile-tab--active .qcom-account-page__mobile-tab-label {
  font-weight: 600 !important;
}

/* Desktop sidebar */
.qcom-account-page__sidebar {
  display: none;
  align-self: flex-start;
  width: 16rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .qcom-account-page__sidebar {
    display: flex;
    flex-direction: column;
  }
}

/* User info header */
.qcom-account-page__sidebar-user {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid hsl(var(--qcom-border));
}

.qcom-account-page__sidebar-user-name {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--qcom-fg));
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qcom-account-page__sidebar-user-email {
  font-size: 0.875rem;
  color: hsl(var(--qcom-muted-fg));
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Nav buttons */
.qcom-account-page__sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.qcom-account-page__sidebar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: none;
  border: none;
  border-left: 4px solid transparent;
  cursor: pointer;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  color: hsl(var(--qcom-muted-fg)) !important;
  transition: background var(--qcom-transition), color var(--qcom-transition);
  text-align: left;
}

.qcom-account-page__sidebar-btn:hover {
  background: var(--qcom-muted-bg);
  color: hsl(var(--qcom-fg)) !important;
}

.qcom-account-page__sidebar-btn--active {
  background: hsl(var(--qcom-primary)) !important;
  color: hsl(var(--qcom-primary-fg)) !important;
  border-left-color: hsl(var(--qcom-primary));
  font-weight: 600 !important;
}

.qcom-account-page__sidebar-btn--active:hover {
  background: hsl(var(--qcom-primary)) !important;
  color: hsl(var(--qcom-primary-fg)) !important;
}

.qcom-account-page__sidebar-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.qcom-account-page__sidebar-label {
  font-size: 0.875rem;
}

.qcom-account-page__content {
  flex: 1;
  min-width: 0;
}

/* Auth gate */
.qcom-account-page__auth-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qcom-account-page__auth-gate-inner {
  text-align: center;
}

.qcom-account-page__auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.qcom-account-page__auth-text {
  color: hsl(var(--qcom-muted-fg));
  margin-bottom: 1.5rem;
}

/* Spinner (loading / redirect) */
.qcom-account-page__spinner-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qcom-account-page__spinner-inner {
  text-align: center;
}

.qcom-account-page__spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid transparent;
  border-bottom-color: hsl(var(--qcom-fg));
  border-radius: var(--qcom-radius-full);
  animation: qcom-spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.qcom-account-page__spinner-text {
  color: hsl(var(--qcom-muted-fg));
}

/* ── Account page skeleton ─────────────────────────────────────── */
.qcom-account-skeleton__mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  background: var(--wp--preset--color--base, #fff);
  border-top: 1px solid hsl(var(--qcom-border));
  z-index: 50;
}
@media (min-width: 768px) {
  .qcom-account-skeleton__mobile-nav { display: none; }
}
.qcom-account-skeleton__mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.qcom-account-skeleton__icon { width: 1.25rem; height: 1.25rem; border-radius: var(--qcom-radius-sm); }
.qcom-account-skeleton__label-sm { width: 2.5rem; height: 0.5rem; border-radius: var(--qcom-radius-sm); }

.qcom-account-skeleton__sidebar {
  display: none;
}
@media (min-width: 768px) {
  .qcom-account-skeleton__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 14rem;
    flex-shrink: 0;
  }
}
.qcom-account-skeleton__user {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0 0.75rem 0.75rem;
  border-bottom: 1px solid hsl(var(--qcom-border));
}
.qcom-account-skeleton__user-name { width: 7rem; height: 0.875rem; border-radius: var(--qcom-radius-sm); }
.qcom-account-skeleton__user-email { width: 10rem; height: 0.75rem; border-radius: var(--qcom-radius-sm); }
.qcom-account-skeleton__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.qcom-account-skeleton__nav-item { width: 100%; height: 2.25rem; border-radius: var(--qcom-radius-md); }

.qcom-account-skeleton__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.qcom-account-skeleton__title { width: 8rem; height: 1.5rem; border-radius: var(--qcom-radius-sm); }
.qcom-account-skeleton__fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.qcom-account-skeleton__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.qcom-account-skeleton__field-label { width: 5rem; height: 0.75rem; border-radius: var(--qcom-radius-sm); }
.qcom-account-skeleton__field-input { width: 100%; height: 2.5rem; border-radius: var(--qcom-radius-md); }
.qcom-account-skeleton__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.qcom-account-skeleton__button { width: 7rem; height: 2.25rem; border-radius: var(--qcom-radius-md); }

/* Login form skeleton — matches the centered login form layout */
.qcom-login-form-skeleton {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 0;
}
.qcom-login-form-skeleton__title { width: 5rem; height: 1.75rem; border-radius: var(--qcom-radius-sm); }
.qcom-login-form-skeleton__register-row { width: 12rem; height: 0.875rem; border-radius: var(--qcom-radius-sm); }
.qcom-login-form-skeleton__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.qcom-login-form-skeleton__field-label { width: 4rem; height: 0.75rem; border-radius: var(--qcom-radius-sm); }
.qcom-login-form-skeleton__field-input { width: 100%; height: 2.5rem; border-radius: var(--qcom-radius-md); }
.qcom-login-form-skeleton__toggle { width: 10rem; height: 1.25rem; border-radius: var(--qcom-radius-sm); }
.qcom-login-form-skeleton__button { width: 100%; height: 2.5rem; border-radius: var(--qcom-radius-md); }

/* Address modal grid */
/* Address modal form */
.qcom-account-page__modal-dialog {
  font-size: 14px;
  line-height: 1.5;
  max-width: 28rem;
}

.qcom-account-page__modal-dialog .qcom-dialog__content {
  gap: 1.25rem;
}

.qcom-account-page__modal-dialog .qcom-form-item {
  gap: 0.375rem;
}

.qcom-account-page__modal-dialog .qcom-input {
  font-size: 0.875rem;
  border-radius: var(--qcom-radius-md);
}

.qcom-account-page__modal-dialog .wp-block-button__link {
  border-radius: var(--qcom-radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.qcom-account-page__modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.qcom-account-page__modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qcom-account-page__modal-actions .wp-block-button {
  width: 100%;
}

.qcom-account-page__modal-actions .wp-block-button__link {
  width: 100%;
  justify-content: center;
}

/* Suspense skeleton */
.qcom-account-page__suspense {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   ADDRESSES TAB (qcom-account-addresses)
   -------------------------------------------------------------------------- */

/* Desktop table */
.qcom-account-addresses__table {
  border: 1px solid hsl(var(--qcom-border));
  border-radius: var(--qcom-radius-lg);
  overflow: hidden;
  display: none;
}

@media (min-width: 768px) {
  .qcom-account-addresses__table {
    display: block;
  }
}

.qcom-account-addresses__thead {
  display: flex;
  padding: 1rem;
  background: var(--qcom-muted-bg);
  border-bottom: 1px solid hsl(var(--qcom-border));
}

/* Stitch: 13px medium weight sentence-case headers */
.qcom-account-addresses__thead-cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--qcom-muted-fg));
}

.qcom-account-addresses__thead-actions {
  width: 7.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--qcom-muted-fg));
  text-align: right;
}

.qcom-account-addresses__tbody {
  display: flex;
  flex-direction: column;
}

.qcom-account-addresses__tbody > * + * {
  border-top: 1px solid hsl(var(--qcom-border));
}

/* Row */
.qcom-account-addresses__row {
  position: relative;
}

.qcom-account-addresses__row--default {
  background: rgba(var(--wp--preset--color--primary-rgb, 24, 24, 27), 0.05);
}

.qcom-account-addresses__row--invalid {
  background: var(--qcom-destructive-bg);
}

.qcom-account-addresses__row-inner {
  display: flex;
  align-items: center;
  padding: 1rem;
}

.qcom-account-addresses__row-cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: center;
}

.qcom-account-addresses__cell {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.qcom-account-addresses__row-actions {
  width: 7.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
}

/* Delete confirmation overlay */
.qcom-account-addresses__confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: qcom-fade-in 150ms ease;
}

@keyframes qcom-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.qcom-account-addresses__confirm-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qcom-account-addresses__confirm-text {
  font-size: 0.875rem;
  color: hsl(var(--qcom-fg));
}

/* Mobile cards */
.qcom-account-addresses__mobile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .qcom-account-addresses__mobile {
    display: none;
  }
}

.qcom-account-addresses__card {
  border: 1px solid hsl(var(--qcom-border));
  border-radius: var(--qcom-radius-lg);
  position: relative;
}

.qcom-account-addresses__card--default {
  border-left: 3px solid hsl(var(--qcom-primary));
}

.qcom-account-addresses__card--invalid {
  border-left: 3px solid hsl(var(--qcom-destructive));
}

.qcom-account-addresses__card-body {
  padding: 1rem;
}

.qcom-account-addresses__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.qcom-account-addresses__card-title-wrap {
  flex: 1;
  min-width: 0;
}

.qcom-account-addresses__card-title {
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
}

.qcom-account-addresses__card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.qcom-account-addresses__card-detail {
  font-size: 0.875rem;
  margin: 0;
}

.qcom-account-addresses__card-detail + .qcom-account-addresses__card-detail {
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   ORDERS TAB (qcom-account-orders)
   -------------------------------------------------------------------------- */

/* Desktop wrapper */
.qcom-account-orders__desktop {
  display: none;
}

@media (min-width: 768px) {
  .qcom-account-orders__desktop {
    display: block;
  }
}

/* Filter badges */
.qcom-account-orders__filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Stitch: active = bg-primary text-white, inactive = bg-slate-100 text-slate-600 */
.qcom-account-orders__filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500 !important;
  font-family: inherit !important;
  white-space: nowrap;
  background: var(--qcom-muted-bg);
  color: hsl(var(--qcom-muted-fg));
  border: none;
  cursor: pointer;
  transition: all var(--qcom-transition);
}

.qcom-account-orders__filter-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: hsl(var(--qcom-fg));
}

.qcom-account-orders__filter-btn--active {
  background: hsl(var(--qcom-primary)) !important;
  color: hsl(var(--qcom-primary-fg)) !important;
}

.qcom-account-orders__filter-btn--active:hover {
  background: hsl(var(--qcom-primary)) !important;
  color: hsl(var(--qcom-primary-fg)) !important;
}

.qcom-account-orders__filter-count {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  text-transform: uppercase;
}

.qcom-account-orders__filter-count--active {
  background: rgba(255, 255, 255, 0.2);
  color: hsl(var(--qcom-primary-fg));
}

.qcom-account-orders__filter-count--inactive {
  background: rgba(0, 0, 0, 0.08);
  color: hsl(var(--qcom-muted-fg));
}

/* Bordered panel */
.qcom-account-orders__panel {
  border: 1px solid hsl(var(--qcom-border));
  border-radius: var(--qcom-radius-lg);
  overflow: hidden;
  box-shadow: none;
}

/* Table header */
.qcom-account-orders__table-head {
  display: grid;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--qcom-muted-bg);
  font-size: 0.75rem;
  font-weight: 700;
  color: hsl(var(--qcom-muted-fg));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qcom-account-orders__table-head--orders {
  grid-template-columns: 1fr 1fr 1.5fr 1fr 2.5rem;
}

.qcom-account-orders__table-head--invoices {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 2.5rem;
}

.qcom-account-orders__table-rows {
  display: flex;
  flex-direction: column;
}

.qcom-account-orders__table-rows > * + * {
  border-top: 1px solid hsl(var(--qcom-border));
}

/* Table row */
.qcom-account-orders__table-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background var(--qcom-transition);
}

.qcom-account-orders__table-row:hover {
  background: rgba(0, 0, 0, 0.03);
}

.qcom-account-orders__table-row--orders {
  grid-template-columns: 1fr 1fr 1.5fr 1fr 2.5rem;
}

.qcom-account-orders__table-row--invoices {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 2.5rem;
}

.qcom-account-orders__cell {
  font-size: 0.875rem;
}

.qcom-account-orders__cell--primary {
  font-weight: 600;
  color: hsl(var(--qcom-primary));
}

.qcom-account-orders__cell--muted {
  color: hsl(var(--qcom-muted-fg));
}

.qcom-account-orders__cell--right {
  text-align: right;
  font-weight: 500;
}

.qcom-account-orders__cell--chevron {
  color: hsl(var(--qcom-muted-fg));
}

.qcom-account-orders__table-row:hover .qcom-account-orders__cell--chevron svg {
  transform: translateX(2px);
  transition: transform var(--qcom-transition);
}

/* Status badge */
.qcom-account-orders__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qcom-account-orders__status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: var(--qcom-radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Status badge colours by state
   These use semantic status palettes (info/success/warning) — kept as named CSS vars */
.qcom-account-orders__status-badge--0 { background: var(--qcom-muted-bg); color: hsl(var(--qcom-muted-fg)); }
.qcom-account-orders__status-badge--1 { background: rgba(var(--wp--preset--color--primary-rgb, 24, 24, 27), 0.1); color: hsl(var(--qcom-primary)); }
.qcom-account-orders__status-badge--2,
.qcom-account-orders__status-badge--3 { background: hsl(var(--qcom-primary) / 0.06); color: hsl(var(--qcom-primary)); }
.qcom-account-orders__status-badge--4,
.qcom-account-orders__status-badge--5,
.qcom-account-orders__status-badge--8 { background: hsl(var(--qcom-success) / 0.06); color: hsl(var(--qcom-success)); }
.qcom-account-orders__status-badge--6,
.qcom-account-orders__status-badge--12 { background: var(--qcom-muted-bg); color: hsl(var(--qcom-muted-fg)); }
.qcom-account-orders__status-badge--7,
.qcom-account-orders__status-badge--10,
.qcom-account-orders__status-badge--11 { background: hsl(var(--qcom-warning) / 0.06); color: hsl(var(--qcom-warning)); }
.qcom-account-orders__status-badge--9 { background: var(--qcom-destructive-bg); color: hsl(var(--qcom-destructive)); }

.qcom-account-orders__on-hold {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--qcom-radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  border: 1px solid hsl(var(--qcom-warning) / 0.4);
  color: hsl(var(--qcom-warning));
}

/* Mobile layout */
.qcom-account-orders__mobile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .qcom-account-orders__mobile {
    display: none;
  }
}

/* Mobile filter scroll */
.qcom-account-orders__mobile-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.qcom-account-orders__mobile-filters::-webkit-scrollbar {
  display: none;
}

/* Mobile card */
.qcom-account-orders__mobile-card {
  border: 1px solid hsl(var(--qcom-border));
  box-shadow: none;
  overflow: hidden;
}

.qcom-account-orders__mobile-card-body {
  padding: 1rem;
}

.qcom-account-orders__mobile-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.qcom-account-orders__mobile-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--qcom-muted-fg));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qcom-account-orders__mobile-card-number {
  font-size: 1.125rem;
  font-weight: 700;
}

.qcom-account-orders__mobile-card-status {
  padding: 0.25rem 0.625rem;
  border-radius: var(--qcom-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.qcom-account-orders__mobile-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.qcom-account-orders__mobile-card-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: hsl(var(--qcom-muted-fg));
}

.qcom-account-orders__mobile-card-price {
  font-size: 1rem;
  font-weight: 600;
}

/* KID copy button (invoices) */
.qcom-account-invoices__kid-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--qcom-muted-fg));
  transition: color var(--qcom-transition);
}

.qcom-account-invoices__kid-btn:hover {
  color: hsl(var(--qcom-fg));
}

/* Stitch: monospace bg with primary color */
.qcom-account-invoices__kid-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  background: rgba(var(--wp--preset--color--primary-rgb, 24, 24, 27), 0.08);
  color: hsl(var(--qcom-primary));
  padding: 0.125rem 0.375rem;
}

.qcom-account-invoices__kid-copied {
  color: hsl(var(--qcom-success));
}

/* Invoice mobile KID */
.qcom-account-invoices__mobile-kid {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: hsl(var(--qcom-muted-fg));
  margin-top: 0.125rem;
}

.qcom-account-invoices__mobile-due {
  font-size: 0.875rem;
  color: hsl(var(--qcom-muted-fg));
}

/* --------------------------------------------------------------------------
   PROFILE TAB (qcom-account-profile)
   -------------------------------------------------------------------------- */
.qcom-account-profile__contact-banner {
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--qcom-muted-bg);
  border-radius: var(--qcom-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.qcom-account-profile__contact-banner-company {
  font-weight: 500;
}

.qcom-account-profile__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .qcom-account-profile__section-header {
    flex-direction: column;
    align-items: stretch;
  }
}

.qcom-account-profile__section-header h3 {
  min-width: 0;
}

.qcom-account-profile__edit-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .qcom-account-profile__edit-actions {
    width: 100%;
  }

  .qcom-account-profile__edit-actions .wp-block-button,
  .qcom-account-profile__edit-actions .wp-block-button__link {
    width: 100%;
    justify-content: center;
  }
}

/* Billing address dropdown */
.qcom-account-profile__billing-dropdown {
  position: relative;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .qcom-account-profile__billing-dropdown {
    width: 100%;
  }

  .qcom-account-profile__billing-dropdown .wp-block-button,
  .qcom-account-profile__billing-dropdown .wp-block-button__link {
    width: 100%;
    justify-content: center;
  }
}

.qcom-account-profile__billing-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  width: 20rem;
  max-height: 16rem;
  overflow-y: auto;
  background: var(--wp--preset--color--base, #fff);
  border: 1px solid hsl(var(--qcom-border));
  border-radius: var(--qcom-radius-lg);
  box-shadow: none;
  z-index: 20;
}

@media (max-width: 480px) {
  .qcom-account-profile__billing-menu {
    left: 0;
    right: 0;
    width: auto;
  }
}

.qcom-account-profile__billing-option {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: none;
  border: none;
  border-bottom: 1px solid hsl(var(--qcom-border));
  cursor: pointer;
  transition: background var(--qcom-transition);
}

.qcom-account-profile__billing-option:last-child {
  border-bottom: none;
}

.qcom-account-profile__billing-option:hover {
  background: var(--qcom-muted-bg);
}

.qcom-account-profile__billing-option--current {
  background: rgba(0, 0, 0, 0.03);
}

.qcom-account-profile__billing-option-address {
  font-weight: 500;
}

.qcom-account-profile__billing-option-detail {
  color: hsl(var(--qcom-muted-fg));
}

/* Warning banner (missing billing) */
.qcom-account-profile__billing-warning {
  padding: 1rem;
  border-radius: var(--qcom-radius-lg);
  border: 1px solid var(--qcom-warning-border);
  background: var(--qcom-warning-bg);
  font-size: 0.875rem;
  color: var(--qcom-warning-text);
}

/* --------------------------------------------------------------------------
   REGISTRATION FORM (qcom-account-register)
   -------------------------------------------------------------------------- */
.qcom-account-register {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
  font-size: 14px;
  line-height: 1.5;
  color: hsl(var(--qcom-fg));
}

/* Normalize inputs within registration form */
.qcom-account-register .qcom-input {
  font-size: 0.875rem;
  border-radius: var(--qcom-radius-md);
}

/* Sign in link button */
.qcom-account-register .qcom-account-register__login-hint .qcom-wp-button__link.qcom-wp-button__link--link {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: hsl(var(--qcom-primary));
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

.qcom-account-register .qcom-account-register__login-hint .qcom-wp-button__link.qcom-wp-button__link--link:hover {
  opacity: 0.7;
}

.qcom-account-register__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qcom-account-register__title {
  font-size: 20px;
  font-weight: 700;
  color: hsl(var(--qcom-fg));
  margin: 0;
}

.qcom-account-register__login-hint {
  font-size: 0.875rem;
  color: hsl(var(--qcom-muted-fg));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qcom-account-register__form-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.qcom-account-register__section-title {
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--qcom-fg));
  margin: 0;
}

.qcom-account-register__form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .qcom-account-register__form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Extra top margin on terms + submit to create action zone */
.qcom-account-register .wp-block-button {
  margin-top: 0.5rem;
}

.qcom-account-register > form > .qcom-account-register__checkbox-row:last-of-type {
  margin-top: 0.5rem;
}

.qcom-account-register__checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qcom-account-register__checkbox-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.qcom-account-register__terms-link {
  text-decoration: none;
  font-weight: 600;
  color: hsl(var(--qcom-primary));
}

.qcom-account-register__required {
  color: hsl(var(--qcom-destructive));
}

/* Spinner inline */
.qcom-account-register__spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: var(--qcom-radius-full);
  animation: qcom-spin 1s linear infinite;
}

/* Success screen */
.qcom-account-register__success {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.qcom-account-register__success-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qcom-account-register__success-icon {
  margin: 0 auto;
  width: 4rem;
  height: 4rem;
  background: hsl(var(--qcom-success) / 0.1);
  border-radius: var(--qcom-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qcom-account-register__success-icon svg {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--qcom-success));
}

.qcom-account-register__success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--qcom-fg));
}

.qcom-account-register__success-text {
  color: hsl(var(--qcom-muted-fg));
}

/* Phone conflict CTA */
.qcom-account-register__phone-cta {
  text-align: center;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   SETTINGS TAB (qcom-account-settings)
   -------------------------------------------------------------------------- */
.qcom-account-settings__section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qcom-account-settings__section-title {
  font-size: 1.125rem;
  font-weight: 500;
}

/* Stitch: bordered card with larger padding */
.qcom-account-settings__password-box {
  border-radius: var(--qcom-radius-lg);
  border: 1px solid hsl(var(--qcom-border));
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.qcom-account-settings__password-title {
  font-size: 1rem;
  font-weight: 500;
}

.qcom-account-settings__password-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Price display radio group */
.qcom-account-settings__price-box {
  border-radius: var(--qcom-radius-lg);
  border: 1px solid hsl(var(--qcom-border));
  padding: 1rem;
}

.qcom-account-settings__price-legend {
  font-size: 1rem;
  font-weight: 500;
}

.qcom-account-settings__radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 0;
  padding: 0;
  margin: 0;
}

.qcom-account-settings__radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: var(--qcom-radius-lg);
  transition: background var(--qcom-transition);
}

.qcom-account-settings__radio-label:hover {
  background: var(--qcom-muted-bg);
}

.qcom-account-settings__radio-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qcom-account-settings__radio-circle {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--qcom-radius-full);
  border: 2px solid rgba(107, 114, 128, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qcom-account-settings__radio-circle--checked {
  border-color: hsl(var(--qcom-primary));
}

.qcom-account-settings__radio-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: var(--qcom-radius-full);
  background: hsl(var(--qcom-primary));
}

.qcom-account-settings__radio-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   WISHLIST TAB (qcom-account-wishlist)
   -------------------------------------------------------------------------- */
.qcom-account-wishlist__list {
  background: var(--wp--preset--color--base, #fff);
}

.qcom-account-wishlist__list > * + * {
  border-top: 1px solid hsl(var(--qcom-border));
}

.qcom-account-wishlist__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--wp--preset--color--base, #fff);
  transition: background var(--qcom-transition);
}

.qcom-account-wishlist__item:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Image */
.qcom-account-wishlist__img-link {
  flex-shrink: 0;
}

.qcom-account-wishlist__img-wrap {
  width: 4rem;
  height: 4rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid hsl(var(--qcom-border));
  overflow: hidden;
}

.qcom-account-wishlist__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.qcom-account-wishlist__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qcom-account-wishlist__img-placeholder svg {
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(107, 114, 128, 0.3);
}

/* Info */
.qcom-account-wishlist__info {
  flex: 1;
  min-width: 0;
}

.qcom-account-wishlist__info-link {
  text-decoration: none;
  color: inherit;
  transition: color var(--qcom-transition);
}

.qcom-account-wishlist__info-link:hover {
  color: hsl(var(--qcom-primary));
}

.qcom-account-wishlist__name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.qcom-account-wishlist__code {
  font-size: 0.6875rem;
  color: hsl(var(--qcom-muted-fg));
  margin-top: 0.125rem;
}

.qcom-account-wishlist__stock {
  font-size: 0.6875rem;
  margin-top: 0.125rem;
}

.qcom-account-wishlist__stock--in-stock { color: hsl(var(--qcom-success)); }
.qcom-account-wishlist__stock--on-order { color: hsl(var(--qcom-primary)); }
.qcom-account-wishlist__stock--out { color: hsl(var(--qcom-destructive)); }

/* Price + Actions column */
.qcom-account-wishlist__price-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Price */
.qcom-account-wishlist__price {
  text-align: right;
  flex-shrink: 0;
}

.qcom-account-wishlist__price-link {
  font-size: 0.8125rem;
  color: hsl(var(--qcom-primary));
  text-decoration: none;
  white-space: nowrap;
}

.qcom-account-wishlist__price-link:hover {
  opacity: 0.8;
}

/* Actions */
.qcom-account-wishlist__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Stitch: dark bordered button, uppercase */
.qcom-account-wishlist__cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  background: hsl(var(--qcom-fg));
  color: hsl(var(--qcom-bg)) !important;
  border: 1px solid hsl(var(--qcom-fg));
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--qcom-transition);
}

.qcom-account-wishlist__cart-btn:hover {
  opacity: 0.9;
}

.qcom-account-wishlist__cart-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.qcom-account-wishlist__view-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: 1px solid hsl(var(--qcom-border));
  color: hsl(var(--qcom-fg)) !important;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--qcom-transition), color var(--qcom-transition);
}

.qcom-account-wishlist__view-link:hover {
  border-color: rgba(var(--wp--preset--color--primary-rgb, 24, 24, 27), 0.5);
  color: hsl(var(--qcom-primary));
}

.qcom-account-wishlist__remove-btn {
  padding: 0.375rem;
  color: hsl(var(--qcom-muted-fg));
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--qcom-transition), background var(--qcom-transition);
}

.qcom-account-wishlist__remove-btn:hover {
  color: hsl(var(--qcom-destructive));
  background: var(--qcom-destructive-bg);
}

/* Empty state */
.qcom-account-wishlist__empty {
  border: 1px solid hsl(var(--qcom-border));
}

.qcom-account-wishlist__empty-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 500px;
  padding: 5rem 2rem;
}

.qcom-account-wishlist__empty-icon-wrap {
  width: 5rem;
  height: 5rem;
  border-radius: var(--qcom-radius-full);
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qcom-account-wishlist__empty-icon-wrap svg {
  width: 2.25rem;
  height: 2.25rem;
  color: rgba(107, 114, 128, 0.6);
}

.qcom-account-wishlist__empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.qcom-account-wishlist__empty-text {
  color: hsl(var(--qcom-muted-fg));
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 380px;
  margin: 0;
}

/* Wishlist mobile */
@media (max-width: 640px) {
  .qcom-account-wishlist__item {
    flex-wrap: wrap;
  }

  .qcom-account-wishlist__info {
    min-width: 0;
    flex: 1 1 calc(100% - 5rem);
  }

  .qcom-account-wishlist__price-actions {
    width: 100%;
    align-items: flex-end;
  }
}

/* --------------------------------------------------------------------------
   Skeleton sizing classes (BEM replacements for utility classes)
   -------------------------------------------------------------------------- */
.qcom-account__skeleton--h6-w1of3 { height: 1.5rem; width: 33.333%; }
.qcom-account__skeleton--h6-w1of4 { height: 1.5rem; width: 25%; }
.qcom-account__skeleton--h4-full { height: 1rem; width: 100%; }
.qcom-account__skeleton--h4-w5of6 { height: 1rem; width: 83.333%; }
.qcom-account__skeleton--h4-w3of4 { height: 1rem; width: 75%; }
.qcom-account__skeleton--h4-w2of3 { height: 1rem; width: 66.667%; }
.qcom-account__skeleton--h4-w48 { height: 1rem; width: 12rem; }
.qcom-account__skeleton--h4-w24 { height: 1rem; width: 6rem; }
.qcom-account__skeleton--h4-w16 { height: 1rem; width: 4rem; }
.qcom-account__skeleton--h4-w12 { height: 1rem; width: 3rem; }
.qcom-account__skeleton--h5-w32 { height: 1.25rem; width: 8rem; }
.qcom-account__skeleton--h5-w20 { height: 1.25rem; width: 5rem; }
.qcom-account__skeleton--h5-w24 { height: 1.25rem; width: 6rem; }
.qcom-account__skeleton--h10-full { height: 2.5rem; width: 100%; }
.qcom-account__skeleton--h8-w40 { height: 2rem; width: 10rem; }
.qcom-account__skeleton--h8-w24 { height: 2rem; width: 6rem; }
.qcom-account__skeleton--h8-w8 { height: 2rem; width: 2rem; }
.qcom-account__skeleton--16x16 { height: 4rem; width: 4rem; }
.qcom-account__skeleton--h3-w1of4 { height: 0.75rem; width: 25%; }

/* Registration form tabs */
.qcom-account-register__tabs-list {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: 14px;
}

/* ==========================================================================
   Uncompleted Orders Tab
   ========================================================================== */
.qcom-uncompleted-orders__description {
  font-size: 0.8125rem;
  color: hsl(var(--qcom-muted-fg));
  margin: 0 0 1rem;
  line-height: 1.5;
}

.qcom-account-orders__row--uncompleted {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid hsl(var(--qcom-border));
  border-radius: var(--qcom-radius-md);
  margin-bottom: 0.5rem;
}

.qcom-account-orders__row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.qcom-account-orders__row-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.qcom-account-orders__row-number {
  font-weight: 600;
  font-size: 0.875rem;
}

.qcom-account-orders__row-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: hsl(var(--qcom-muted-fg));
}

.qcom-account-orders__row-price {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.qcom-account-orders__row-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.qcom-uncompleted-orders__complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background-color: hsl(var(--qcom-primary));
  color: hsl(var(--qcom-primary-fg));
  border: 1px solid hsl(var(--qcom-primary));
  border-radius: var(--qcom-radius-md);
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.qcom-uncompleted-orders__complete-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.qcom-uncompleted-orders__complete-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qcom-account-orders__view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background-color: transparent;
  color: hsl(var(--qcom-primary));
  border: 1px solid hsl(var(--qcom-border));
  border-radius: var(--qcom-radius-md);
  cursor: pointer;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.qcom-account-orders__view-btn:hover {
  background-color: hsl(var(--qcom-primary) / 0.05);
}

.qcom-uncompleted-orders__dialog-text {
  font-size: 0.875rem;
  color: hsl(var(--qcom-muted-fg));
  margin: 0.5rem 0 1.25rem;
  line-height: 1.5;
}

.qcom-uncompleted-orders__dialog-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .qcom-account-orders__row-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .qcom-account-orders__row-actions {
    width: 100%;
  }

  .qcom-uncompleted-orders__complete-btn,
  .qcom-account-orders__view-btn {
    flex: 1;
    justify-content: center;
  }

  .qcom-uncompleted-orders__dialog-actions {
    flex-direction: column;
  }

  .qcom-uncompleted-orders__dialog-actions > * {
    width: 100%;
  }
}

.qcom-input-otp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qcom-input-otp__group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qcom-input-otp__slot {
  display: flex;
  height: 2.5rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--qcom-border));
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.15s ease;
  background: hsl(var(--qcom-bg));
}

.qcom-input-otp__slot:first-child {
  border-radius: var(--qcom-radius-md) 0 0 var(--qcom-radius-md);
}

.qcom-input-otp__slot:last-child {
  border-radius: 0 var(--qcom-radius-md) var(--qcom-radius-md) 0;
}

.qcom-input-otp__slot--active {
  outline: 2px solid hsl(var(--qcom-primary));
  outline-offset: -1px;
}

.qcom-input-otp__slot:focus {
  outline: 2px solid hsl(var(--qcom-primary));
  outline-offset: -1px;
}

/* ── Switch ── qcom-switch ─────────────────────────────────── */

.qcom-switch {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	border-radius: 9999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease;
	padding: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	     appearance: none;
	outline: none;
	background: var(--qcom-switch-track, hsl(var(--qcom-input)));
}

.qcom-switch:focus-visible {
	box-shadow: 0 0 0 2px hsl(var(--qcom-ring));
}

.qcom-switch[data-state="checked"] {
	background: hsl(var(--qcom-primary));
}

.qcom-switch[data-disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

/* Size variants */
.qcom-switch--sm {
	width: 2.25rem;
	height: 1.25rem;
}

.qcom-switch--md {
	width: 2.75rem;
	height: 1.5rem;
}

.qcom-switch--lg {
	width: 3.5rem;
	height: 2rem;
}

/* Thumb */
.qcom-switch__thumb {
	display: block;
	border-radius: 9999px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
	pointer-events: none;
}

/* Thumb sizes + transforms */
.qcom-switch--sm .qcom-switch__thumb {
	width: 0.875rem;
	height: 0.875rem;
}

.qcom-switch--sm .qcom-switch__thumb[data-state="unchecked"] {
	transform: translateX(2px);
}

.qcom-switch--sm .qcom-switch__thumb[data-state="checked"] {
	transform: translateX(1rem);
}

.qcom-switch--md .qcom-switch__thumb {
	width: 1.125rem;
	height: 1.125rem;
}

.qcom-switch--md .qcom-switch__thumb[data-state="unchecked"] {
	transform: translateX(2px);
}

.qcom-switch--md .qcom-switch__thumb[data-state="checked"] {
	transform: translateX(1.25rem);
}

.qcom-switch--lg .qcom-switch__thumb {
	width: 1.5rem;
	height: 1.5rem;
}

.qcom-switch--lg .qcom-switch__thumb[data-state="unchecked"] {
	transform: translateX(3px);
}

.qcom-switch--lg .qcom-switch__thumb[data-state="checked"] {
	transform: translateX(1.5rem);
}

/* ── Tooltip ── qcom-tooltip ───────────────────────────────── */

.qcom-tooltip__content {
	z-index: 50;
	overflow: hidden;
	border-radius: var(--qcom-radius-md);
	border: 1px solid hsl(var(--qcom-border));
	background: hsl(var(--qcom-popover));
	color: hsl(var(--qcom-popover-fg));
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	animation: qcom-tooltip-in 0.15s ease;
}

.qcom-tooltip__content[data-state="closed"] {
	animation: qcom-tooltip-out 0.1s ease;
}

@keyframes qcom-tooltip-in {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes qcom-tooltip-out {
	from {
		opacity: 1;
		transform: scale(1);
	}
	to {
		opacity: 0;
		transform: scale(0.95);
	}
}

.qcom-alert {
  padding: 1rem;
  border-radius: var(--qcom-radius-sm);
  border: 1px solid;
  position: relative;
}

.qcom-alert--success {
  border-color: var(--qcom-success-border);
  color: var(--qcom-success-text);
  background: var(--qcom-success-bg);
}

.qcom-alert--error {
  border-color: hsl(var(--qcom-destructive));
  color: hsl(var(--qcom-destructive));
  background: var(--qcom-destructive-bg);
}

.qcom-alert--info {
  border-color: var(--qcom-info-border);
  color: var(--qcom-info-text);
  background: var(--qcom-info-bg);
}

.qcom-alert__title {
  font-size: 0.875rem;
  font-weight: 400;
  padding-right: 1.5rem;
}

.qcom-alert__title--success { color: var(--qcom-success-text); }
.qcom-alert__title--error { color: hsl(var(--qcom-destructive)); }
.qcom-alert__title--info { color: var(--qcom-info-text); }

.qcom-alert__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.qcom-alert__close--success { color: var(--qcom-success-text); }
.qcom-alert__close--success:hover { color: var(--qcom-success-text); }
.qcom-alert__close--error { color: hsl(var(--qcom-destructive)); }
.qcom-alert__close--error:hover { color: hsl(var(--qcom-destructive)); }
.qcom-alert__close--info { color: var(--qcom-info-text); }
.qcom-alert__close--info:hover { color: var(--qcom-info-text); }

.qcom-alert__close svg {
  width: 1rem;
  height: 1rem;
}

.qcom-alert__description {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
  padding-right: 1.5rem;
}

.qcom-phone-input {
  display: flex;
  gap: 0.5rem;
}

.qcom-phone-input__prefix-display {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.qcom-phone-input__prefix-text {
  font-size: 0.875rem;
}

.qcom-phone-input__prefix-flag {
  font-size: 1rem;
}

.qcom-phone-input__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qcom-phone-input--no-flag .qcom-phone-input__prefix-flag {
  display: none;
}

.qcom-phone-input__prefix-static {
  padding: 0 0.5rem;
  height: var(--qcom-input-height);
  border: 1px solid hsl(var(--qcom-border));
  border-radius: var(--qcom-radius-sm);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: hsl(var(--qcom-muted));
}

.qcom-phone-input__prefix-trigger {
  width: 90px;
  min-width: 90px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.qcom-phone-input__number-input {
  flex: 1;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.qcom-login-form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 14px;
  line-height: 1.5;
  color: hsl(var(--qcom-fg));
}

/* Normalize inputs */
.qcom-login-form .qcom-input {
  font-size: 0.875rem;
  border-radius: var(--qcom-radius-md);
}

.qcom-login-form__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qcom-login-form__title {
  font-size: 20px;
  font-weight: 700;
  color: hsl(var(--qcom-fg));
  margin: 0;
}

.qcom-login-form__register-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.qcom-login-form__register-label {
  color: hsl(var(--qcom-muted-fg));
}

/* "Create account" link button */
.qcom-login-form .qcom-login-form__register-row .qcom-wp-button__link.qcom-wp-button__link--link {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: hsl(var(--qcom-primary));
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

.qcom-login-form .qcom-login-form__register-row .qcom-wp-button__link.qcom-wp-button__link--link:hover {
  opacity: 0.7;
}

.qcom-login-form__section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.3s ease-in-out;
}

.qcom-login-form__field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--qcom-muted-fg));
  margin-bottom: 0.25rem;
}

.qcom-login-form__field-error {
  color: hsl(var(--qcom-destructive));
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.qcom-login-form__toggle-link {
  font-size: 0.75rem;
  color: var(--qcom-button-bg);
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
}

.qcom-login-form__toggle-link:hover {
  opacity: 0.8;
}

.qcom-login-form__forgot-password {
  margin-top: 0.25rem;
}

.qcom-login-form .qcom-login-form__forgot-password .qcom-wp-button__link.qcom-wp-button__link--link {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: hsl(var(--qcom-primary));
  font-size: 13px;
  font-weight: 500;
  padding: 0;
  text-decoration: none;
}

.qcom-login-form .qcom-login-form__forgot-password .qcom-wp-button__link.qcom-wp-button__link--link:hover {
  opacity: 0.7;
}

.qcom-login-form__auth-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  background: var(--qcom-muted-bg);
  border-radius: var(--qcom-radius-md);
}

.qcom-login-form__auth-toggle-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qcom-login-form__auth-toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qcom-login-form__auth-toggle-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--qcom-muted-fg));
}

.qcom-login-form__tooltip-trigger {
  color: hsl(var(--qcom-muted-fg));
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.qcom-login-form__tooltip-trigger:hover {
  color: hsl(var(--qcom-muted-fg));
}

.qcom-login-form__tooltip-trigger svg {
  width: 1rem;
  height: 1rem;
}

.qcom-login-form__tooltip-text {
  font-size: 0.75rem;
  max-width: 16rem;
}

.qcom-login-form__otp-section {
  margin-top: 1rem;
}

.qcom-login-form__otp-center {
  display: flex;
  justify-content: center;
}

.qcom-login-form__otp-error {
  color: hsl(var(--qcom-destructive));
  font-size: 0.875rem;
  margin-top: 0.25rem;
  text-align: center;
}

.qcom-login-form__otp-resend {
  width: 100%;
  margin-top: 0.5rem;
}

.qcom-login-form__reset-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease-in-out;
}

.qcom-login-form__reset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qcom-login-form__reset-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--qcom-fg));
}

.qcom-login-form__reset-description {
  font-size: 0.875rem;
  color: hsl(var(--qcom-muted-fg));
}

.qcom-login-form__reset-actions {
  display: flex;
  gap: 0.75rem;
}

.qcom-login-form__reset-submit {
  flex: 1;
}

/* Submit button spacing */
.qcom-login-form .wp-block-button {
  margin-top: 0.25rem;
}

.qcom-login-form__alert {
  margin-top: 1rem;
}

.qcom-login-form__switch-scale {
  transform: scale(0.75);
}

/* ── Checkbox ── qcom-checkbox ─────────────────────────────── */
/* Radix primitive + our design tokens (Radix Themes "surface" style) */

.qcom-checkbox {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: top;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: var(--qcom-radius-sm);
	border: none;
	padding: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	     appearance: none;
	outline: none;
}

/* The visible box — rendered as ::before (Radix Themes pattern) */
.qcom-checkbox::before {
	content: '';
	display: block;
	position: absolute;
	inset: 0;
	border-radius: inherit;
	transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

/* Unchecked: surface background with inset border */
.qcom-checkbox[data-state="unchecked"]::before {
	background-color: hsl(var(--qcom-bg));
	box-shadow: inset 0 0 0 1px hsl(var(--qcom-border));
}

/* Checked: solid accent fill */
.qcom-checkbox[data-state="checked"]::before {
	background-color: hsl(var(--qcom-primary));
}

/* Focus ring */
.qcom-checkbox:focus-visible::before {
	outline: 2px solid hsl(var(--qcom-primary));
	outline-offset: 2px;
}

/* Disabled */
.qcom-checkbox[data-disabled] {
	cursor: not-allowed;
	opacity: 0.5;
}

/* Indicator (check icon wrapper) — absolutely centered */
.qcom-checkbox__indicator {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	z-index: 1;
}

/* Check icon SVG */
.qcom-checkbox__icon {
	width: 9px;
	height: 9px;
}

/* button.css -- BEM styles for qcom-button */

/* Base */
.qcom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--qcom-radius-md);
  transition: colors 0.15s;
  cursor: pointer;
  border: none;
}

.qcom-button:focus-visible {
  outline: 2px solid hsl(var(--qcom-primary));
  outline-offset: 2px;
}

.qcom-button:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.qcom-button svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Variants */
.qcom-button--default {
  background: hsl(var(--qcom-primary));
  color: hsl(var(--qcom-primary-fg));
}

.qcom-button--default:hover {
  opacity: 0.9;
}

.qcom-button--destructive {
  background: hsl(var(--qcom-destructive));
  color: hsl(var(--qcom-destructive-fg));
}

.qcom-button--destructive:hover {
  opacity: 0.9;
}

.qcom-button--outline {
  border: 1px solid hsl(var(--qcom-border));
  background: transparent;
}

.qcom-button--outline:hover {
  background: hsl(var(--qcom-accent));
}

.qcom-button--secondary {
  background: hsl(var(--qcom-secondary));
  color: hsl(var(--qcom-secondary-fg));
}

.qcom-button--secondary:hover {
  opacity: 0.8;
}

.qcom-button--ghost {
  background: transparent;
}

.qcom-button--ghost:hover {
  background: hsl(var(--qcom-accent));
}

.qcom-button--link {
  background: transparent;
  color: hsl(var(--qcom-primary));
  text-decoration-underline-offset: 4px;
}

.qcom-button--link:hover {
  text-decoration: underline;
}

/* Sizes */
.qcom-button--size-default {
  height: 2.5rem;
  padding: 0.5rem 1rem;
}

.qcom-button--size-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
}

.qcom-button--size-lg {
  height: 2.75rem;
  padding: 0 2rem;
}

.qcom-button--size-icon {
  height: 2.5rem;
  width: 2.5rem;
}

/* ── PasswordInput ── qcom-password-input ──────────────────── */

.qcom-password-input {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.qcom-password-input__label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--qcom-muted-fg));
}

.qcom-password-input__wrapper {
	position: relative;
}

.qcom-password-input__input {
	padding-right: 2.75rem;
}

.qcom-password-input__toggle {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	padding: 0 0.75rem;
	display: flex;
	align-items: center;
	background: transparent;
	border: none;
	cursor: pointer;
	color: hsl(var(--qcom-muted-fg));
}

.qcom-password-input__toggle:hover {
	background: transparent;
}

.qcom-password-input__toggle svg {
	width: 1rem;
	height: 1rem;
}

.qcom-password-input__error {
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--qcom-destructive));
}

.qcom-password-input__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

