.portal-customer {
    background-color: var(--store-color-page);
}

.portal-customer input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.portal-customer input[type="number"]::-webkit-inner-spin-button,
.portal-customer input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.portal-customer #app .portal-auth-shell {
    min-height: 100vh;
}

.portal-customer #app .portal-auth-card {
    width: 100%;
}

/* Store design editor chrome */
.portal-customer #app .store-design-editor-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
}

.portal-customer #app .store-design-editor-workspace {
    display: grid;
    min-width: 0;
    min-height: 0;
    flex: 1;
    grid-template-columns: 4.5rem 0 minmax(0, 1fr);
    overflow: hidden;
    transition: grid-template-columns 180ms ease;
}

.portal-customer #app .store-design-editor-workspace.is-panel-open {
    grid-template-columns: 4.5rem 18.75rem minmax(0, 1fr);
}

.portal-customer #app .store-design-editor-rail {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
    border-right: 1px solid #0b2540;
    background: linear-gradient(180deg, #071628 0%, #0a1d35 100%);
    padding: 0.5rem 0.375rem;
    color: #cbd5e1;
}

.portal-customer #app .store-design-editor-rail__spacer {
    flex: 1;
    min-height: 0.75rem;
}

.portal-customer #app .store-design-editor-rail__button {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid transparent;
    border-radius: var(--store-radius-md);
    padding: 0.5rem 0.25rem;
    color: #cbd5e1;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    transition: var(--store-transition-fast);
}

.portal-customer #app .store-design-editor-rail__button:hover,
.portal-customer #app .store-design-editor-rail__button.is-active {
    border-color: rgb(56 189 248 / 0.35);
    background: linear-gradient(180deg, rgb(14 165 233 / 0.28) 0%, rgb(2 132 199 / 0.18) 100%);
    color: #ffffff;
}

.portal-customer #app .store-design-editor-rail__button--secondary {
    padding: 0.375rem 0.25rem;
    font-size: 0.5625rem;
}

.portal-customer #app .store-design-editor-rail__icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--store-radius-sm);
}

.portal-customer #app .store-design-editor-rail__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-customer #app .store-design-editor-panel-shell {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: visible;
}

.portal-customer #app .store-design-editor-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-right: 1px solid var(--store-color-border);
    background: var(--store-color-surface);
}

.portal-customer #app .store-design-editor-panel-toggle {
    position: absolute;
    top: 50%;
    right: -0.75rem;
    z-index: 30;
    display: inline-flex;
    width: 1.5rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--store-color-border-strong);
    border-left: 0;
    border-radius: 0 var(--store-radius-sm) var(--store-radius-sm) 0;
    background: var(--store-color-primary);
    color: #ffffff;
    box-shadow: var(--store-shadow-sm);
    transform: translateY(-50%);
}

.portal-customer #app .store-design-images-panel,
.portal-customer #app .store-design-side-section {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
}

.portal-customer #app .store-design-images-panel__tabs {
    display: grid;
    flex-shrink: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--store-color-border);
    background: var(--store-color-surface);
}

.portal-customer #app .store-design-images-panel__tab {
    position: relative;
    min-height: 2.5rem;
    padding: 0.625rem 0.375rem 0.75rem;
    color: var(--store-color-text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

.portal-customer #app .store-design-images-panel__tab.is-active {
    color: var(--store-color-primary);
}

.portal-customer #app .store-design-images-panel__tab.is-active::after {
    position: absolute;
    right: 0.75rem;
    bottom: -1px;
    left: 0.75rem;
    height: 2px;
    content: "";
    border-radius: var(--store-radius-pill);
    background: var(--store-color-primary);
}

.portal-customer #app .store-design-images-panel__body {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    padding: 0.75rem;
}

.portal-customer #app .store-design-images-panel__body--upload {
    gap: 1rem;
}

.portal-customer #app .store-design-images-panel__body--gallery {
    min-height: 0;
}

.portal-customer #app .store-design-images-panel__status {
    padding: 0.5rem 0;
    color: var(--store-color-text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: center;
}

.portal-customer #app .store-design-images-dropzone {
    display: flex;
    min-height: 12.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 2px dashed color-mix(in srgb, var(--store-color-primary) 28%, var(--store-color-border));
    border-radius: var(--store-radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
}

.portal-customer #app .store-design-images-dropzone:hover,
.portal-customer #app .store-design-images-dropzone:focus-visible {
    border-color: var(--store-color-primary);
    background: color-mix(in srgb, var(--store-color-primary) 5%, white);
    outline: none;
}

.portal-customer #app .store-design-images-dropzone__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--store-radius-pill);
    background: color-mix(in srgb, var(--store-color-primary) 10%, white);
    color: var(--store-color-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.625rem;
    text-transform: uppercase;
}

.portal-customer #app .store-design-images-dropzone__icon {
    width: 2.75rem;
    height: 2.75rem;
    color: var(--store-color-primary);
}

.portal-customer #app .store-design-images-dropzone__text {
    max-width: 14rem;
    color: var(--store-color-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
}

.portal-customer #app .store-design-images-dropzone__button {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--store-color-primary);
    border-radius: var(--store-radius-pill);
    background: var(--store-color-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 1rem;
    transition: background var(--store-transition-fast), border-color var(--store-transition-fast);
}

.portal-customer #app .store-design-images-dropzone__button:hover {
    border-color: var(--store-color-primary-hover);
    background: var(--store-color-primary-hover);
}

.portal-customer #app .store-design-images-dropzone__hint {
    max-width: 14rem;
    color: var(--store-color-text-muted);
    font-size: 0.6875rem;
    line-height: 1.4;
}

.portal-customer #app .store-design-images-upload-status {
    overflow: hidden;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface);
}

.portal-customer #app .store-design-images-upload-status__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--store-color-border);
    padding: 0.5rem 0.625rem;
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 600;
}

.portal-customer #app .store-design-images-upload-status__link {
    color: var(--store-color-primary);
    font-weight: 700;
}

.portal-customer #app .store-design-images-upload-status__add {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--store-radius-sm);
    background: var(--store-color-primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.portal-customer #app .store-design-images-upload-status__row {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem;
}

.portal-customer #app .store-design-images-upload-status__thumb-wrap {
    position: relative;
    width: 3.25rem;
    height: 3.25rem;
    overflow: hidden;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface-muted);
}

.portal-customer #app .store-design-images-upload-status__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-customer #app .store-design-images-upload-status__check {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: var(--store-radius-pill);
    background: #16a34a;
    color: #ffffff;
}

.portal-customer #app .store-design-images-upload-status__meta {
    min-width: 0;
}

.portal-customer #app .store-design-images-upload-status__name {
    overflow: hidden;
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-customer #app .store-design-images-upload-status__size {
    margin-top: 0.125rem;
    color: var(--store-color-text-muted);
    font-size: 0.6875rem;
}

.portal-customer #app .store-design-images-upload-status__remove,
.portal-customer #app .store-design-images-upload-status__icon-btn {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--store-radius-pill);
    color: var(--store-color-text-muted);
}

.portal-customer #app .store-design-images-upload-status__footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--store-color-border);
    padding: 0.5rem 0.625rem;
    color: var(--store-color-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.portal-customer #app .store-design-images-upload-status__spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid color-mix(in srgb, var(--store-color-primary) 20%, transparent);
    border-top-color: var(--store-color-primary);
    border-radius: var(--store-radius-pill);
    animation: store-design-upload-spin 0.8s linear infinite;
}

.portal-customer #app .store-design-images-upload-status__actions {
    display: inline-flex;
    gap: 0.25rem;
}

