/* Личный кабинет: оболочка, разделы и адаптивная навигация. */

/* Скрываем ВСЕ стандартные заголовки WooCommerce на страницах ЛК */
.woocommerce-account .entry-title,
.woocommerce-account .page-title,
.woocommerce-account h1.entry-title,
.woocommerce-account .content-area > article > header,
.woocommerce-account article.page > header.entry-header {
    display: none !important;
}

/* ========================================
   ДЕСКТОПНАЯ ВЕРСИЯ (по умолчанию)
   ======================================== */

:root {
    --flora-account-shell-max: 1060px;
}

body.woocommerce-account,
body.woocommerce-account #page,
body.woocommerce-account .site {
    max-width: 100% !important;
    overflow-x: clip !important;
}

body.woocommerce-account .flora-floating-cart {
    display: none !important;
}

@supports not (overflow: clip) {
    body.woocommerce-account,
    body.woocommerce-account #page,
    body.woocommerce-account .site {
        overflow-x: hidden !important;
    }
}

/* Общий контейнер - премиум синяя схема */
.woocommerce-account .woocommerce {
    background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 50%, #f1f5f9 100%) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow:
        0 10px 40px rgba(44, 90, 160, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    margin: 25px 0 !important;
    border: 1px solid rgba(44, 90, 160, 0.08) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:hover {
    transform: none !important;
}

.woocommerce-MyAccount-navigation-link--orders a:before { content: "📦" !important; }
.woocommerce-MyAccount-navigation-link--favorites a:before { content: "❤️" !important; }
.woocommerce-MyAccount-navigation-link--viewed a:before { content: "👁️" !important; }
.woocommerce-MyAccount-navigation-link--consultations a:before { content: "🌿" !important; }
.woocommerce-MyAccount-navigation-link--refunds a:before { content: "↩️" !important; }
.woocommerce-MyAccount-navigation-link--gift-certificates a:before { content: "🎁" !important; }
.woocommerce-MyAccount-navigation-link--payment-methods a:before { content: "💳" !important; }
.woocommerce-MyAccount-navigation-link--edit-address a:before { content: "📦" !important; }
.woocommerce-MyAccount-navigation-link--edit-account a:before { content: "👤" !important; }
.woocommerce-MyAccount-navigation-link--customer-logout a:before { content: "🚪" !important; }

.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
    outline: 3px solid rgba(44, 90, 160, 0.28) !important;
    outline-offset: 2px !important;
    border-color: rgba(44, 90, 160, 0.3) !important;
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.12) !important;
}

/* Контент личного кабинета - премиум карточка */
.woocommerce-account .woocommerce-MyAccount-content {
    transition: box-shadow 0.3s ease !important;
}

