.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

li.disabled {
    background: #a9a9a9;
}

.action-column {
    min-width: 100px;
}

.status-badge {
    font-weight: 600;
}

.money {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

tr.order-row-link {
    cursor: pointer;
}

tr.order-row-link:hover > td {
    background: rgba(13, 110, 253, 0.06);
}

/* Discount display (shared with React UI palette) */
.pvz-discount-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #3d4eae;
    background: rgba(83, 109, 254, 0.1);
    border: 1px solid rgba(83, 109, 254, 0.22);
}

.pvz-discount-tag__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #536dfe;
}

.pvz-price-stack {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.25;
}

.pvz-price-stack--end {
    align-items: flex-end;
    text-align: right;
}

.pvz-price-old {
    font-size: 0.75rem;
    color: rgba(43, 45, 58, 0.45);
    text-decoration: line-through;
}

.pvz-price-current {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pvz-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.pvz-product-meta.justify-content-end {
    justify-content: flex-end;
}

/* Legal documents (privacy policy, offer) */
.pvz-legal-page {
    background: #f3f5f9;
    color: #2b2d3a;
}

.pvz-legal-page__brand {
    color: #536dfe;
}

.pvz-legal-page__wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.pvz-legal-page__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    background: rgba(83, 109, 254, 0.12);
    border: 1px solid rgba(83, 109, 254, 0.28);
    color: #536dfe;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
}

.pvz-legal-page__name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2b2d3a;
}

.pvz-legal-page__brand:hover .pvz-legal-page__name {
    color: #536dfe;
}

.pvz-legal-page__nav-link {
    color: rgba(43, 45, 58, 0.72);
    text-decoration: none;
}

.pvz-legal-page__nav-link:hover {
    color: #536dfe;
}

.pvz-legal-doc {
    max-width: 52rem;
    margin: 0 auto;
}

.pvz-legal-doc__kicker {
    letter-spacing: 0.16em;
}

.pvz-legal-doc__body {
    font-size: 0.975rem;
    line-height: 1.65;
    color: rgba(43, 45, 58, 0.92);
}

.pvz-legal-section + .pvz-legal-section {
    margin-top: 1.75rem;
}

.pvz-legal-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    color: #2b2d3a;
}

.pvz-legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: #2b2d3a;
}

.pvz-legal-section p {
    margin-bottom: 0.75rem;
}

.pvz-legal-section ul,
.pvz-legal-section ol {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.pvz-legal-section li + li {
    margin-top: 0.35rem;
}

.pvz-legal-section a {
    color: #536dfe;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pvz-legal-section a:hover {
    color: #3d4eae;
}

#signup-form .pvz-signup-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

#signup-form .form-check-label a {
    color: #536dfe;
}

#signup-form .pvz-signup-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
}

#signup-form .pvz-signup-consent .form-check-input {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

#signup-form .pvz-signup-consent__label {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #5c6178;
    font-weight: 400;
}

#signup-form .pvz-signup-consent .invalid-feedback {
    width: 100%;
    margin-left: 1.5rem;
}

/* Auth: login, signup, password reset — чуть уже центральной карточки */
.pvz-auth-form-col {
    max-width: 22.5rem;
}

.pvz-auth-page .container > .alert {
    max-width: 22.5rem;
    margin-left: auto;
    margin-right: auto;
}

.pvz-verify-code-input {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

/* Кабинет: заглушка, если React не загрузился */
.pvz-cabinet-fallback {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(165deg, #eef1ff 0%, #f3f5f9 50%, #f8f9fc 100%);
}

.pvz-cabinet-fallback__card {
    max-width: 28rem;
    width: 100%;
    text-align: center;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 16px 48px rgba(43, 45, 58, 0.1);
    border: 1px solid rgba(83, 109, 254, 0.12);
}

.pvz-cabinet-fallback__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #536dfe, #7c4dff);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.pvz-cabinet-fallback__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2b2d3a;
    margin-bottom: 0.75rem;
}

.pvz-cabinet-fallback__text {
    color: #5c6178;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.pvz-cabinet-fallback__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pvz-cabinet-fallback__btn {
    width: 100%;
}

.pvz-cabinet-fallback--error {
    min-height: calc(100vh - 5rem);
}

.pvz-cabinet-fallback__debug {
    max-height: 8rem;
    overflow: auto;
    background: #f8f9fc;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    color: #a94442;
}

@media (min-width: 400px) {
    .pvz-cabinet-fallback__actions {
        flex-direction: row;
        justify-content: center;
    }

    .pvz-cabinet-fallback__btn {
        width: auto;
        min-width: 10rem;
    }
}

.pvz-auth-page .pvz-password-field {
    position: relative;
    display: block;
    width: 100%;
}

.pvz-auth-page .pvz-password-field > .form-control {
    width: 100%;
    padding-right: 2.625rem;
}

.pvz-auth-page .pvz-password-field__toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: 2.625rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 var(--tblr-border-radius, 0.375rem) var(--tblr-border-radius, 0.375rem) 0;
    background: transparent;
    color: var(--tblr-secondary, #626976);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

.pvz-auth-page .pvz-password-field__toggle:hover {
    color: var(--tblr-body-color, #1d273b);
    background: rgba(29, 39, 59, 0.05);
}

.pvz-auth-page .pvz-password-field__toggle:focus-visible {
    outline: 2px solid rgba(32, 107, 196, 0.35);
    outline-offset: -2px;
}

.pvz-auth-page .pvz-password-field__toggle--visible {
    color: var(--tblr-primary, #206bc4);
}

.pvz-auth-page .pvz-password-field__icon {
    font-size: 1.125rem;
    line-height: 1;
}

.pvz-auth-page .field-loginform-password .pvz-password-field,
.pvz-auth-page .field-signupform-password .pvz-password-field,
.pvz-auth-page .field-signupform-password_repeat .pvz-password-field,
.pvz-auth-page .field-resetpasswordform-password .pvz-password-field,
.pvz-auth-page .field-resetpasswordform-password_repeat .pvz-password-field {
    margin-top: 0;
}

.pvz-name-hint-btn {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    border-radius: 50%;
    border: 1px solid #cbd5e1 !important;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.pvz-name-hint-popover {
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}