.portal-customer #app .store-design-images-library {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.25rem;
}

.portal-customer #app .store-design-images-search--library {
    grid-template-columns: minmax(0, 1fr);
}

.portal-customer #app .store-design-images-library__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;
}

.portal-customer #app .store-design-images-library__item {
    overflow: hidden;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: #ffffff;
    aspect-ratio: 1;
}

.portal-customer #app .store-design-images-library__item:hover {
    border-color: var(--store-color-primary);
}

.portal-customer #app .store-design-images-library__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-customer #app .store-design-templates-panel {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.portal-customer #app .store-design-templates-panel__header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.portal-customer #app .store-design-templates-panel__title {
    color: var(--store-color-text);
    font-size: 1.125rem;
    font-weight: 700;
}

.portal-customer #app .store-design-templates-panel__meta {
    color: var(--store-color-text-muted);
    font-size: 0.75rem;
}

.portal-customer #app .store-design-templates-panel__search {
    display: block;
}

.portal-customer #app .store-design-templates-panel__status {
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface-muted);
    padding: 0.75rem;
    color: var(--store-color-text-muted);
    font-size: 0.8125rem;
    text-align: center;
}

.portal-customer #app .store-design-templates-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}

.portal-customer #app .store-design-templates-panel__card {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface);
    padding: 0.5rem;
    text-align: left;
    transition: border-color var(--store-transition-fast), box-shadow var(--store-transition-fast);
}

.portal-customer #app .store-design-templates-panel__card:hover {
    border-color: var(--store-color-primary);
    box-shadow: var(--store-shadow-sm);
}

.portal-customer #app .store-design-templates-panel__card.is-selected {
    border-color: var(--store-color-primary);
    background: color-mix(in srgb, var(--store-color-primary) 8%, white);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--store-color-primary) 35%, white);
}

.portal-customer #app .store-design-templates-panel__card:disabled {
    cursor: wait;
    opacity: 0.7;
}

.portal-customer #app .store-design-templates-panel__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--store-radius-md) - 2px);
    background: var(--store-color-surface-muted);
}

.portal-customer #app .store-design-templates-panel__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-customer #app .store-design-templates-panel__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--store-color-text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
}

.portal-customer #app .store-design-templates-panel__badge {
    position: absolute;
    top: 0.375rem;
    left: 0.375rem;
    border-radius: var(--store-radius-pill);
    background: var(--store-color-primary);
    padding: 0.125rem 0.5rem;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-customer #app .store-design-templates-panel__name {
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.portal-customer #app .store-design-templates-panel__subtitle,
.portal-customer #app .store-design-templates-panel__price {
    color: var(--store-color-text-muted);
    font-size: 0.6875rem;
    line-height: 1.35;
}

.portal-customer #app .store-design-templates-panel__price {
    color: var(--store-color-primary);
    font-weight: 700;
}

.portal-customer #app .store-design-templates-panel__empty {
    border-radius: var(--store-radius-md);
    border: 1px dashed var(--store-color-border-strong);
    background: var(--store-color-surface-muted);
    padding: 1rem;
    color: var(--store-color-text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
}

.portal-customer #app .store-design-template-picker {
    position: fixed;
    inset: 0;
    z-index: 480;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(15 23 42 / 0.72);
    padding: 1rem;
}

.portal-customer #app .store-design-template-picker__panel {
    position: relative;
    display: grid;
    width: min(56rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border-radius: var(--store-radius-lg);
    background: var(--store-color-surface);
    box-shadow: var(--store-shadow-md);
}

@media (min-width: 768px) {
    .portal-customer #app .store-design-template-picker__panel {
        grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.85fr);
        overflow: hidden;
    }
}

.portal-customer #app .store-design-template-picker__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-pill);
    background: white;
    color: var(--store-color-text-muted);
}

.portal-customer #app .store-design-template-picker__preview {
    display: flex;
    min-height: 18rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--store-color-surface-muted);
    padding: 2.5rem 1.5rem 1.5rem;
}

.portal-customer #app .store-design-template-picker__image {
    display: block;
    width: 100%;
    max-width: 34rem;
    max-height: min(28rem, calc(100vh - 12rem));
    object-fit: contain;
}

.portal-customer #app .store-design-template-picker__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 14rem;
    border-radius: var(--store-radius-md);
    background: white;
    color: var(--store-color-text-muted);
    font-size: 0.875rem;
}

.portal-customer #app .store-design-template-picker__sides {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.portal-customer #app .store-design-template-picker__side-btn {
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-pill);
    background: white;
    padding: 0.45rem 0.9rem;
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 700;
}

.portal-customer #app .store-design-template-picker__side-btn.is-active {
    border-color: var(--store-color-primary);
    background: color-mix(in srgb, var(--store-color-primary) 10%, white);
    color: var(--store-color-primary-hover);
}

.portal-customer #app .store-design-template-picker__details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--store-color-border);
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .portal-customer #app .store-design-template-picker__details {
        border-top: 0;
        border-left: 1px solid var(--store-color-border);
    }
}

.portal-customer #app .store-design-template-picker__eyebrow {
    color: var(--store-color-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.portal-customer #app .store-design-template-picker__title {
    color: var(--store-color-text);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
}

.portal-customer #app .store-design-template-picker__subtitle,
.portal-customer #app .store-design-template-picker__single-side {
    color: var(--store-color-text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.portal-customer #app .store-design-template-picker__price {
    color: var(--store-color-primary);
    font-size: 0.875rem;
    font-weight: 700;
}

.portal-customer #app .store-design-template-picker__apply {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 0.25rem;
}

.portal-customer #app .store-design-template-picker__section-title {
    color: var(--store-color-text);
    font-size: 0.875rem;
    font-weight: 700;
}

.portal-customer #app .store-design-template-picker__option {
    display: flex;
    gap: 0.625rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface-muted);
    padding: 0.75rem;
    cursor: pointer;
}

.portal-customer #app .store-design-template-picker__option input {
    margin-top: 0.2rem;
}

.portal-customer #app .store-design-template-picker__option span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.portal-customer #app .store-design-template-picker__option strong {
    color: var(--store-color-text);
    font-size: 0.8125rem;
}

.portal-customer #app .store-design-template-picker__option small {
    color: var(--store-color-text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.portal-customer #app .store-design-template-picker__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.portal-customer #app .store-design-template-picker__cancel,
.portal-customer #app .store-design-template-picker__apply-btn {
    border-radius: var(--store-radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
}

.portal-customer #app .store-design-template-picker__cancel {
    border: 1px solid var(--store-color-border);
    background: white;
    color: var(--store-color-text);
}

.portal-customer #app .store-design-template-picker__apply-btn {
    border: 0;
    background: var(--store-color-primary);
    color: white;
}

.portal-customer #app .store-design-template-picker__apply-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

@keyframes store-design-upload-spin {
    to {
        transform: rotate(360deg);
    }
}

.portal-customer #app .store-design-images-upload {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--store-color-border-strong);
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface-muted);
    padding: 1.5rem 1rem;
    text-align: center;
}

.portal-customer #app .store-design-images-upload:hover {
    border-color: var(--store-color-primary);
    background: color-mix(in srgb, var(--store-color-primary) 8%, white);
}

.portal-customer #app .store-design-images-upload__title {
    color: var(--store-color-text);
    font-size: 0.8125rem;
    font-weight: 700;
}

.portal-customer #app .store-design-images-upload__hint {
    margin-top: 0.25rem;
    color: var(--store-color-text-muted);
    font-size: 0.6875rem;
}