/* Страница просмотра заказа: расширяем только рабочую область, не подвал */
@media (min-width: 769px) {
    body.woocommerce-account.woocommerce-view-order #content > .col-full,
    body.woocommerce-account.woocommerce-view-order .site-content > .col-full {
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.woocommerce-account.woocommerce-view-order .site-footer .col-full,
    body.woocommerce-account.woocommerce-view-order .flora-custom-footer .col-full {
        max-width: 1280px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.woocommerce-account.woocommerce-view-order #primary,
    body.woocommerce-account.woocommerce-view-order .content-area,
    body.woocommerce-account.woocommerce-view-order .site-main,
    body.woocommerce-account.woocommerce-view-order article.page,
    body.woocommerce-account.woocommerce-view-order .entry-content {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.woocommerce-account.woocommerce-view-order #secondary,
    body.woocommerce-account.woocommerce-view-order .widget-area {
        display: none !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content,
    body.woocommerce-account.woocommerce-view-order .woocommerce-order-details,
    body.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-navigation,
    body.woocommerce-account.woocommerce-view-order .flora-order-items-section {
        width: 100% !important;
        max-width: var(--flora-account-shell-max) !important;
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.woocommerce-account.woocommerce-view-order .flora-order-items-shell,
    body.woocommerce-account.woocommerce-view-order .flora-order-items-table {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.woocommerce-account.woocommerce-view-order .flora-order-items-table td.flora-order-item-product {
        padding-left: 18px !important;
    }

    body.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

.woocommerce-account .flora-orders-header-line {
    height: 2px !important;
    margin-top: 16px !important;
    max-width: 260px !important;
}

.woocommerce-account .flora-order-btn {
    min-height: 40px !important;
    padding: 9px 16px !important;
}

.woocommerce-account .woocommerce-MyAccount-content:hover {
    box-shadow:
        0 12px 40px rgba(44, 90, 160, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

/* Заголовки - более стильные */
.woocommerce-account .woocommerce-MyAccount-content > h2,
.woocommerce-account .woocommerce-MyAccount-content > h3 {
    color: #1e293b !important;
    font-weight: 800 !important;
    margin-bottom: 24px !important;
    padding-bottom: 14px !important;
    border-bottom: 3px solid #e2e8f0 !important;
    position: relative !important;
}

.woocommerce-account .woocommerce-MyAccount-content > h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: -3px !important;
    left: 0 !important;
    width: 60px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #2c5aa0, #1e3d6c) !important;
    border-radius: 2px !important;
}

/* Десктопные улучшения для избранного */
@media (min-width: 1024px) {
    .flora-favorites-grid,
    .flora-viewed-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
    }

    .flora-favorites-card,
    .flora-viewed-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }

    .flora-favorites-card:hover,
    .flora-viewed-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 12px 30px rgba(44, 90, 160, 0.15) !important;
    }
}

/* Большие экраны - 5 колонок */
@media (min-width: 1400px) {
    .flora-favorites-grid,
    .flora-viewed-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* === Edit-address page: всё содержимое по центру колонки ЛК === */
.woocommerce-MyAccount-content .flora-flow-header--address-copy,
.woocommerce-MyAccount-content .flora-address-info-card,
.woocommerce-MyAccount-content .flora-custom-address-form {
    max-width: 650px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.flora-flow-header--address-copy .flora-flow-header-content {
    flex-wrap: nowrap;
}
/* Иконка-документ внутри светлого квадратика — даём ей собственный «фрейм»,
   чтобы 📄 не плыл по baseline относительно h1 и был виден как ярлычок. */
.flora-flow-header--address-copy .flora-flow-header-line {
    background: linear-gradient(90deg, transparent 0%, #4f46e5 50%, transparent 100%) !important;
    max-width: 260px;
    margin-top: 16px !important;
    opacity: 0.55;
}

/* Пояснительный блок: «это адрес для документов, не для доставки» */
.flora-address-info-card {
    text-align: left;
}
.flora-address-info-card__lead {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}
.flora-address-info-card__lead strong { font-weight: 800; }
.flora-address-info-card__body {
    margin: 0 0 10px;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}
.flora-address-info-card__body:last-child { margin-bottom: 0; }

/* Подсказки под полями формы — «на этот адрес посылка не отправляется», и т.п. */
.flora-form-row-hint {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.flora-form-row-hint strong { color: #334155; font-weight: 700; }

/* ФОРМА АДРЕСА - премиум стиль */
.flora-custom-address-form {
    max-width: 650px !important;
    padding: 30px !important;
}
/* Submit-кнопка «Сохранить адрес» центрируется в своём <p> */
.flora-custom-address-form > p:last-of-type {
    text-align: center !important;
    margin-bottom: 0 !important;
}

/* Mobile-стиль страницы «Адрес» — компактнее, иконка не схлопывается */
@media (max-width: 600px) {
    .woocommerce-MyAccount-content .flora-flow-header--address-copy,
    .woocommerce-MyAccount-content .flora-address-info-card,
    .woocommerce-MyAccount-content .flora-custom-address-form {
        max-width: 100% !important;
    }
    .flora-flow-header--address-copy .flora-flow-header-line {
        max-width: 200px;
        margin-top: 12px !important;
    }
    .flora-address-info-card__lead { font-size: 15px; }
}

.flora-custom-address-form .form-row {
    margin-bottom: 22px !important;
    width: 100% !important;
}

.flora-custom-address-form label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    color: #334155 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.flora-custom-address-form label abbr {
    color: #ef4444 !important;
    text-decoration: none !important;
}

/* Поля ввода - современный стиль */
.flora-custom-address-form input[type="text"],
.flora-custom-address-form input[type="email"],
.flora-custom-address-form input[type="tel"],
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="tel"],
.woocommerce-account input[type="password"] {
    width: 100% !important;
    padding: 16px 18px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    background: #ffffff !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.flora-custom-address-form input:focus,
.woocommerce-account input:focus {
    outline: none !important;
    border-color: #2c5aa0 !important;
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.1), 0 4px 12px rgba(44, 90, 160, 0.08) !important;
    transform: translateY(-1px) !important;
}

.flora-custom-address-form input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Кнопки - премиум стиль с анимацией */
/* Поиск шапки — тоже submit: :where() исключает его, не поднимая специфичность (25.09.2026). */
.flora-custom-address-form button,
.woocommerce-account .button,
.woocommerce-account button[type="submit"]:where(:not(.flora-search-submit)) {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6c 100%) !important;
    color: white !important;
    padding: 16px 32px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow:
        0 4px 15px rgba(44, 90, 160, 0.25),
        0 2px 4px rgba(44, 90, 160, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Эффект свечения при наведении */
.flora-custom-address-form button::before,
.woocommerce-account .button::before,
.woocommerce-account button[type="submit"]:where(:not(.flora-search-submit))::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s !important;
}

.flora-custom-address-form button:hover::before,
.woocommerce-account .button:hover::before,
.woocommerce-account button[type="submit"]:where(:not(.flora-search-submit)):hover::before {
    left: 100% !important;
}

.flora-custom-address-form button:hover,
.woocommerce-account .button:hover,
.woocommerce-account button[type="submit"]:where(:not(.flora-search-submit)):hover {
    background: linear-gradient(135deg, #1e3d6c 0%, #15294a 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow:
        0 8px 25px rgba(44, 90, 160, 0.35),
        0 4px 8px rgba(44, 90, 160, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.flora-custom-address-form button:active,
.woocommerce-account .button:active,
.woocommerce-account button[type="submit"]:where(:not(.flora-search-submit)):active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.25) !important;
}

/* === Блок 2 — read-only snapshot способа доставки и ПВЗ === */
.woocommerce-MyAccount-content .flora-address-snapshot {
    max-width: 650px !important;
    margin: 26px auto 0 auto !important;
    padding: 24px 26px;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 60%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    border-left: 4px solid #15803d;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(22, 101, 52, 0.07);
}
.flora-address-snapshot__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: #14532d;
    line-height: 1.25;
}
.flora-address-snapshot__eyebrow {
    margin: 0 0 16px;
    font-size: 13px;
    color: #166534;
    line-height: 1.5;
}
.flora-address-snapshot__empty {
    margin: 12px 0 18px;
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
}
.flora-address-snapshot__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 18px;
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #d9f99d;
    border-radius: 10px;
}
.flora-address-snapshot__row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 6px 12px;
    align-items: baseline;
}
.flora-address-snapshot__row--big .flora-address-snapshot__val {
    font-size: 16px;
    font-weight: 700;
    color: #14532d;
}
.flora-address-snapshot__key {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}
.flora-address-snapshot__val {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.45;
    word-break: break-word;
}
.flora-address-snapshot__actions {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}
.flora-address-snapshot__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(22, 101, 52, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.flora-address-snapshot__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(22, 101, 52, 0.28);
}
.flora-address-snapshot__cta--disabled {
    background: #cbd5e1;
    color: #475569 !important;
    box-shadow: none;
    cursor: not-allowed;
}
.flora-address-snapshot__cta--disabled:hover {
    transform: none;
    box-shadow: none;
}
@media (max-width: 600px) {
    .woocommerce-MyAccount-content .flora-address-snapshot {
        max-width: 100% !important;
        padding: 20px 16px;
        border-radius: 12px;
    }
    .flora-address-snapshot__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .flora-address-snapshot__key { font-size: 11px; }
}

/* Анимации */
@keyframes floraSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.woocommerce-account .woocommerce-MyAccount-content > * {
    animation: floraSlideIn 0.5s ease-out;
}

body.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content > * {
    animation: none !important;
}

/* ========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (до 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Скрываем хлебные крошки на мобиле */
    .woocommerce-account .storefront-breadcrumb,
    .woocommerce-account nav.woocommerce-breadcrumb,
    .woocommerce-account .woocommerce-breadcrumb {
        display: none !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation::after {
        display: none !important;
        content: none !important;
    }

    /* Табы ЛК: компактные, но читаемые */
    .woocommerce-account .woocommerce-MyAccount-navigation a {
        text-align: center !important;
    }

    /* Активный таб — выделение */
    .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
        background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6c 100%) !important;
        color: #fff !important;
        border-color: transparent !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .woocommerce-MyAccount-navigation-link--customer-logout a {
        padding: 7px 9px !important;
    }

    /* Убираем внешнюю рамку-обёртку */
    .woocommerce-account .woocommerce {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    /* Убираем боковые отступы только у рабочей области ЛК.
       Общий селектор .woocommerce-account .col-full также обнулял
       фирменные мобильные поля подвала и прижимал его к краям экрана. */
    .woocommerce-account #content > .col-full,
    .woocommerce-account .site-content > .col-full {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }

    /* Убираем лишние отступы на article и main */
    .woocommerce-account article.page {
        margin-bottom: 0 !important;
    }

    /* Заголовки страниц — чище, без лишних эмодзи */
    .flora-page-header h1,
    .flora-orders-header-title,
    .flora-viewed-header-title,
    .flora-favorites-header-title {
        font-size: 22px !important;
        letter-spacing: 0 !important;
    }

    .flora-page-header span[style*="font-size:42px"],
    .flora-orders-header-icon,
    .flora-viewed-header-icon {
        font-size: 26px !important;
    }

    .woocommerce-account .flora-order-card {
        margin-bottom: 0 !important;
    }

    .woocommerce-account .flora-order-status {
        max-width: 46% !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .woocommerce-account .flora-order-detail {
        gap: 3px !important;
    }

    .woocommerce-account .flora-order-detail-value {
        line-height: 1.25 !important;
    }

    .woocommerce-account .flora-order-card-footer {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .woocommerce-account .flora-order-btn {
        flex: 1 1 calc(50% - 4px) !important;
        width: auto !important;
        min-height: 40px !important;
        padding: 10px 8px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        justify-content: center !important;
    }

    .woocommerce-account .flora-order-btn.btn-pay {
        flex-basis: 100% !important;
        min-height: 42px !important;
        font-size: 14px !important;
    }

    /* Формы - поля на всю ширину */
    .flora-custom-address-form input,
    .woocommerce-account input[type="text"],
    .woocommerce-account input[type="email"],
    .woocommerce-account input[type="tel"],
    .woocommerce-account input[type="password"] {
        font-size: 16px !important; /* Предотвращает зум на iOS */
        padding: 14px !important;
        min-height: 50px !important;
    }

    /* Кнопки на всю ширину */
    .flora-custom-address-form button,
    .woocommerce-account .button,
    .woocommerce-account button[type="submit"]:where(:not(.flora-search-submit)) {
        width: 100% !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        min-height: 54px !important;
    }

    /* Избранное и просмотренные: на телефоне список читается лучше сетки */
    .flora-favorites-grid,
    .flora-viewed-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .flora-favorites-card,
    .flora-viewed-card {
        display: grid !important;
        grid-template-columns: 84px minmax(0, 1fr) !important;
        align-items: stretch !important;
        min-height: 112px !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        overflow: visible !important;
        transform: none !important;
    }

    .flora-favorites-card:hover,
    .flora-viewed-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .flora-favorites-card-image,
    .flora-viewed-card-image {
        width: 84px !important;
        height: 100% !important;
        min-height: 112px !important;
        aspect-ratio: auto !important;
        border-radius: 12px 0 0 12px !important;
    }

    .flora-favorites-card-image img,
    .flora-viewed-card-image img {
        transform: none !important;
    }

    .flora-favorites-card-content,
    .flora-viewed-card-content {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
        padding: 10px 12px !important;
    }

    .flora-favorites-card-content {
        padding-right: 40px !important;
    }

    .flora-favorites-card-title,
    .flora-viewed-card-title {
        font-size: 13px !important;
        min-height: 0 !important;
        margin-bottom: 4px !important;
        line-height: 1.25 !important;
        -webkit-line-clamp: 2 !important;
    }

    .flora-favorites-card-price,
    .flora-viewed-card-price {
        font-size: 15px !important;
        margin: 2px 0 8px !important;
    }

    .flora-favorites-card-sku,
    .flora-viewed-card-sku {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }

    .flora-favorites-card-btn,
    .flora-viewed-card-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-height: 44px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        border-radius: 8px !important;
    }

    .flora-viewed-card-actions {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .flora-favorites-card-badge,
    .flora-viewed-card-badge {
        font-size: 9px !important;
        padding: 3px 6px !important;
    }

    .flora-favorites-card-remove {
        top: 8px !important;
        right: 8px !important;
    }

    .flora-card-cart-qty,
    .flora-viewed-card .flora-card-cart-qty {
        right: 5px !important;
        bottom: 5px !important;
        padding: 3px 7px !important;
        font-size: 10px !important;
        border-width: 1px !important;
    }

    /* Пустые состояния */
    .flora-favorites-empty,
    .flora-viewed-empty,
    .flora-no-orders {
        padding: 40px 20px !important;
    }

    .flora-favorites-empty-icon,
    .flora-viewed-empty-icon,
    .flora-no-orders-icon {
        font-size: 48px !important;
    }
}

/* ========================================
   СУПЕР-МОБИЛЬНАЯ АДАПТАЦИЯ (до 480px)
   ======================================== */
@media (max-width: 480px) {
    .woocommerce-account .woocommerce {
        padding: 8px !important;
        margin: 5px 0 !important;
    }

    /* Заголовки ещё меньше */
    .flora-page-header h1,
    .flora-orders-header-title {
        font-size: 20px !important;
    }

    .flora-favorites-grid,
    .flora-viewed-grid {
        gap: 8px !important;
    }

    .flora-favorites-card-actions,
    .flora-viewed-card-actions {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .flora-favorites-card-btn,
    .flora-viewed-card-btn {
        width: auto !important;
        flex: 1 1 auto !important;
    }
}

/* Touch-friendly элементы для всех мобильных */
@media (hover: none) and (pointer: coarse) {
    .woocommerce-account .woocommerce-MyAccount-navigation a:active,
    .flora-favorites-card-btn:active,
    .flora-viewed-card-btn:active,
    .flora-order-btn:active,
    .woocommerce-account .button:active {
        transform: scale(0.98) !important;
        opacity: 0.9 !important;
    }
}

body.woocommerce-account {
    --fa-ink: #17324d;
    --fa-muted: #5f7081;
    --fa-line: #dce5eb;
    --fa-line-strong: #c8d5de;
    --fa-surface: #ffffff;
    --fa-surface-soft: #f5f8f7;
    --fa-green: #187b4b;
    --fa-green-dark: #105f39;
    --fa-green-soft: #e9f5ef;
    --fa-navy: #214f86;
    --fa-danger: #b42318;
    --fa-danger-soft: #fff1f0;
    --fa-warning: #8a5a08;
    --fa-warning-soft: #fff7df;
    --fa-radius: 14px;
    --fa-shadow: 0 8px 28px rgba(23, 50, 77, 0.07);
    color: var(--fa-ink);
}

body.woocommerce-account .site-content {
    padding-top: 18px !important;
}

body.woocommerce-account .storefront-breadcrumb {
    margin: 0 auto 18px !important;
    padding: 0 !important;
}

body.woocommerce-account .content-area,
body.woocommerce-account .site-main {
    margin-bottom: 34px !important;
}

body.woocommerce-account.logged-in .woocommerce {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Account navigation */
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
    position: relative !important;
    z-index: 3 !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 18px !important;
    padding: 6px !important;
    overflow: visible !important;
    background: var(--fa-surface) !important;
    border: 1px solid var(--fa-line) !important;
    border-radius: var(--fa-radius) !important;
    box-shadow: 0 2px 10px rgba(23, 50, 77, 0.05) !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 9px 11px !important;
    color: #42576a !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 12.5px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transform: none !important;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a::before {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    filter: saturate(.72);
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a:hover {
    color: var(--fa-green-dark) !important;
    background: var(--fa-surface-soft) !important;
    border-color: var(--fa-line) !important;
    box-shadow: none !important;
    transform: none !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a[aria-current="page"] {
    color: var(--fa-green-dark) !important;
    background: var(--fa-green-soft) !important;
    border-color: #bddfce !important;
    box-shadow: none !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #7a4a45 !important;
    background: transparent !important;
    border-color: transparent !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    color: var(--fa-danger) !important;
    background: var(--fa-danger-soft) !important;
    border-color: #f2c8c3 !important;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 26px !important;
    background: var(--fa-surface) !important;
    border: 1px solid var(--fa-line) !important;
    border-radius: 16px !important;
    box-shadow: var(--fa-shadow) !important;
}

/* Shared focus and controls */
body.woocommerce-account :where(a, button, input, select, textarea):not(.flora-search-input):focus-visible {
    outline: 3px solid rgba(24, 123, 75, .25) !important;
    outline-offset: 2px !important;
}

body.woocommerce-account .woocommerce-MyAccount-content :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 46px;
    border: 1px solid var(--fa-line-strong);
    border-radius: 10px;
    background: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-content :where(.button, button.button) {
    min-height: 44px;
    border-radius: 10px;
}

/* Orders list */
body.woocommerce-account .flora-orders-header {
    margin: 0 0 24px !important;
    padding: 0 !important;
    text-align: left !important;
}

body.woocommerce-account .flora-orders-header-content {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 11px !important;
    padding: 0 !important;
}

body.woocommerce-account .flora-orders-header-icon {
    font-size: 28px !important;
    filter: none !important;
}

body.woocommerce-account .flora-orders-header-title {
    margin: 0 !important;
    color: var(--fa-ink) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: clamp(25px, 3vw, 32px) !important;
    font-weight: 760 !important;
    letter-spacing: -.025em !important;
}

body.woocommerce-account .flora-orders-header-badge {
    padding: 6px 10px !important;
    color: var(--fa-green-dark) !important;
    background: var(--fa-green-soft) !important;
    border: 1px solid #c8e5d6 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

body.woocommerce-account .flora-orders-header-line {
    display: none !important;
}

body.woocommerce-account .flora-orders-list {
    gap: 12px !important;
}

body.woocommerce-account .flora-order-card {
    padding: 20px !important;
    background: #fff !important;
    border: 1px solid var(--fa-line) !important;
    border-radius: var(--fa-radius) !important;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color 150ms ease, box-shadow 150ms ease !important;
}

body.woocommerce-account .flora-order-card:hover {
    border-color: #b8c9d4 !important;
    box-shadow: 0 5px 18px rgba(23, 50, 77, .06) !important;
    transform: none !important;
}

body.woocommerce-account .flora-order-card-header {
    align-items: center !important;
    gap: 14px !important;
    margin: 0 0 16px !important;
    padding: 0 0 15px !important;
    border-bottom: 1px solid #e8eef2 !important;
}

body.woocommerce-account .flora-order-info {
    gap: 3px !important;
}

body.woocommerce-account .flora-order-number {
    color: var(--fa-navy) !important;
    font-size: 17px !important;
    font-weight: 720 !important;
    text-underline-offset: 3px;
}

body.woocommerce-account .flora-order-number:hover {
    color: #173e6c !important;
    text-decoration: underline !important;
}

body.woocommerce-account .flora-order-date {
    color: var(--fa-muted) !important;
    font-size: 13px !important;
}

body.woocommerce-account .flora-order-status {
    padding: 6px 10px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    letter-spacing: .035em !important;
}

body.woocommerce-account .flora-order-status.status-completed {
    color: #12613c !important;
    background: #e7f6ee !important;
    border-color: #c2e8d3 !important;
}

body.woocommerce-account .flora-order-status.status-processing {
    color: #174f86 !important;
    background: #eaf2fb !important;
    border-color: #c9ddf0 !important;
}

body.woocommerce-account .flora-order-status.status-pending,
body.woocommerce-account .flora-order-status.status-on-hold,
body.woocommerce-account .flora-order-status.status-preorder {
    color: var(--fa-warning) !important;
    background: var(--fa-warning-soft) !important;
    border-color: #eddbab !important;
}

body.woocommerce-account .flora-order-status.status-cancelled,
body.woocommerce-account .flora-order-status.status-failed,
body.woocommerce-account .flora-order-status.status-refunded {
    color: var(--fa-danger) !important;
    background: var(--fa-danger-soft) !important;
    border-color: #f0c9c5 !important;
}

body.woocommerce-account .flora-order-card-body {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 0 0 16px !important;
}

body.woocommerce-account .flora-order-detail-label {
    color: var(--fa-muted) !important;
    font-size: 11px !important;
    letter-spacing: .055em !important;
}

body.woocommerce-account .flora-order-detail-value,
body.woocommerce-account .flora-order-detail-value.total {
    color: var(--fa-ink) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

body.woocommerce-account .flora-order-no-items {
    margin: -2px 0 16px;
    padding: 10px 12px;
    color: #5d4a20;
    background: #fffaf0;
    border-left: 3px solid #d8a83e;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.45;
}

body.woocommerce-account .flora-order-card-footer {
    gap: 8px !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid #e8eef2 !important;
}

body.woocommerce-account :where(.flora-order-btn, .flora-action-btn) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 44px !important;
    padding: 10px 15px !important;
    border: 1px solid var(--fa-line-strong) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transform: none !important;
}

body.woocommerce-account :where(.flora-order-btn.btn-primary, .flora-action-btn.btn-primary) {
    color: #fff !important;
    background: var(--fa-navy) !important;
    border-color: var(--fa-navy) !important;
}

body.woocommerce-account :where(.flora-order-btn.btn-reorder, .flora-order-btn.btn-pay, .flora-action-btn.btn-pay) {
    color: #fff !important;
    background: var(--fa-green) !important;
    border-color: var(--fa-green) !important;
}

body.woocommerce-account :where(.flora-order-btn.btn-secondary, .flora-action-btn.btn-secondary) {
    color: #344b5f !important;
    background: #fff !important;
}

body.woocommerce-account :where(.flora-order-btn.btn-danger, .flora-action-btn.btn-danger) {
    color: var(--fa-danger) !important;
    background: #fff !important;
    border-color: #edc4bf !important;
}

body.woocommerce-account :where(.flora-order-btn, .flora-action-btn):hover {
    filter: brightness(.96);
    box-shadow: none !important;
    transform: none !important;
}

body.woocommerce-account .flora-orders-pagination {
    align-items: center !important;
    gap: 10px !important;
    margin-top: 22px !important;
}

body.woocommerce-account .flora-orders-pagination a {
    min-height: 44px !important;
    padding: 10px 15px !important;
    border: 1px solid var(--fa-line-strong) !important;
    border-radius: 10px !important;
    transition: none !important;
}

body.woocommerce-account .flora-orders-pagination-current {
    color: var(--fa-muted);
    font-size: 13px;
}

body.woocommerce-account .flora-orders-filters {
    display: grid;
    grid-template-columns: minmax(230px, 1.7fr) minmax(150px, 1fr) minmax(170px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin: 0 0 18px;
    padding: 16px 0;
    border-top: 1px solid var(--fa-line);
    border-bottom: 1px solid var(--fa-line);
}

body.woocommerce-account .flora-orders-filter {
    display: grid;
    gap: 6px;
    min-width: 0;
}

body.woocommerce-account .flora-orders-filter label {
    margin: 0;
    color: #526779;
    font-size: 12px;
    font-weight: 720;
    line-height: 1.3;
}

body.woocommerce-account .flora-orders-filter :where(input, select) {
    width: 100%;
    margin: 0;
    color: var(--fa-ink);
    background: #fff;
}

body.woocommerce-account .flora-orders-filter-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

body.woocommerce-account .flora-orders-filter-submit,
body.woocommerce-account .flora-orders-filter-reset {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px 15px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 720 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

body.woocommerce-account .flora-orders-filter-submit {
    color: #fff !important;
    background: var(--fa-green) !important;
    border: 1px solid var(--fa-green) !important;
}

body.woocommerce-account .flora-orders-filter-reset {
    color: var(--fa-navy) !important;
    background: #fff !important;
    border: 1px solid var(--fa-line-strong) !important;
}

body.woocommerce-account .flora-orders-results {
    margin: -4px 0 14px;
    color: var(--fa-muted);
    font-size: 13px;
}

body.woocommerce-account .flora-no-orders.is-filtered .flora-no-orders-btn {
    color: #fff !important;
    background: var(--fa-green) !important;
    border: 1px solid var(--fa-green) !important;
    box-shadow: none !important;
}

/* Order detail */
body.woocommerce-view-order .flora-back-link {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
    margin: -5px 0 12px !important;
    color: var(--fa-navy) !important;
    font-weight: 700 !important;
    text-underline-offset: 3px;
}

body.woocommerce-view-order .flora-view-order-header {
    margin: 0 0 16px !important;
    padding: 20px !important;
    text-align: left !important;
    background: var(--fa-surface-soft) !important;
    border: 1px solid var(--fa-line) !important;
    border-radius: var(--fa-radius) !important;
    box-shadow: none !important;
}

body.woocommerce-view-order .flora-view-order-header-content,
body.woocommerce-view-order .flora-view-order-meta,
body.woocommerce-view-order .flora-order-actions {
    justify-content: flex-start !important;
}

body.woocommerce-view-order .flora-view-order-title {
    color: var(--fa-ink) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: clamp(24px, 3vw, 31px) !important;
}

body.woocommerce-view-order :where(.flora-order-delivery-card, .flora-order-items-section, .flora-order-notes) {
    border: 1px solid var(--fa-line) !important;
    border-radius: var(--fa-radius) !important;
    box-shadow: none !important;
}

body.woocommerce-view-order .flora-order-delivery-card button.flora-order-delivery-cta,
body.woocommerce-view-order .flora-order-delivery-card a.flora-order-delivery-cta,
body.woocommerce-view-order section.flora-order-delivery-card button.flora-order-delivery-cta,
body.woocommerce-view-order section.flora-order-delivery-card a.flora-order-delivery-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 10px 15px !important;
    color: #fff !important;
    background: var(--fa-green) !important;
    border: 1px solid var(--fa-green) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.woocommerce-view-order .flora-order-items-shell {
    border-color: var(--fa-line) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

body.woocommerce-view-order .flora-order-items-table thead th {
    color: #536779 !important;
    background: #f5f8fa !important;
    border-color: var(--fa-line) !important;
}

body.woocommerce-view-order .flora-order-item-row.is-collapsed,
body.woocommerce-view-order .flora-order-item-actions-row.is-collapsed {
    display: none !important;
}

body.woocommerce-view-order .flora-order-empty-items-row td {
    padding: 22px !important;
}

body.woocommerce-view-order .flora-order-empty-items {
    display: grid;
    gap: 5px;
    max-width: 640px;
    color: #5d4a20;
    font-size: 14px;
    line-height: 1.45;
}

body.woocommerce-view-order .flora-order-empty-items strong {
    color: #473919;
    font-size: 15px;
}

body.woocommerce-view-order .flora-order-edit-toggle,
body.woocommerce-view-order .flora-order-toggle {
    min-height: 44px !important;
    border-radius: 10px !important;
}

body.woocommerce-view-order .flora-order-timeline {
    margin: 0 0 18px;
    padding: 20px 0;
    border-top: 1px solid var(--fa-line);
    border-bottom: 1px solid var(--fa-line);
}

body.woocommerce-view-order .flora-order-timeline-heading {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr);
    align-items: start;
    gap: 24px;
    margin-bottom: 18px;
}

body.woocommerce-view-order .flora-order-timeline-kicker {
    margin: 0 0 3px;
    color: var(--fa-green-dark);
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .07em;
    text-transform: uppercase;
}

body.woocommerce-view-order .flora-order-timeline h2 {
    margin: 0;
    color: var(--fa-ink);
    font-size: 21px;
    line-height: 1.25;
}

body.woocommerce-view-order .flora-order-timeline-summary {
    max-width: 520px;
    margin: 0;
    color: var(--fa-muted);
    font-size: 14px;
    line-height: 1.55;
}

body.woocommerce-view-order .flora-order-timeline-list {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-view-order .flora-order-timeline-event {
    position: relative;
    min-height: 55px;
    margin: 0;
    padding: 0 0 17px 31px;
}

body.woocommerce-view-order .flora-order-timeline-event:not(:last-child)::before {
    position: absolute;
    top: 13px;
    bottom: -1px;
    left: 6px;
    width: 1px;
    background: var(--fa-line-strong);
    content: "";
}

body.woocommerce-view-order .flora-order-timeline-marker {
    position: absolute;
    top: 5px;
    left: 1px;
    width: 11px;
    height: 11px;
    background: #fff;
    border: 2px solid #94a8b6;
    border-radius: 50%;
}

body.woocommerce-view-order .flora-order-timeline-event.is-current .flora-order-timeline-marker {
    background: var(--fa-green);
    border-color: #fff;
    box-shadow: 0 0 0 3px #bfe3d1;
}

body.woocommerce-view-order .flora-order-timeline-event-body {
    display: grid;
    gap: 2px;
}

body.woocommerce-view-order .flora-order-timeline-event-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--fa-ink);
    font-size: 14px;
}

body.woocommerce-view-order .flora-order-timeline-event time {
    color: var(--fa-muted);
    font-size: 12px;
}

body.woocommerce-view-order .flora-order-timeline-current {
    padding: 3px 7px;
    color: var(--fa-green-dark);
    background: var(--fa-green-soft);
    border: 1px solid #c8e5d6;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 780;
    letter-spacing: .03em;
    text-transform: uppercase;
}

body.woocommerce-view-order .flora-order-timeline-tip {
    margin: 2px 0 0 31px;
    padding: 10px 12px;
    color: #405768;
    background: var(--fa-surface-soft);
    border-left: 3px solid #afc9bb;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

/* Other endpoints */
body.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
body.woocommerce-account .woocommerce-EditAccountForm,
body.woocommerce-account .woocommerce-address-fields {
    padding: 18px;
    border: 1px solid var(--fa-line);
    border-radius: var(--fa-radius);
    box-shadow: none;
}

body.woocommerce-account :where(.flora-favorites-card, .flora-viewed-card) {
    border-color: var(--fa-line) !important;
    box-shadow: none !important;
}

body.woocommerce-account .flora-favorites-card-remove {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
}

body.woocommerce-account .flora-favorites-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.woocommerce-account .flora-favorites-card-actions > [role="status"] {
    flex-basis: 100%;
}

body.woocommerce-account :where(.flora-favorites-card-btn, .flora-viewed-card-btn) {
    min-height: 44px;
}

body.woocommerce-account .flora-card-action-message {
    margin: 8px 0 0;
    padding: 8px 9px;
    color: var(--fa-danger);
    background: var(--fa-danger-soft);
    border: 1px solid #f0c9c5;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    body.woocommerce-account .site-content {
        padding-top: 0 !important;
    }

    body.woocommerce-account.logged-in .woocommerce {
        margin: 0 !important;
    }

    body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
        margin: 0 0 14px !important;
        padding: 5px !important;
        border-radius: 0 0 12px 12px !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }

    body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a {
        min-height: 44px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
        padding: 16px !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.woocommerce-account .flora-orders-header {
        margin-bottom: 16px !important;
    }

    body.woocommerce-account .flora-orders-header-content {
        gap: 8px !important;
    }

    body.woocommerce-account .flora-orders-header-icon,
    body.woocommerce-account .flora-orders-header-title {
        font-size: 24px !important;
    }

    body.woocommerce-account .flora-orders-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
        padding-block: 14px;
    }

    body.woocommerce-account .flora-orders-filter--search,
    body.woocommerce-account .flora-orders-filter-actions {
        grid-column: 1 / -1;
    }

    body.woocommerce-account .flora-orders-filter-actions > * {
        flex: 1 1 0;
    }

    body.woocommerce-account .flora-order-card {
        padding: 15px !important;
    }

    body.woocommerce-account .flora-order-card-header {
        align-items: flex-start !important;
    }

    body.woocommerce-account .flora-order-card-body {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body.woocommerce-account .flora-order-card-footer {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.woocommerce-account .flora-order-card-footer > :only-child,
    body.woocommerce-account .flora-order-card-footer > :nth-last-child(3):first-child {
        grid-column: 1 / -1;
    }

    body.woocommerce-account :where(.flora-order-btn, .flora-action-btn) {
        width: 100% !important;
        padding-inline: 10px !important;
        font-size: 13.5px !important;
    }

    body.woocommerce-view-order .flora-back-link {
        margin-left: 0 !important;
    }

    body.woocommerce-view-order .flora-view-order-header {
        padding: 16px !important;
    }

    body.woocommerce-view-order .flora-order-timeline-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.woocommerce-view-order .flora-view-order-meta {
        gap: 8px 14px !important;
    }

    body.woocommerce-view-order .flora-order-item-name,
    body.woocommerce-view-order .flora-order-item-name a {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    body.woocommerce-view-order .flora-order-item-thumb,
    body.woocommerce-view-order .flora-order-item-thumb img {
        width: 56px !important;
        min-width: 56px !important;
        height: 56px !important;
    }

    body.woocommerce-view-order .flora-item-stock-badge {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    body.woocommerce-view-order .flora-order-delivery-card button.flora-order-delivery-cta,
    body.woocommerce-view-order .flora-order-delivery-card a.flora-order-delivery-cta {
        width: 100% !important;
    }

    body.woocommerce-account .flora-orders-pagination {
        flex-wrap: wrap;
    }

    body.woocommerce-account .flora-orders-pagination-current {
        order: -1;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 390px) {
    body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
        padding-inline: 13px !important;
    }

    body.woocommerce-account .flora-orders-header-badge {
        font-size: 11px !important;
    }

    body.woocommerce-account .flora-orders-filters {
        grid-template-columns: 1fr;
    }

    body.woocommerce-account .flora-orders-filter,
    body.woocommerce-account .flora-orders-filter-actions {
        grid-column: 1;
    }

    body.woocommerce-account .flora-order-card-footer {
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-account .flora-order-card-footer > * {
        grid-column: 1 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.woocommerce-account *,
    body.woocommerce-account *::before,
    body.woocommerce-account *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Address and identity forms: one calm visual language across endpoints. */
body.woocommerce-account .flora-flow-header--address-copy,
body.woocommerce-account .flora-page-header--account {
    max-width: 650px !important;
    margin: 4px auto 18px !important;
    padding: 18px 20px !important;
    color: var(--fa-ink) !important;
    background: var(--fa-surface) !important;
    border: 1px solid var(--fa-line) !important;
    border-radius: var(--fa-radius) !important;
    box-shadow: none !important;
    text-align: left !important;
}

body.woocommerce-account .flora-page-header__content,
body.woocommerce-account .flora-flow-header--address-copy .flora-flow-header-content {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-account .flora-page-header__icon,
body.woocommerce-account .flora-flow-header--address-copy .flora-flow-header-icon {
    display: inline-flex !important;
    flex: 0 0 44px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    color: var(--fa-navy) !important;
    background: var(--fa-surface-soft) !important;
    border: 1px solid var(--fa-line) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    filter: none !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

body.woocommerce-account .flora-page-header__title,
body.woocommerce-account .flora-flow-header--address-copy .flora-flow-header-title {
    margin: 0 !important;
    color: var(--fa-ink) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: clamp(22px, 3vw, 28px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

body.woocommerce-account .flora-flow-header--address-copy .flora-flow-header-line {
    display: none !important;
}

body.woocommerce-account .flora-address-info-card,
body.woocommerce-account .flora-account-info-notice {
    max-width: 650px !important;
    margin: 0 auto 18px !important;
    padding: 15px 17px !important;
    color: var(--fa-ink) !important;
    background: var(--fa-surface-soft) !important;
    border: 1px solid var(--fa-line) !important;
    border-left: 3px solid var(--fa-green) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

body.woocommerce-account .flora-address-info-card__lead,
body.woocommerce-account .flora-address-info-card__lead strong,
body.woocommerce-account .flora-account-info-notice a {
    color: var(--fa-ink) !important;
}

body.woocommerce-account .flora-account-info-notice a {
    font-weight: 700 !important;
}

body.woocommerce-account .flora-custom-address-form,
body.woocommerce-account .woocommerce-EditAccountForm {
    background: var(--fa-surface) !important;
    border: 1px solid var(--fa-line) !important;
    border-top: 3px solid var(--fa-green) !important;
    border-radius: var(--fa-radius) !important;
    box-shadow: none !important;
}

body.woocommerce-account .flora-address-snapshot {
    background: var(--fa-surface-soft) !important;
    border-color: var(--fa-line) !important;
    border-left-color: var(--fa-green) !important;
    box-shadow: none !important;
}

@media (max-width: 600px) {
    body.woocommerce-account .flora-flow-header--address-copy,
    body.woocommerce-account .flora-page-header--account {
        padding: 14px !important;
    }

    body.woocommerce-account .flora-custom-address-form,
    body.woocommerce-account .woocommerce-EditAccountForm {
        padding: 18px 14px !important;
    }
}

/* Finalized addition event: one calm, explicit account highlight. */
body.woocommerce-account .flora-addition-event-highlight {
    display: grid;
    grid-template-columns: minmax(150px, .42fr) minmax(0, 1fr);
    gap: 22px;
    margin: 0 0 22px;
    padding: 20px;
    color: var(--fa-ink);
    background: linear-gradient(105deg, #edf8f1 0, #fff 58%);
    border: 1px solid #b9dbc8;
    border-left: 5px solid var(--fa-green);
    border-radius: var(--fa-radius);
    box-shadow: 0 5px 20px rgba(24, 123, 75, .08);
    animation: flora-account-addition-enter 220ms ease-out;
}

body.woocommerce-account .flora-addition-event-achievement {
    align-self: start;
    padding: 4px 0;
}

body.woocommerce-account .flora-addition-event-kicker {
    margin: 0 0 7px;
    color: var(--fa-green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
}

body.woocommerce-account .flora-addition-event-percent {
    display: block;
    color: var(--fa-green-dark);
    font-size: clamp(38px, 6vw, 58px);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

body.woocommerce-account .flora-addition-event-tier {
    margin: 7px 0 0;
    color: #355947;
    font-size: 13px;
    line-height: 1.4;
}

body.woocommerce-account .flora-addition-event-copy > p {
    margin: 0 0 9px;
    color: #294538;
    font-size: 14px;
    line-height: 1.55;
}

body.woocommerce-account .flora-addition-event-details {
    margin: 13px 0;
    border-top: 1px solid #cfe3d7;
    border-bottom: 1px solid #cfe3d7;
}

body.woocommerce-account .flora-addition-event-details summary,
body.woocommerce-view-order .flora-order-timeline-addition-details summary {
    width: fit-content;
    min-height: 44px;
    padding: 11px 2px;
    color: var(--fa-navy);
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
}

body.woocommerce-account .flora-addition-event-details summary:focus-visible,
body.woocommerce-account .flora-addition-event-actions :focus-visible,
body.woocommerce-view-order .flora-order-timeline-addition-details summary:focus-visible {
    outline: 3px solid #1d70b8 !important;
    outline-offset: 2px !important;
}

body.woocommerce-account .flora-addition-event-breakdown,
body.woocommerce-view-order .flora-order-timeline-addition-details dl {
    display: grid;
    gap: 0;
    margin: 0 0 10px;
}

body.woocommerce-account .flora-addition-event-breakdown > div,
body.woocommerce-view-order .flora-order-timeline-addition-details dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 6px 0;
    border-bottom: 1px dotted #d9e6df;
    font-size: 13px;
}

body.woocommerce-account .flora-addition-event-breakdown dt,
body.woocommerce-account .flora-addition-event-breakdown dd,
body.woocommerce-view-order .flora-order-timeline-addition-details dt,
body.woocommerce-view-order .flora-order-timeline-addition-details dd {
    margin: 0;
}

body.woocommerce-account .flora-addition-event-breakdown dd,
body.woocommerce-view-order .flora-order-timeline-addition-details dd {
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    text-align: right;
}

body.woocommerce-account .flora-addition-event-breakdown-total {
    margin-top: 3px;
    color: var(--fa-ink);
    border-bottom: 0 !important;
    font-size: 14px !important;
    font-weight: 800;
}

body.woocommerce-account .flora-addition-event-order-total {
    color: var(--fa-muted) !important;
    font-size: 12.5px !important;
}

body.woocommerce-account .flora-addition-event-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.woocommerce-account .flora-addition-event-actions .button,
body.woocommerce-account .flora-order-balance-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 9px 15px !important;
    border-radius: 9px !important;
    font-size: 13.5px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
}

body.woocommerce-account .flora-addition-event-use,
body.woocommerce-account .flora-order-balance-action {
    color: #fff !important;
    background: var(--fa-green) !important;
    border: 1px solid var(--fa-green-dark) !important;
}

body.woocommerce-account .flora-addition-event-ack {
    color: var(--fa-ink) !important;
    background: #fff !important;
    border: 1px solid var(--fa-line-strong) !important;
}

body.woocommerce-account .flora-addition-event-feedback {
    min-height: 18px;
    margin: 7px 0 0 !important;
    color: var(--fa-muted) !important;
    font-size: 12px !important;
}

body.woocommerce-view-order .flora-order-timeline-event-detail {
    max-width: 660px;
    margin: 4px 0 1px;
    color: #405768;
    font-size: 13px;
    line-height: 1.5;
}

body.woocommerce-view-order .flora-order-timeline-addition-details {
    max-width: 560px;
    margin-top: 3px;
}

body.woocommerce-view-order .flora-order-timeline-addition-details p {
    margin: 5px 0 0;
    color: var(--fa-muted);
    font-size: 12px;
}

body.woocommerce-view-order .flora-order-balance-card {
    margin: 16px 0;
    padding: 17px 18px;
    color: #194d33;
    background: var(--fa-green-soft);
    border: 1px solid #b9dbc8;
    border-radius: var(--fa-radius);
}

body.woocommerce-view-order .flora-order-balance-card h2 {
    margin: 0 0 6px;
    color: var(--fa-green-dark);
    font-size: 17px;
    line-height: 1.3;
}

body.woocommerce-view-order .flora-order-balance-card p {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.5;
}

@keyframes flora-account-addition-enter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    body.woocommerce-account .flora-addition-event-highlight {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 17px;
    }

    body.woocommerce-account .flora-addition-event-achievement {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 2px 12px;
    }

    body.woocommerce-account .flora-addition-event-kicker,
    body.woocommerce-account .flora-addition-event-tier {
        grid-column: 1;
    }

    body.woocommerce-account .flora-addition-event-percent {
        grid-column: 2;
        grid-row: 1 / span 2;
        font-size: 42px;
    }
}

@media (max-width: 390px) {
    body.woocommerce-account .flora-addition-event-highlight,
    body.woocommerce-view-order .flora-order-balance-card {
        margin-right: -3px;
        margin-left: -3px;
        padding: 15px;
    }

    body.woocommerce-account .flora-addition-event-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body.woocommerce-account .flora-addition-event-actions .button,
    body.woocommerce-account .flora-order-balance-action {
        box-sizing: border-box !important;
        width: 100% !important;
        min-height: 46px !important;
    }

    body.woocommerce-account .flora-addition-event-breakdown > .flora-addition-event-breakdown-discount {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    body.woocommerce-account .flora-addition-event-breakdown > .flora-addition-event-breakdown-discount dd {
        text-align: left;
    }

    body.woocommerce-account .flora-addition-event-breakdown > div,
    body.woocommerce-view-order .flora-order-timeline-addition-details dl > div {
        gap: 8px;
        font-size: 12.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.woocommerce-account .flora-addition-event-highlight {
        animation: none;
    }
}

/* WooCommerce prints the action before the sentence and floats it.
   On a narrow account card the sentence splits around the button. */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info:has(.button),
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message:has(.button) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message::before {
    order: -1 !important;
    align-self: flex-start !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message .button {
    float: none !important;
    order: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    align-self: flex-start !important;
    text-align: center !important;
}

@media (max-width: 640px) {
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message .button {
        width: 100% !important;
        align-self: stretch !important;
    }
}

@media (min-width: 720px) {
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info:has(.button),
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message:has(.button) {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message .button {
        margin-left: auto !important;
    }
}

/* Agronomist progress card: same paper and green as the cabinet, not a dark slab. */
body.woocommerce-account .fe-banner {
    background: #f4faf6 !important;
    color: #17324d !important;
    border: 1px solid #d5e6dc !important;
    box-shadow: none !important;
}

body.woocommerce-account .fe-banner::before,
body.woocommerce-account .fe-banner::after {
    display: none !important;
}

body.woocommerce-account .fe-banner-tier,
body.woocommerce-account .fe-info-btn {
    background: #e7f5ec !important;
    color: #105f39 !important;
    border-color: #bddfce !important;
}

body.woocommerce-account .fe-quota-bar-track {
    background: #d7ebdf !important;
}

body.woocommerce-account .fe-quota-bar-fill:not(.fe-quota-warning):not(.fe-quota-danger) {
    background: #187b4b !important;
}

/* Legacy account CSS paints every submit with a navy gradient and !important.
   The login card sets a green variable, but that rule loses. Restore it here. */
body.woocommerce-account .fa-auth-page .fa-auth-btn--primary {
    background: #187b4b !important;
    background-image: none !important;
    box-shadow: 0 4px 14px -4px rgba(24, 123, 75, .45) !important;
}

body.woocommerce-account .fa-auth-page .fa-auth-btn--primary:hover:not(:disabled) {
    background: #105f39 !important;
    background-image: none !important;
}

body.woocommerce-account .fa-auth-page .fa-auth-btn--ghost {
    background: #ffffff !important;
    background-image: none !important;
    color: #187b4b !important;
    border: 1px solid #187b4b !important;
    box-shadow: none !important;
}

body.woocommerce-account .fe-locked-pitch,
body.woocommerce-account .fe-banner-locked-sub,
body.woocommerce-account .fe-banner-brand,
body.woocommerce-account .fe-banner-title {
    color: #17324d !important;
}