.portal-customer #app .store-design-images-upload-list__title,
.portal-customer #app .store-design-side-section__title {
    margin-bottom: 0.5rem;
    color: var(--store-color-text);
    font-size: 0.8125rem;
    font-weight: 700;
}

.portal-customer #app .store-design-images-upload-list {
    display: grid;
    gap: 0.5rem;
}

.portal-customer #app .store-design-images-upload-card {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.625rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface-muted);
    padding: 0.375rem;
    text-align: left;
}

.portal-customer #app .store-design-images-upload-card:hover {
    border-color: var(--store-color-primary);
}

.portal-customer #app .store-design-images-upload-card__thumb {
    width: 3rem;
    height: 3rem;
    border-radius: var(--store-radius-sm);
    object-fit: cover;
}

.portal-customer #app .store-design-images-upload-card__name {
    overflow: hidden;
    color: var(--store-color-text);
    font-size: 0.6875rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-customer #app .store-design-images-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.375rem;
}

.portal-customer #app .store-design-images-search__icon {
    position: absolute;
    top: 50%;
    left: 0.625rem;
    width: 0.875rem;
    height: 0.875rem;
    color: var(--store-color-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.portal-customer #app .store-design-images-search__input {
    grid-column: 1 / -1;
    height: 2rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface-muted);
    padding: 0 0.625rem 0 2rem;
    color: var(--store-color-text);
    font-size: 0.75rem;
}

.portal-customer #app .store-design-images-search__filter {
    height: 1.75rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface);
    padding: 0 0.375rem;
    color: var(--store-color-text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
}

.portal-customer #app .store-design-images-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;
}

.portal-customer #app .store-design-images-gallery__item {
    overflow: hidden;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: #ffffff;
    aspect-ratio: 4 / 3;
}

.portal-customer #app .store-design-images-gallery__item:hover {
    border-color: var(--store-color-primary);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--store-color-primary) 35%, transparent);
}

.portal-customer #app .store-design-images-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

.portal-customer #app .store-design-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.portal-customer #app .store-design-social-grid__item {
    display: grid;
    justify-items: center;
    gap: 0.375rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface-muted);
    padding: 0.625rem 0.375rem;
    color: var(--store-color-text);
    font-size: 0.6875rem;
    font-weight: 600;
}

.portal-customer #app .store-design-social-grid__item img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--store-radius-sm);
}

.portal-customer #app .store-design-images-panel__empty,
.portal-customer #app .store-design-side-section__hint {
    color: var(--store-color-text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.portal-customer #app .store-design-side-section {
    padding: 0.875rem;
}

.portal-customer #app .store-design-side-section__input {
    width: 100%;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface-muted);
    padding: 0.625rem 0.75rem;
    color: var(--store-color-text);
    font-size: 0.8125rem;
}

.portal-customer #app .store-design-side-section__action {
    margin-top: 0.75rem;
    width: 100%;
    border-radius: var(--store-radius-sm);
    background: var(--store-color-text);
    padding: 0.625rem 0.75rem;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
}

.portal-customer #app .store-design-clipart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.875rem;
}

.portal-customer #app .store-design-clipart-grid__item {
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface-muted);
    padding: 0.875rem 0.5rem;
    color: var(--store-color-text);
    font-size: 0.8125rem;
    font-weight: 700;
}

.portal-customer #app .store-design-editor-panel > div:not(.store-design-effect-panel):not(.store-design-images-panel):not(.store-design-side-section) {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 0.875rem;
}

.portal-customer #app .store-design-editor-header {
    position: relative;
    z-index: 120;
    height: 3rem;
    min-height: 3rem;
    overflow: visible;
    padding: 0 0.625rem;
}

.portal-customer #app .store-design-editor-tool-group {
    position: relative;
    z-index: 130;
}

.portal-customer #app .store-design-editor-icon-btn {
    position: relative;
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--store-radius-sm);
    color: var(--store-color-text-muted);
    transition: var(--store-transition-fast);
}

.portal-customer #app .store-design-editor-icon-btn:hover:not(:disabled) {
    border-color: var(--store-color-border);
    background-color: var(--store-color-surface-muted);
    color: var(--store-color-text);
}

.portal-customer #app .store-design-editor-icon-btn--active {
    color: var(--store-color-primary);
}

.portal-customer #app .store-design-editor-tool-group .store-design-editor-icon-btn[data-tooltip]::after {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 50%;
    z-index: 999;
    content: attr(data-tooltip);
    width: max-content;
    max-width: 12rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface);
    box-shadow: var(--store-shadow-sm);
    color: var(--store-color-text);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-2px);
    transition: opacity 120ms ease, transform 120ms ease;
    white-space: nowrap;
}

.portal-customer #app .store-design-editor-tool-group .store-design-editor-icon-btn[data-tooltip]:hover::after,
.portal-customer #app .store-design-editor-tool-group .store-design-editor-icon-btn[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.portal-customer #app .store-design-object-quick-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    border: 1px solid var(--store-color-border);
    border-radius: 0.375rem;
    background: rgb(255 255 255 / 0.96);
    padding: 0.125rem;
    box-shadow: var(--store-shadow-sm);
}

.portal-customer #app .store-design-object-quick-toolbar__button {
    display: inline-flex;
    width: 1.375rem;
    height: 1.375rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    color: #334155;
}

.portal-customer #app .store-design-object-quick-toolbar__button:hover:not(:disabled) {
    background: var(--store-color-surface-muted);
    color: var(--store-color-primary);
}

.portal-customer #app .store-design-object-quick-toolbar__button--danger:hover:not(:disabled) {
    background: #fef2f2;
    color: #dc2626;
}

.portal-customer #app .store-design-object-quick-toolbar__button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.portal-customer #app .store-design-object-quick-toolbar__icon {
    width: 0.75rem;
    height: 0.75rem;
}

.portal-customer #app .store-design-canvas-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgb(100 116 139 / 0.18) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(100 116 139 / 0.18) 1px, transparent 1px);
    background-size: 20px 20px;
}

.portal-customer #app .store-design-image-bg-removal-overlay {
    position: absolute;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.25rem;
    background: rgb(15 23 42 / 0.42);
    pointer-events: auto;
}

.portal-customer #app .store-design-image-bg-removal-overlay__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-radius: var(--store-radius-md);
    background: rgb(255 255 255 / 0.96);
    box-shadow: var(--store-shadow-md);
}

.portal-customer #app .store-design-image-bg-removal-overlay__spinner {
    width: 1.75rem;
    height: 1.75rem;
    border: 3px solid #cbd5e1;
    border-top-color: var(--store-color-primary);
    border-radius: 9999px;
    animation: store-design-bg-removal-spin 0.8s linear infinite;
}

.portal-customer #app .store-design-image-bg-removal-overlay__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

@keyframes store-design-bg-removal-spin {
    to {
        transform: rotate(360deg);
    }
}

.portal-customer #app .store-design-editor-action-btn {
    display: inline-flex;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--store-color-border-strong);
    border-radius: var(--store-radius-sm);
    background-color: var(--store-color-surface);
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--store-color-text);
    transition: var(--store-transition-fast);
}

.portal-customer #app .store-design-editor-action-btn:hover:not(:disabled) {
    background-color: var(--store-color-surface-muted);
}

.portal-customer #app .store-design-editor-action-btn--primary {
    border-color: var(--store-color-primary);
    background-color: var(--store-color-primary);
    color: var(--store-color-surface);
}

.portal-customer #app .store-design-editor-action-btn--primary:hover:not(:disabled) {
    background-color: var(--store-color-primary-hover);
}

.portal-customer #app .store-design-toolbar-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
}

.portal-customer #app .store-design-toolbar-scroll::-webkit-scrollbar {
    display: none;
}

.portal-customer #app .store-design-toolbar-divider {
    display: inline-block;
    width: 1px;
    height: 1.75rem;
    flex-shrink: 0;
    background: var(--store-color-border);
}

.portal-customer #app .store-design-text-case-button {
    min-width: 2.25rem;
    letter-spacing: -0.02em;
}

.portal-customer #app .store-design-font-picker {
    z-index: 40;
}

.portal-customer #app .store-design-font-picker__button {
    display: inline-flex;
    width: 12rem;
    height: 2rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid var(--store-color-primary);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface);
    padding: 0 0.625rem;
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
}

.portal-customer #app .store-design-font-picker__button:disabled {
    cursor: not-allowed;
    border-color: var(--store-color-border);
    color: var(--store-color-text-muted);
    opacity: 0.58;
}

.portal-customer #app .store-design-font-picker__menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 80;
    width: 22rem;
    max-height: 22rem;
    overflow-y: auto;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface);
    box-shadow: var(--store-shadow-md);
    padding: 0.375rem;
}

.portal-customer #app .store-design-font-picker__option {
    display: flex;
    width: 100%;
    align-items: center;
    border-radius: var(--store-radius-sm);
    padding: 0.5rem 0.625rem;
    color: var(--store-color-text);
    font-size: 0.875rem;
    line-height: 1.2;
    text-align: left;
}

.portal-customer #app .store-design-font-picker__option:hover,
.portal-customer #app .store-design-font-picker__option.is-active {
    background: var(--store-color-surface-muted);
    color: var(--store-color-primary);
}

.portal-customer #app .store-design-font-size-picker {
    z-index: 40;
}

.portal-customer #app .store-design-font-size-picker__button {
    display: inline-flex;
    width: 4.5rem;
    height: 2rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    border: 1px solid var(--store-color-border-strong);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface);
    padding: 0 0.5rem;
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.portal-customer #app .store-design-font-size-picker__button:disabled {
    cursor: not-allowed;
    color: var(--store-color-text-muted);
    opacity: 0.58;
}

.portal-customer #app .store-design-font-size-picker__menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 80;
    width: 4.5rem;
    max-height: 25rem;
    overflow-y: auto;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface);
    box-shadow: var(--store-shadow-md);
    padding: 0.25rem 0;
}

.portal-customer #app .store-design-font-size-picker__option {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    color: var(--store-color-text);
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: left;
}

.portal-customer #app .store-design-font-size-picker__option:hover,
.portal-customer #app .store-design-font-size-picker__option.is-active {
    background: var(--store-color-surface-muted);
    color: var(--store-color-primary);
}

.portal-customer #app .store-design-toolbar-button {
    display: inline-flex;
    height: 2rem;
    align-items: center;
    gap: 0.375rem;
    border-radius: var(--store-radius-sm);
    padding: 0 0.625rem;
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 700;
}

.portal-customer #app .store-design-toolbar-button:hover:not(:disabled),
.portal-customer #app .store-design-toolbar-button.is-active {
    background: var(--store-color-surface-muted);
    color: var(--store-color-primary);
}

.portal-customer #app .store-design-toolbar-button:disabled {
    cursor: not-allowed;
    color: var(--store-color-text-muted);
    opacity: 0.5;
}

.portal-customer #app .store-design-toolbar-button__icon {
    width: 0.875rem;
    height: 0.875rem;
    border: 1px solid currentColor;
    background-image: repeating-linear-gradient(
        45deg,
        currentColor 0,
        currentColor 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.78;
}

.portal-customer #app .store-design-image-tool {
    display: inline-flex;
    min-height: 1.875rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.0625rem;
    border-radius: var(--store-radius-sm);
    padding: 0.0625rem 0.375rem;
    color: var(--store-color-text);
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
}

.portal-customer #app .store-design-image-tool:hover:not(:disabled),
.portal-customer #app .store-design-image-tool.is-active {
    background: var(--store-color-surface-muted);
    color: var(--store-color-primary);
}

.portal-customer #app .store-design-image-tool:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.portal-customer #app .store-design-image-tool__icon {
    width: 0.875rem;
    height: 0.875rem;
}

.portal-customer #app .store-design-toolbar-scroll--image {
    min-height: 2.75rem;
    gap: 0.25rem;
}

.portal-customer #app .store-design-toolbar-scroll--image-fit {
    overflow-x: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.portal-customer #app .store-design-toolbar-divider--image {
    height: 2rem;
}

.portal-customer #app .store-design-image-tool--row {
    min-height: 2.5rem;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.6875rem;
    line-height: 1.1;
}

.portal-customer #app .store-design-image-tool--compact {
    min-height: 2.25rem;
    padding: 0.25rem 0.4rem;
    gap: 0.25rem;
}

.portal-customer #app .store-design-image-tool--row .store-design-image-tool__icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.portal-customer #app .store-design-image-tool--row .store-design-image-tool__label {
    font-size: 0.6875rem;
    font-weight: 600;
}

.portal-customer #app .store-design-image-tool--compact .store-design-image-tool__label {
    font-size: 0.625rem;
}

.portal-customer #app .store-design-image-tool--icon-only {
    min-width: 2.75rem;
    justify-content: center;
    padding-inline: 0.5rem;
}

.portal-customer #app .store-design-image-tool__icon--checker {
    display: inline-block;
    border: 1px solid currentColor;
    background-image:
        linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
        linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
        linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
    background-position: 0 0, 0 4px, 4px -4px, -4px 0;
    background-size: 8px 8px;
    opacity: 0.9;
}

.portal-customer #app .store-design-image-style-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--store-color-border);
    background: #fff;
    padding: 0.625rem 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.portal-customer #app .store-design-image-style-bar::-webkit-scrollbar {
    display: none;
}

.portal-customer #app .store-design-image-style-bar__option {
    min-height: 2.25rem;
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.portal-customer #app .store-design-image-style-bar__option:hover:not(:disabled) {
    border-color: var(--store-color-primary);
    color: var(--store-color-primary);
}

.portal-customer #app .store-design-image-style-bar__option.is-active {
    border-color: var(--store-color-primary);
    background: color-mix(in srgb, var(--store-color-primary) 10%, white);
    color: var(--store-color-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--store-color-primary) 35%, transparent);
}

.portal-customer #app .store-design-image-style-bar__option:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.portal-customer #app .store-design-image-opacity-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--store-color-border);
    background: #fff;
    padding: 0.5rem 0.75rem;
}

.portal-customer #app .store-design-image-opacity-bar__label {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
}

.portal-customer #app .store-design-image-opacity-bar__slider {
    flex: 1 1 auto;
    min-width: 8rem;
    max-width: 20rem;
    accent-color: var(--store-color-primary);
}

.portal-customer #app .store-design-image-opacity-bar__value {
    min-width: 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    text-align: right;
}

.portal-customer #app .store-design-image-opacity-bar__select {
    height: 2rem;
    flex-shrink: 0;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface-muted);
    padding: 0 0.5rem;
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 600;
}

.portal-customer #app .store-design-toolbar-scroll--image .store-design-image-scale-controls,
.portal-customer #app .store-design-toolbar-scroll--image .store-design-image-nudge-controls {
    padding: 0.125rem 0.25rem;
}

.portal-customer #app .store-design-toolbar-scroll--image .store-design-image-scale-controls__button,
.portal-customer #app .store-design-toolbar-scroll--image .store-design-image-nudge-controls__button {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
}

.portal-customer #app .store-design-toolbar-scroll--image .store-design-image-scale-controls__slider {
    width: 4.5rem;
}

.portal-customer #app .store-design-image-scale-controls,
.portal-customer #app .store-design-image-nudge-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface);
    padding: 0.125rem 0.375rem;
}

.portal-customer #app .store-design-image-scale-controls__button,
.portal-customer #app .store-design-image-nudge-controls__button {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--store-radius-sm);
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 700;
}

.portal-customer #app .store-design-image-scale-controls__button:hover:not(:disabled),
.portal-customer #app .store-design-image-nudge-controls__button:hover:not(:disabled) {
    background: var(--store-color-surface-muted);
    color: var(--store-color-primary);
}

.portal-customer #app .store-design-image-scale-controls__slider {
    width: 5.5rem;
}

.portal-customer #app .store-design-image-style-picker__menu,
.portal-customer #app .store-design-image-position-picker__menu,
.portal-customer #app .store-design-image-more-menu__panel {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    z-index: 90;
    display: grid;
    min-width: 10rem;
    gap: 0.125rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface);
    padding: 0.375rem;
    box-shadow: var(--store-shadow-md);
}

.portal-customer #app .store-design-image-more-menu__panel {
    right: 0;
    left: auto;
}

.portal-customer #app .store-design-image-style-picker__option,
.portal-customer #app .store-design-image-position-picker__menu button,
.portal-customer #app .store-design-image-more-menu__panel button {
    border-radius: var(--store-radius-sm);
    padding: 0.5rem 0.625rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--store-color-text);
}

.portal-customer #app .store-design-image-style-picker__option:hover,
.portal-customer #app .store-design-image-style-picker__option.is-active,
.portal-customer #app .store-design-image-position-picker__menu button:hover,
.portal-customer #app .store-design-image-more-menu__panel button:hover {
    background: var(--store-color-surface-muted);
    color: var(--store-color-primary);
}

.portal-customer #app .store-design-image-more-menu__panel button.is-danger {
    color: #dc2626;
}

.portal-customer #app .store-design-opacity-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) 4rem;
    align-items: center;
    gap: 0.875rem;
    width: min(20rem, calc(100vw - 2rem));
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface);
    box-shadow: var(--store-shadow-md);
    padding: 0.875rem 1rem;
}

.portal-customer #app .store-design-opacity-popover::before {
    position: absolute;
    top: -0.45rem;
    right: 5rem;
    width: 0.75rem;
    height: 0.75rem;
    content: "";
    border-top: 1px solid var(--store-color-border);
    border-left: 1px solid var(--store-color-border);
    background: var(--store-color-surface);
    transform: rotate(45deg);
}

.portal-customer #app .store-design-opacity-popover__slider {
    width: 100%;
    accent-color: var(--store-color-primary);
}

.portal-customer #app .store-design-opacity-popover__select {
    height: 2rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface-muted);
    padding: 0 0.5rem;
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 600;
}

.portal-customer #app .store-design-layers-tool {
    z-index: 140;
}

.portal-customer #app .store-design-layers-panel {
    position: absolute;
    top: calc(100% + 3.75rem);
    left: 50%;
    z-index: 180;
    width: min(20rem, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid var(--store-color-border-strong);
    border-radius: var(--store-radius-sm);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--store-shadow-md);
    color: var(--store-color-text);
    transform: translateX(-50%);
}

.portal-customer #app .store-design-layers-panel__header {
    display: flex;
    height: 1.875rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--store-color-border);
    padding: 0 0.75rem;
    color: var(--store-color-text);
    font-size: 0.8125rem;
    font-weight: 700;
}

.portal-customer #app .store-design-layers-panel__header button {
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--store-radius-sm);
    color: var(--store-color-text-muted);
    font-size: 1.125rem;
    line-height: 1;
}

.portal-customer #app .store-design-layers-panel__header button:hover {
    background: var(--store-color-surface-muted);
    color: var(--store-color-text);
}

.portal-customer #app .store-design-layers-panel__body {
    max-height: min(34rem, calc(100vh - 11rem));
    overflow-y: auto;
}

.portal-customer #app .store-design-layer-row {
    display: grid;
    grid-template-columns: 1.375rem minmax(0, 1fr) 1.5rem 1.5rem 1.5rem 1.25rem;
    min-height: 2.25rem;
    align-items: center;
    gap: 0.375rem;
    border-bottom: 1px solid var(--store-color-border);
    padding: 0.25rem 0.625rem;
    color: var(--store-color-primary);
    cursor: pointer;
    font-size: 0.8125rem;
    outline: none;
}

.portal-customer #app .store-design-layer-row:last-child {
    border-bottom: 0;
}

.portal-customer #app .store-design-layer-row:hover,
.portal-customer #app .store-design-layer-row:focus-visible,
.portal-customer #app .store-design-layer-row--active {
    background: rgba(14, 165, 233, 0.08);
}

.portal-customer #app .store-design-layer-row--hidden {
    color: var(--store-color-text-muted);
    opacity: 0.58;
}

.portal-customer #app .store-design-layer-row__icon {
    color: var(--store-color-text-muted);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.portal-customer #app .store-design-layer-row__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-customer #app .store-design-layer-row__action,
.portal-customer #app .store-design-layer-row__order button {
    display: inline-flex;
    width: 1.375rem;
    height: 1.375rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--store-radius-sm);
    color: var(--store-color-text-muted);
    cursor: pointer;
}

.portal-customer #app .store-design-layer-row__action:hover,
.portal-customer #app .store-design-layer-row__order button:hover:not(:disabled) {
    background: var(--store-color-surface-muted);
    color: var(--store-color-primary);
}

.portal-customer #app .store-design-layer-row__action--danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.portal-customer #app .store-design-layer-row__action--muted {
    pointer-events: none;
}

.portal-customer #app .store-design-layer-row__order {
    display: grid;
    gap: 0.0625rem;
}

.portal-customer #app .store-design-layer-row__order button {
    width: 1.125rem;
    height: 0.75rem;
}

.portal-customer #app .store-design-layer-row__order button:disabled {
    opacity: 0.28;
}

.portal-customer #app .store-design-layers-panel__empty {
    padding: 1rem;
    color: var(--store-color-text-muted);
    font-size: 0.8125rem;
    text-align: center;
}

.portal-customer #app .store-design-effect-panel {
    margin: -1rem;
    min-height: calc(100% + 2rem);
    background: var(--store-color-surface);
    color: var(--store-color-text);
}

.portal-customer #app .store-design-effect-panel__header {
    display: flex;
    height: 2.75rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--store-color-border);
    padding: 0 0.875rem;
}

.portal-customer #app .store-design-effect-panel__title {
    font-size: 0.875rem;
    font-weight: 700;
}

.portal-customer #app .store-design-effect-panel__close {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--store-radius-sm);
    color: var(--store-color-text-muted);
    font-size: 1rem;
    line-height: 1;
}

.portal-customer #app .store-design-effect-panel__close:hover {
    background: var(--store-color-surface-muted);
    color: var(--store-color-text);
}

.portal-customer #app .store-design-effect-panel__body {
    padding: 0.875rem;
}

.portal-customer #app .store-design-effect-panel__choices {
    display: flex;
    gap: 1.25rem;
    padding: 0.25rem 0 1rem;
}

.portal-customer #app .store-design-effect-choice {
    min-width: 3.75rem;
    color: var(--store-color-text);
    text-align: center;
}

.portal-customer #app .store-design-effect-choice__preview {
    display: block;
    font-family: Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
}

.portal-customer #app .store-design-effect-choice__preview--hollow {
    color: var(--store-color-surface);
    -webkit-text-stroke: 1.4px var(--store-color-text);
    text-shadow: 0 0 0 var(--store-color-text);
}

.portal-customer #app .store-design-effect-choice__label {
    display: block;
    margin-top: 0.35rem;
    color: var(--store-color-primary);
    font-size: 0.6875rem;
    font-weight: 700;
}

.portal-customer #app .store-design-effect-choice:not(.is-active) .store-design-effect-choice__label {
    color: var(--store-color-text-muted);
}

.portal-customer #app .store-design-effect-section {
    border-top: 1px solid var(--store-color-border);
    padding: 0.75rem 0;
}

.portal-customer #app .store-design-effect-section__title {
    margin-bottom: 0.625rem;
    color: var(--store-color-primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.portal-customer #app .store-design-effect-control-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2rem 3.5rem;
    align-items: center;
    gap: 0.5rem;
}

.portal-customer #app .store-design-effect-control-row__label {
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 500;
}

.portal-customer #app .store-design-effect-color {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--store-color-border-strong);
    border-radius: var(--store-radius-sm);
    background: transparent;
}

.portal-customer #app .store-design-effect-color--wheel {
    border-radius: var(--store-radius-pill);
}

.portal-customer #app .store-design-effect-number {
    height: 1.875rem;
    min-width: 0;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface-muted);
    padding: 0 0.375rem;
    color: var(--store-color-text);
    font-size: 0.75rem;
}

.portal-customer #app .store-design-effect-number--wide {
    grid-column: span 2;
}

.portal-customer #app .store-design-effect-panel__empty {
    margin: 0.875rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface-muted);
    padding: 0.875rem;
    color: var(--store-color-text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Store header — compact single-row layout */
.portal-customer #app .portal-store-header-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.portal-customer #app .portal-store-logo {
    flex-shrink: 0;
    max-width: 7rem;
    text-decoration: none;
}

@media (min-width: 640px) {
    .portal-customer #app .portal-store-logo {
        max-width: 9rem;
    }
}

.portal-customer #app .portal-store-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--store-color-border-strong);
    border-radius: var(--store-radius-md);
    background-color: var(--store-color-surface-muted);
}

.portal-customer #app .portal-store-search--desktop {
    display: none;
    flex: 1;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.portal-customer #app .portal-store-search--mobile {
    display: flex;
    width: 100%;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .portal-customer #app .portal-store-search--desktop {
        display: flex;
    }

    .portal-customer #app .portal-store-search--mobile {
        display: none;
    }
}

.portal-customer #app .portal-store-search-icon {
    flex-shrink: 0;
    font-size: 0.875rem;
    line-height: 1;
    opacity: 0.5;
}

.portal-customer #app .portal-store-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--store-color-text);
    outline: none;
}

.portal-customer #app .portal-store-search-input::placeholder {
    color: color-mix(in srgb, var(--store-color-text-muted) 72%, white);
}

.portal-customer #app .portal-store-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.portal-customer #app .portal-store-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface);
    font-size: 0.8125rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--store-color-text) 88%, white);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.portal-customer #app .portal-store-cart:hover {
    background-color: var(--store-color-surface-muted);
}

.portal-customer #app .portal-store-cart-icon {
    font-size: 1rem;
    line-height: 1;
}

.portal-customer #app .portal-store-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border-radius: var(--store-radius-pill);
    background-color: var(--store-color-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--store-color-surface);
}

.portal-customer #app .portal-store-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface);
    font-size: 1.125rem;
    color: color-mix(in srgb, var(--store-color-text) 80%, white);
    cursor: pointer;
}

.portal-customer #app .portal-store-menu-btn:hover {
    background-color: var(--store-color-surface-muted);
}

.portal-customer #app .portal-store-auth {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .portal-customer #app .portal-store-auth {
        display: flex;
    }
}

.portal-customer #app .portal-store-cart-label {
    display: none;
}

@media (min-width: 640px) {
    .portal-customer #app .portal-store-cart-label {
        display: inline;
    }
}

@media (min-width: 1024px) {
    .portal-customer #app .portal-store-menu-btn {
        display: none;
    }
}

.portal-customer #app .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.portal-customer .category-pill {
    scroll-snap-align: start;
}

.portal-customer .category-scroll {
    scroll-snap-type: x mandatory;
}

.portal-customer #app .product-purchase-scroll {
    margin-top: 1rem;
}

.portal-customer #app .product-purchase-scroll * {
    scroll-margin-top: 6rem;
}

.portal-customer #app .product-detail-media-frame {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
    background: var(--store-color-surface);
}

.portal-customer #app .product-detail-media-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 180ms ease, transform 220ms ease;
}

.portal-customer #app .product-detail-media-image.is-changing {
    opacity: 0.25;
    transform: scale(1.01);
}

.portal-customer #app .product-detail-media-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--store-color-surface-muted) 0%, #e0f2fe 100%);
    color: color-mix(in srgb, var(--store-color-text) 25%, transparent);
    font-size: 4rem;
}

.portal-customer #app .product-detail-media-fallback[hidden] {
    display: none;
}

@media (min-width: 1024px) {
    .portal-customer #app .product-detail-gallery-sticky {
        position: sticky;
        top: var(--store-sticky-media-top);
    }
}

.portal-customer #app .product-detail-gallery-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    margin: auto 0;
    border: 1px solid color-mix(in srgb, var(--store-color-border-strong) 85%, transparent);
    border-radius: var(--store-radius-pill);
    background: color-mix(in srgb, var(--store-color-surface) 92%, transparent);
    box-shadow: var(--store-shadow-md);
    color: var(--store-color-text);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    transition: background-color var(--store-transition-fast), border-color var(--store-transition-fast), box-shadow var(--store-transition-fast);
}

.portal-customer #app .product-detail-gallery-arrow:hover,
.portal-customer #app .product-detail-gallery-arrow:focus-visible {
    border-color: var(--store-color-primary);
    background: var(--store-color-surface);
    box-shadow: 0 12px 28px rgb(15 23 42 / 0.16);
}

.portal-customer #app .product-detail-gallery-arrow--prev {
    left: 1rem;
}

.portal-customer #app .product-detail-gallery-arrow--next {
    right: 1rem;
}

.portal-customer #app .product-detail-thumb-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.portal-customer #app .product-detail-thumb-strip {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0.125rem 0 0.375rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.portal-customer #app .product-detail-thumb-strip::-webkit-scrollbar {
    height: 6px;
}

.portal-customer #app .product-detail-thumb-strip::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--store-color-text-muted) 55%, transparent);
    border-radius: var(--store-radius-pill);
}

.portal-customer #app .product-detail-thumb {
    flex: 0 0 auto;
    width: 5.25rem;
    height: 4.25rem;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface);
    box-shadow: var(--store-shadow-sm);
    cursor: pointer;
    padding: 0;
    transition: border-color var(--store-transition-fast), box-shadow var(--store-transition-fast), transform var(--store-transition-fast);
}

.portal-customer #app .product-detail-thumb:hover,
.portal-customer #app .product-detail-thumb:focus-visible {
    border-color: color-mix(in srgb, var(--store-color-primary) 65%, transparent);
    transform: translateY(-1px);
}

.portal-customer #app .product-detail-thumb.is-active,
.portal-customer #app .product-detail-thumb[aria-current="true"] {
    border-color: var(--store-color-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--store-color-primary) 14%, transparent);
}

.portal-customer #app .product-detail-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-customer #app .product-detail-thumb-nav {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--store-color-border-strong);
    border-radius: var(--store-radius-md);
    background: color-mix(in srgb, var(--store-color-surface) 90%, transparent);
    color: var(--store-color-text);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.portal-customer #app .product-detail-thumb-nav:hover,
.portal-customer #app .product-detail-thumb-nav:focus-visible {
    border-color: var(--store-color-primary);
    background: var(--store-color-surface);
}

.portal-customer #app .product-detail-thumb-nav:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.portal-customer #app .pdp-rich-content > * + * {
    margin-top: 0.75rem;
}

.portal-customer #app .pdp-rich-content ul,
.portal-customer #app .pdp-rich-content ol {
    padding-left: 1.25rem;
}

.portal-customer #app .pdp-rich-content ul {
    list-style: disc;
}

.portal-customer #app .pdp-rich-content ol {
    list-style: decimal;
}

.portal-customer #app .pdp-rich-content a {
    color: var(--store-color-primary);
    font-weight: 600;
    text-decoration: underline;
}

.portal-customer #app .pdp-rich-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--store-radius-md);
    border: 1px solid var(--store-color-border);
}

@media (min-width: 1024px) {
    .portal-customer #app .product-detail-media-frame {
        aspect-ratio: auto;
        height: clamp(32rem, calc(100vh - 10rem), 44rem);
    }
}

@media (max-width: 640px) {
    .portal-customer #app .product-detail-gallery-arrow {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.65rem;
    }

    .portal-customer #app .product-detail-gallery-arrow--prev {
        left: 0.5rem;
    }

    .portal-customer #app .product-detail-gallery-arrow--next {
        right: 0.5rem;
    }

    .portal-customer #app .product-detail-thumb {
        width: 4.5rem;
        height: 3.75rem;
    }
}

/* Fallback layout when Tailwind CDN misses Vue-rendered utilities */
.portal-customer #app .portal-store-hero-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 1rem;
}

@media (min-width: 1024px) {
    .portal-customer #app .portal-store-hero-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 3.5rem 1.5rem;
    }
}

.portal-customer #app .portal-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    cursor: pointer;
    border-radius: var(--store-radius-md);
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
}

.portal-customer #app .portal-store-btn--primary {
    background-color: var(--store-color-accent);
    color: var(--store-color-surface);
}

.portal-customer #app .portal-store-btn--secondary {
    background: transparent;
    color: var(--store-color-surface);
    border: 1px solid rgb(255 255 255 / 0.4);
}

.portal-customer #app .portal-store-hero-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .portal-customer #app .portal-store-hero-actions {
        flex-direction: row;
        margin-top: 2rem;
    }
}

.portal-customer #app .portal-store-collections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .portal-customer #app .portal-store-collections {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.portal-customer #app .portal-store-products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .portal-customer #app .portal-store-products {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .portal-customer #app .portal-store-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portal-customer #app .portal-store-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 640px) {
    .portal-customer #app .portal-store-trust {
        grid-template-columns: repeat(3, 1fr);
        padding: 2.5rem 1.5rem;
    }
}

.portal-customer #app header nav.portal-store-cats {
    display: flex;
    gap: 0.375rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: var(--store-page-max-width);
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.portal-customer #app .portal-store-cat-btn {
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: var(--store-radius-pill);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.portal-customer #app .portal-store-cat-btn.is-active {
    background-color: var(--store-color-primary);
    color: var(--store-color-surface);
}

.portal-customer #app .portal-store-cat-btn:not(.is-active) {
    background-color: var(--store-color-surface);
    color: color-mix(in srgb, var(--store-color-text) 80%, white);
}

/* Mega menu (GotPrint-style department nav) */
.portal-customer .portal-store-mega {
    position: relative;
    z-index: 30;
}

.portal-customer .portal-store-mega-nav {
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    /* Thin thumb, no track — classic scrollbars otherwise sit between tabs and the panel. */
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--store-color-text) 35%, transparent) transparent;
}

.portal-customer .portal-store-mega-nav::-webkit-scrollbar {
    height: 4px;
}

.portal-customer .portal-store-mega-nav::-webkit-scrollbar-track {
    background: transparent;
}

.portal-customer .portal-store-mega-nav::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--store-color-text) 35%, transparent);
    border-radius: 999px;
}

.portal-customer .portal-store-mega-nav::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.portal-customer .portal-store-mega-item {
    position: static;
}

/*
 * Hover bridge over the horizontal scrollbar gutter. Without this, moving from a tab
 * onto the scrollbar leaves the item and closes the mega panel before the cursor
 * reaches the dropdown.
 */
.portal-customer .portal-store-mega-item:hover::after,
.portal-customer .portal-store-mega-item.is-open::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.25rem;
    z-index: 32;
}

.portal-customer .portal-store-mega-tab {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--store-color-text) 80%, white);
    transition: color var(--store-transition-fast), border-color var(--store-transition-fast);
}

.portal-customer .portal-store-mega-tab:hover,
.portal-customer .portal-store-mega-tab.is-active {
    color: var(--store-color-primary);
    border-bottom-color: var(--store-color-success);
}

.portal-customer .portal-store-mega-tab--loading {
    color: #94a3b8;
    font-weight: 500;
}

.portal-customer .portal-store-mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 31;
    border-top: 1px solid var(--store-color-border);
    background: var(--store-color-surface);
    box-shadow: var(--store-shadow-md);
}

.portal-customer .portal-store-mega--blade .portal-store-mega-panel {
    display: none;
}

.portal-customer .portal-store-mega--blade .portal-store-mega-item:hover > .portal-store-mega-panel,
.portal-customer .portal-store-mega--blade .portal-store-mega-item:focus-within > .portal-store-mega-panel {
    display: block;
}

.portal-customer .portal-store-mega-panel-inner {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: 2rem;
    margin: 0 auto;
    max-width: var(--store-page-max-width);
    padding: 1.5rem 1.5rem 2rem;
}

.portal-customer .portal-store-mega-panel-inner--all {
    display: block;
    max-height: min(430px, calc(100vh - 9rem));
    overflow-y: auto;
    padding-bottom: 1.25rem;
}

.portal-customer .portal-store-mega-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem 2rem;
}

.portal-customer .portal-store-mega-columns--alphabet {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 1rem 2rem;
}

.portal-customer .portal-store-mega-all-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 1.25rem 2.5rem;
}

.portal-customer .portal-store-mega-all-column {
    min-width: 0;
}

.portal-customer .portal-store-mega-all-group + .portal-store-mega-all-group {
    margin-top: 1rem;
}

.portal-customer .portal-store-mega-column-title {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--store-color-text-muted);
}

.portal-customer .portal-store-mega-column-title--link:hover {
    color: var(--store-color-primary-hover);
}

.portal-customer .portal-store-mega-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-customer .portal-store-mega-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.8125rem;
    color: var(--store-color-text);
}

.portal-customer .portal-store-mega-link:hover,
.portal-customer .portal-store-mega-link.is-active {
    color: var(--store-color-primary-hover);
    font-weight: 600;
}

.portal-customer .portal-store-mega-badge {
    border-radius: var(--store-radius-pill);
    background: #fef3c7;
    padding: 0.125rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #b45309;
}

.portal-customer .portal-store-mega-all-link {
    display: block;
    margin-top: 1.25rem;
    border-top: 1px solid var(--store-color-border);
    padding-top: 0.9rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--store-color-primary);
}

.portal-customer .portal-store-mega-all-link:hover {
    color: var(--store-color-primary-hover);
}

.portal-customer .portal-store-mega-promo-card {
    display: block;
    overflow: hidden;
    border-radius: var(--store-radius-lg);
    border: 1px solid var(--store-color-border);
    background: var(--store-color-surface-muted);
}

.portal-customer .portal-store-mega-promo-img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.portal-customer .portal-store-mega-promo-body {
    padding: 1rem;
}

.portal-customer .portal-store-mega-promo-title {
    font-family: var(--store-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--store-color-primary);
}

.portal-customer .portal-store-mega-promo-sub {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--store-color-text-muted);
}

.portal-customer .portal-store-mega-promo-cta {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--store-color-primary-hover);
}

.portal-customer #app .store-design-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(15 23 42 / 0.72);
    padding: 1.5rem;
}

.portal-customer #app .store-design-crop-modal__panel {
    display: flex;
    width: min(44rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--store-radius-md);
    background: var(--store-color-surface);
    box-shadow: var(--store-shadow-md);
}

.portal-customer #app .store-design-crop-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--store-color-border);
    padding: 0.875rem 1rem;
}

.portal-customer #app .store-design-crop-modal__title {
    color: var(--store-color-text);
    font-size: 1rem;
    font-weight: 700;
}

.portal-customer #app .store-design-crop-modal__close {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--store-radius-sm);
    color: var(--store-color-text-muted);
}

.portal-customer #app .store-design-crop-modal__close:hover {
    background: var(--store-color-surface-muted);
    color: var(--store-color-text);
}

.portal-customer #app .store-design-crop-modal__body {
    display: flex;
    min-height: 0;
    flex: 1;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: #eef2f6;
    padding: 1.25rem;
}

.portal-customer #app .store-design-crop-modal__stage {
    position: relative;
    overflow: hidden;
    border-radius: var(--store-radius-sm);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgb(15 23 42 / 0.08);
}

.portal-customer #app .store-design-crop-modal__image {
    display: block;
    max-width: 100%;
    user-select: none;
    pointer-events: none;
}

.portal-customer #app .store-design-crop-modal__box {
    position: absolute;
    border: 2px dashed #ffffff;
    box-shadow:
        0 0 0 1px rgb(15 23 42 / 0.45),
        0 0 0 9999px rgb(15 23 42 / 0.55);
    cursor: move;
    touch-action: none;
}

.portal-customer #app .store-design-crop-modal__handle {
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid #ffffff;
    border-radius: 2px;
    background: var(--store-color-primary);
    box-shadow: 0 0 0 1px rgb(15 23 42 / 0.35);
}

.portal-customer #app .store-design-crop-modal__handle--nw {
    top: -0.375rem;
    left: -0.375rem;
    cursor: nwse-resize;
}

.portal-customer #app .store-design-crop-modal__handle--ne {
    top: -0.375rem;
    right: -0.375rem;
    cursor: nesw-resize;
}

.portal-customer #app .store-design-crop-modal__handle--sw {
    bottom: -0.375rem;
    left: -0.375rem;
    cursor: nesw-resize;
}

.portal-customer #app .store-design-crop-modal__handle--se {
    right: -0.375rem;
    bottom: -0.375rem;
    cursor: nwse-resize;
}

.portal-customer #app .store-design-crop-modal__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    border-top: 1px solid var(--store-color-border);
    padding: 0.875rem 1rem;
}

.portal-customer #app .store-design-crop-modal__metrics {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.875rem;
}

.portal-customer #app .store-design-crop-modal__metric {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--store-color-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.portal-customer #app .store-design-crop-modal__metric input {
    width: 4.25rem;
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-color-surface);
    padding: 0.25rem 0.375rem;
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 600;
}

.portal-customer #app .store-design-crop-modal__aspect {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--store-color-text);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.portal-customer #app .store-design-crop-modal__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.portal-customer #app .store-design-crop-modal__cancel {
    padding: 0.5rem 0.75rem;
    color: var(--store-color-text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
}

.portal-customer #app .store-design-crop-modal__cancel:hover {
    color: var(--store-color-text);
}

.portal-customer #app .store-design-crop-modal__save {
    min-width: 5.5rem;
    border-radius: var(--store-radius-sm);
    background: var(--store-color-primary);
    padding: 0.5rem 1rem;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
}

.portal-customer #app .store-design-crop-modal__save:hover {
    background: var(--store-color-primary-hover);
}
/* allprintshop header v3 - clean white (GotPrint/iPrint style) */
.portal-customer div.bg-orange-600{background:#0b3d91!important;padding:.38rem .75rem!important;font-size:.78rem!important;letter-spacing:.01em}
.portal-customer header.sticky{background:#fff!important;border-bottom:1px solid #e5e7eb!important;box-shadow:none}
.portal-customer header.sticky form input[type=search],.portal-customer header.sticky form input[type=text]{border:1px solid #cbd5e1!important;border-radius:999px!important;background:#f8fafc!important;padding-left:1.1rem!important;height:2.6rem;font-size:.9rem;box-shadow:none!important}
.portal-customer header.sticky form input[type=search]:focus,.portal-customer header.sticky form input[type=text]:focus{border-color:#0b6cc2!important;background:#fff!important;outline:0;box-shadow:0 0 0 3px rgba(11,108,194,.15)!important}
.portal-customer .portal-store-mega{background:#fff!important;border-top:0!important;border-bottom:1px solid #e5e7eb!important;box-shadow:0 1px 0 rgba(15,23,42,.03)}
.portal-customer .portal-store-mega-nav{justify-content:center;gap:.1rem}
.portal-customer .portal-store-mega-tab{color:#1f2937!important;text-transform:none!important;font-weight:600!important;font-size:.84rem!important;letter-spacing:0!important;padding:.9rem .85rem!important;background:transparent!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;white-space:nowrap}
.portal-customer .portal-store-mega-item:hover>.portal-store-mega-tab,.portal-customer .portal-store-mega-tab:hover,.portal-customer .portal-store-mega-tab:focus-visible,.portal-customer .portal-store-mega-tab[aria-expanded=true]{color:#0b6cc2!important;background:transparent!important;border-bottom-color:#0b6cc2!important}
.portal-customer .portal-store-mega-panel{background:#fff!important;border:1px solid #e5e7eb!important;border-top:0!important;box-shadow:0 18px 32px -12px rgba(15,23,42,.22)!important}
.portal-customer .portal-store-mega-panel-inner{padding:1.5rem 1.25rem 1.75rem!important}
.portal-customer .portal-store-mega-columns{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important;gap:1.5rem 2rem!important}
.portal-customer .portal-store-mega-column-title,.portal-customer .portal-store-mega-all-group>*:first-child{color:#111827!important;font-weight:700!important;font-size:.9rem!important;text-transform:none!important;border:0!important;padding-bottom:.35rem!important;margin-bottom:.35rem!important}
.portal-customer .portal-store-mega-link{color:#4b5563!important;font-size:.84rem!important;padding:.2rem 0!important;background:transparent!important}
.portal-customer .portal-store-mega-link:hover{color:#0b6cc2!important;text-decoration:underline;background:transparent!important}
.portal-customer .portal-store-mega-all-link{color:#0b6cc2!important;font-weight:600!important;font-size:.84rem!important}
.portal-customer .portal-store-mega-nav{scrollbar-width:none;-ms-overflow-style:none;overflow-x:auto}
.portal-customer .portal-store-mega-nav::-webkit-scrollbar{display:none;height:0}
.portal-customer .portal-store-mega-tab{padding:.85rem .62rem!important;font-size:.82rem!important}
.portal-customer .portal-store-mega-panel-inner{max-width:80rem!important;margin-left:auto!important;margin-right:auto!important;padding-left:1.5rem!important;padding-right:1.5rem!important}
