:root {
    --ff-primary: #58B89E;
    --ff-primary-light: #A5E3D8;
    --ff-primary-dark: #3E8A75;
    --ff-text: #14181B;
    --ff-secondary-text: #57636C;
    --ff-error: #FF5963;
    --ff-background: #F1F4F8;
    --ff-ease: 0.18s ease;
    --ff-shadow-soft: 0 2px 8px rgba(20, 24, 27, 0.06);
    --ff-shadow-card: 0 4px 16px rgba(20, 24, 27, 0.08);
    --ff-shadow-raised: 0 8px 24px rgba(20, 24, 27, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.ff-body {
    margin: 0;
    background-color: var(--ff-background);
    font-family: 'Readex Pro', sans-serif;
    color: var(--ff-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

.ff-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #FFFFFF;
    box-shadow: 0 0 60px rgba(20, 24, 27, 0.05);
    display: flex;
    flex-direction: column;
}

a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

.ff-appbar {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

    .ff-appbar .ff-back-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 30px;
        color: var(--ff-primary);
        text-decoration: none;
        font-size: 20px;
        transition: background-color var(--ff-ease);
    }

        .ff-appbar .ff-back-button:hover {
            background-color: rgba(88, 184, 158, 0.1);
        }

        .ff-appbar .ff-back-button:active {
            background-color: rgba(88, 184, 158, 0.18);
        }

    .ff-appbar .ff-appbar-title {
        flex: 1;
        text-align: center;
        margin-right: 44px;
        font-family: 'Readex Pro', sans-serif;
        font-size: 20px;
        color: var(--ff-primary);
    }

.ff-topbar {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 8px;
    background-color: var(--ff-primary);
    box-shadow: 0 2px 10px rgba(20, 24, 27, 0.12);
    position: relative;
    z-index: 5;
}

.ff-topbar-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #FFFFFF;
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--ff-ease);
}

    .ff-topbar-menu-button:hover,
    .ff-topbar-menu-button:active {
        background-color: rgba(255, 255, 255, 0.14);
    }

.ff-topbar-title {
    flex: 1;
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 500;
    padding-left: 4px;
}

.ff-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px 26px 26px 26px;
}

.ff-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 190px;
    background-color: var(--ff-background);
    border-radius: 16px;
    box-shadow: var(--ff-shadow-soft);
    padding: 10px;
    text-decoration: none;
    transition: box-shadow var(--ff-ease), transform var(--ff-ease);
}

    .ff-category-card:hover {
        box-shadow: var(--ff-shadow-card);
        transform: translateY(-2px);
    }

    .ff-category-card:active {
        transform: translateY(0);
        box-shadow: var(--ff-shadow-soft);
    }

    .ff-category-card img {
        max-width: 110px;
        max-height: 100px;
        object-fit: contain;
    }

    .ff-category-card span {
        margin-top: 10px;
        color: var(--ff-secondary-text);
        font-weight: 500;
        text-align: center;
    }

.ff-topbar-actions {
    display: flex;
    align-items: center;
}

.ff-topbar-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 20px;
    text-decoration: none;
    transition: background-color var(--ff-ease), opacity var(--ff-ease);
}

    .ff-topbar-icon-btn:hover {
        color: #FFFFFF;
        background-color: rgba(255, 255, 255, 0.14);
    }

    .ff-topbar-icon-btn:active {
        background-color: rgba(255, 255, 255, 0.22);
    }

.ff-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #FF000F;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}

.ff-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(20, 24, 27, 0.4);
    backdrop-filter: blur(1px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
    z-index: 40;
}

    .ff-drawer-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.ff-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(85%, 320px);
    background-color: #FFFFFF;
    box-shadow: 4px 0 24px rgba(20, 24, 27, 0.18);
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    z-index: 41;
    display: flex;
    flex-direction: column;
}

    .ff-drawer.open {
        transform: translateX(0);
    }

.ff-drawer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px 15px 15px;
}

    .ff-drawer-header img {
        max-width: 100%;
        max-height: 110px;
        object-fit: contain;
    }

.ff-drawer-nav {
    flex: 1;
    overflow-y: auto;
}

.ff-drawer-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 50px;
    padding: 0 15px 0 30px;
    color: var(--ff-secondary-text);
    text-decoration: none;
    font-size: 14px;
    transition: background-color var(--ff-ease), color var(--ff-ease);
}

    .ff-drawer-nav-item:hover {
        color: var(--ff-primary);
        background-color: rgba(88, 184, 158, 0.06);
    }

    .ff-drawer-nav-item:active {
        background-color: rgba(88, 184, 158, 0.12);
    }

    .ff-drawer-nav-item i {
        width: 20px;
        text-align: center;
        font-size: 18px;
    }

    .ff-drawer-nav-item .ff-badge {
        position: static;
        margin-left: -8px;
    }

.ff-drawer-footer {
    padding: 12px 15px 20px 15px;
    text-align: center;
}

.ff-drawer-powered-by {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ff-secondary-text);
}

    .ff-drawer-powered-by a {
        color: var(--ff-secondary-text);
        font-weight: bold;
        text-decoration: none;
    }


.ff-page-content {
    padding: 25px;
}

.ff-section-title {
    color: var(--ff-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 24px 0;
}

.ff-home-content {
    padding: 15px 25px 0 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ff-home-logo-tile {
    display: block;
    text-align: center;
    padding: 10px 0;
}

    .ff-home-logo-tile img {
        max-width: 100%;
        max-height: 130px;
        object-fit: contain;
    }

.ff-home-campaign-banner {
    background-color: var(--ff-background);
    border-radius: 16px;
    box-shadow: var(--ff-shadow-soft);
    padding: 10px;
    text-align: center;
}

.ff-home-tile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    background-color: var(--ff-background);
    border-radius: 16px;
    box-shadow: var(--ff-shadow-soft);
    padding: 20px 15px;
    text-decoration: none;
    color: var(--ff-text);
    transition: box-shadow var(--ff-ease), transform var(--ff-ease);
}

    .ff-home-tile:hover {
        color: var(--ff-text);
        box-shadow: var(--ff-shadow-card);
        transform: translateY(-2px);
    }

    .ff-home-tile:active {
        transform: translateY(0);
        box-shadow: var(--ff-shadow-soft);
    }

    .ff-home-tile i {
        font-size: 44px;
        color: var(--ff-text);
        width: 44px;
        flex-shrink: 0;
        text-align: center;
    }

    .ff-home-tile span {
        font-size: 22px;
        font-weight: 500;
        text-align: center;
        flex: 1;
    }

.ff-product-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 25px 0;
    background-color: var(--ff-background);
}

    .ff-product-image-wrap img {
        width: 250px;
        height: 250px;
        object-fit: contain;
        border-radius: 10px;
    }

.ff-product-discount-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    min-width: 100px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: var(--ff-shadow-soft);
    font-size: 18px;
    font-weight: 600;
}

.ff-product-details {
    padding: 20px 25px 0 25px;
}

.ff-product-price-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.ff-product-price-old {
    font-size: 18px;
    text-decoration: line-through;
    color: var(--ff-secondary-text);
}

.ff-product-price-current {
    font-size: 18px;
}

    .ff-product-price-current.ff-discounted {
        color: var(--ff-error);
    }

.ff-product-name {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.ff-product-meta {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
}

    .ff-product-meta strong {
        color: var(--ff-text);
    }

.ff-product-category {
    margin-top: 10px;
    color: var(--ff-secondary-text);
    font-size: 14px;
}

.ff-product-description {
    margin-top: 10px;
    color: var(--ff-secondary-text);
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

.ff-product-actions {
    padding: 20px 25px 25px 25px;
}

.ff-cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.ff-cart-title {
    color: var(--ff-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.ff-cart-date {
    margin-top: 5px;
    font-size: 14px;
}

.ff-cart-header img {
    max-width: 55%;
    height: 78px;
    object-fit: contain;
}

.ff-cart-total-row {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 8px;
    margin-top: 15px;
    font-size: 20px;
}

    .ff-cart-total-row .ff-cart-total-label {
        color: var(--ff-primary);
    }

    .ff-cart-total-row .ff-cart-total-old {
        color: var(--ff-primary);
        text-decoration: line-through;
    }

    .ff-cart-total-row .ff-cart-total-current {
        color: var(--ff-primary);
    }

    .ff-cart-total-row .ff-cart-total-current.ff-discounted {
        color: var(--ff-error);
    }

.ff-cart-empty {
    margin-top: 40px;
    text-align: center;
    color: var(--ff-secondary-text);
}

.ff-cart-items {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ff-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 85px;
    background-color: var(--ff-background);
    border-radius: 14px;
    padding: 10px;
    transition: box-shadow var(--ff-ease);
}

    .ff-cart-item:hover {
        box-shadow: var(--ff-shadow-soft);
    }

    .ff-cart-item img {
        width: 65px;
        height: 65px;
        object-fit: contain;
        border-radius: 10px;
        background-color: #FFFFFF;
        flex-shrink: 0;
    }

.ff-cart-item-details {
    flex: 1;
    min-width: 0;
}

    .ff-cart-item-details .ff-cart-item-name {
        font-size: 13px;
    }

    .ff-cart-item-details .ff-cart-item-cnp {
        margin-top: 2px;
        font-size: 12px;
        color: var(--ff-secondary-text);
    }

.ff-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ff-cart-item-qty {
    width: 44px;
    height: 32px;
    text-align: center;
    border: 1px solid var(--ff-primary);
    border-radius: 8px;
    background-color: #FFFFFF;
    transition: box-shadow var(--ff-ease);
}

    .ff-cart-item-qty:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(88, 184, 158, 0.2);
    }

.ff-cart-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--ff-error);
    cursor: pointer;
    transition: background-color var(--ff-ease);
}

    .ff-cart-item-remove:hover {
        background-color: rgba(255, 89, 99, 0.1);
    }

.ff-cart-footer {
    margin-top: 20px;
    text-align: center;
}

.ff-order-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ff-order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 65px;
    padding: 0 10px;
    border-radius: 14px;
    text-decoration: none;
    color: #FFFFFF;
    box-shadow: var(--ff-shadow-soft);
    transition: box-shadow var(--ff-ease), transform var(--ff-ease), opacity var(--ff-ease);
}

    .ff-order-item:hover {
        color: #FFFFFF;
        opacity: 0.92;
        box-shadow: var(--ff-shadow-card);
        transform: translateY(-1px);
    }

.ff-order-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--ff-background);
    flex-shrink: 0;
    font-size: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.ff-order-item-details {
    flex: 1;
    min-width: 0;
}

    .ff-order-item-details .ff-order-item-status {
        font-size: 14px;
        font-weight: 500;
    }

    .ff-order-item-details .ff-order-item-date {
        margin-top: 5px;
        font-size: 12px;
        opacity: 0.9;
    }

.ff-order-item-total {
    flex-shrink: 0;
}

.ff-order-empty {
    margin-top: 40px;
    text-align: center;
    color: var(--ff-secondary-text);
}

.ff-step-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ff-step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--ff-primary);
    color: #FFFFFF;
    font-size: 13px;
    flex-shrink: 0;
}

.ff-schedule-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ff-schedule-item-form {
    display: block;
}

.ff-schedule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 65px;
    padding: 0 10px;
    border-radius: 14px;
    border: 1px solid var(--ff-primary);
    background-color: var(--ff-background);
    text-align: left;
    transition: box-shadow var(--ff-ease);
}

.ff-schedule-item-active {
    background-color: #FFFFFF;
    cursor: pointer;
}

    .ff-schedule-item-active:hover {
        box-shadow: var(--ff-shadow-soft);
    }

.ff-schedule-item-details {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
}

    .ff-schedule-item-details .ff-schedule-item-reason {
        font-size: 14px;
        font-weight: 500;
        color: var(--ff-text);
    }

    .ff-schedule-item-details .ff-schedule-item-date {
        margin-top: 5px;
        font-size: 12px;
        color: var(--ff-secondary-text);
    }

.ff-schedule-item-time {
    flex-shrink: 0;
    color: var(--ff-text);
}

.ff-schedule-cancel-icon {
    flex-shrink: 0;
    color: #FF0000;
    font-size: 20px;
}

.ff-campaign-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ff-campaign-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--ff-primary);
    background-color: #FFFFFF;
}

.ff-campaign-item-discount {
    flex-shrink: 0;
    min-width: 48px;
    padding: 6px 10px;
    border-radius: 20px;
    background-color: var(--ff-primary);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.ff-campaign-item-details {
    flex: 1;
    min-width: 0;
}

    .ff-campaign-item-details .ff-campaign-item-description {
        font-size: 14px;
        font-weight: 500;
        color: var(--ff-text);
    }

    .ff-campaign-item-details .ff-campaign-item-valid {
        margin-top: 5px;
        font-size: 12px;
        color: var(--ff-secondary-text);
    }

.ff-times-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ff-time-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ff-time-row .ff-time-input {
        flex: 1;
    }

.ff-time-remove-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    color: #FF0000;
    font-size: 20px;
    cursor: pointer;
}

.ff-add-time-btn {
    display: inline-block;
    margin-top: 10px;
    background: none;
    border: none;
    padding: 0;
    color: var(--ff-primary-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.ff-days-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ff-day-chip {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--ff-primary);
    background-color: #FFFFFF;
    color: var(--ff-primary-dark);
    font-size: 13px;
    cursor: pointer;
    transition: background-color var(--ff-ease), color var(--ff-ease);
}

    .ff-day-chip.selected {
        background-color: var(--ff-primary);
        color: #FFFFFF;
    }

.ff-reminder-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ff-reminder-inline-form {
    display: contents;
}

.ff-reminder-icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.ff-reminder-toggle-on {
    color: var(--ff-primary);
    font-size: 24px;
}

.ff-reminder-toggle-off {
    color: var(--ff-secondary-text);
    font-size: 24px;
}

.ff-reminder-edit-icon {
    color: var(--ff-secondary-text);
    font-size: 18px;
}

.ff-reminder-form-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ff-reminder-cancel-edit-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--ff-secondary-text);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.ff-pending-section {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 14px;
    background-color: #FFF3D6;
    border: 1px solid #F0C36D;
}

.ff-pending-title {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #8A6300;
}

.ff-pending-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ff-pending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background-color: #FFFFFF;
}

.ff-pending-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ff-text);
}

.ff-pending-item-time {
    margin-top: 3px;
    font-size: 12px;
    color: var(--ff-secondary-text);
}

.ff-pending-item-form {
    flex-shrink: 0;
}

.ff-pending-taken-btn {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
}

.ff-settings-page {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.ff-settings-background {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    object-fit: contain;
    opacity: 0.2;
    pointer-events: none;
}

.ff-settings-title {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.ff-settings-notifications {
    position: relative;
    margin-top: 30px;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

    .ff-settings-notifications .ff-btn-primary {
        max-width: 280px;
    }

    .ff-settings-notifications #ff-notifications-message {
        text-align: center;
        font-size: 14px;
        color: var(--ff-secondary-text);
    }

.ff-prescription-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

    .ff-prescription-photos img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: var(--ff-shadow-soft);
    }

.ff-order-detail-card {
    background-color: var(--ff-background);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.ff-order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(20, 24, 27, 0.08);
}

    .ff-order-detail-row:last-child {
        border-bottom: none;
    }

.ff-order-product-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.5;
}

    .ff-order-product-table th {
        text-align: left;
        color: var(--ff-primary);
        font-weight: 600;
        padding: 8px 4px;
        border-bottom: 2px solid var(--ff-primary);
    }

    .ff-order-product-table td {
        padding: 10px 4px;
        border-bottom: 1px solid rgba(20, 24, 27, 0.06);
    }

    .ff-order-product-table td.ff-align-right {
        text-align: right;
    }

.ff-ficha-logo {
    display: flex;
    justify-content: center;
    height: 150px;
    margin-bottom: 15px;
}

    .ff-ficha-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.ff-ficha-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.ff-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.5;
}

    .ff-info-row i {
        width: 20px;
        text-align: center;
        margin-top: 2px;
        color: var(--ff-text);
    }

    .ff-info-row a {
        color: var(--ff-text);
        text-decoration: none;
    }

    .ff-info-row a.ff-underline {
        text-decoration: underline;
    }

.ff-ficha-divider {
    border: none;
    border-top: 1px solid var(--ff-text);
    margin-top: 10px;
}

.ff-chat-shell {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
}

.ff-chat-title {
    text-align: center;
    padding: 12px 15px;
    font-size: 20px;
}

.ff-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ff-chat-bubble-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

    .ff-chat-bubble-row.mine {
        justify-content: flex-end;
    }

    .ff-chat-bubble-row.others {
        justify-content: flex-start;
    }

.ff-chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ff-chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: var(--ff-shadow-soft);
}

    .ff-chat-bubble-row.mine .ff-chat-bubble {
        background-color: var(--ff-primary);
        color: #FFFFFF;
        border-bottom-right-radius: 4px;
    }

    .ff-chat-bubble-row.others .ff-chat-bubble {
        background-color: var(--ff-background);
        color: var(--ff-text);
        border-bottom-left-radius: 4px;
    }

.ff-chat-bubble img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 6px;
}

.ff-chat-time {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.75;
}

.ff-chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(20, 24, 27, 0.08);
}

#ff-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ff-chat-attach-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--ff-secondary-text);
    font-size: 22px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--ff-ease);
}

    .ff-chat-attach-btn:hover {
        background-color: var(--ff-background);
    }

.ff-chat-attach-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    color: var(--ff-primary);
    font-size: 11px;
    font-weight: 600;
}

.ff-chat-input {
    flex: 1;
    border: 1px solid var(--ff-background);
    background-color: var(--ff-background);
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    transition: border-color var(--ff-ease);
}

    .ff-chat-input:focus {
        outline: none;
        border-color: var(--ff-primary-light);
    }

.ff-chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--ff-text);
    font-size: 22px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--ff-ease);
}

    .ff-chat-send-btn:hover {
        background-color: var(--ff-background);
    }

.ff-hidden {
    display: none !important;
}

.ff-menu-tile {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-height: 120px;
    padding: 15px 30px 15px 35px;
    margin-top: 20px;
    background-color: var(--ff-background);
    border-radius: 16px;
    box-shadow: var(--ff-shadow-soft);
    text-decoration: none;
    color: var(--ff-text);
    transition: box-shadow var(--ff-ease), transform var(--ff-ease);
}

    .ff-menu-tile:first-of-type {
        margin-top: 0;
    }

    .ff-menu-tile:hover {
        color: var(--ff-text);
        box-shadow: var(--ff-shadow-card);
        transform: translateY(-2px);
    }

    .ff-menu-tile:active {
        transform: translateY(0);
        box-shadow: var(--ff-shadow-soft);
    }

    .ff-menu-tile i {
        font-size: 40px;
        color: var(--ff-secondary-text);
        flex-shrink: 0;
    }

.ff-menu-tile-title {
    font-size: 20px;
    font-weight: 600;
}

.ff-menu-tile-subtitle {
    margin-top: 3px;
    color: var(--ff-secondary-text);
    font-size: 14px;
}

.ff-menu-tile-note {
    margin-top: 3px;
    color: var(--ff-secondary-text);
    font-size: 10px;
}

.ff-select {
    width: 100%;
    border: 2px solid var(--ff-primary);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    height: auto;
    background-color: #FFFFFF;
    font-family: 'Readex Pro', sans-serif;
    color: var(--ff-text);
    transition: box-shadow var(--ff-ease);
}

    .ff-select:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(88, 184, 158, 0.2);
    }

.ff-photo-upload-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 180px;
    padding: 15px;
    background-color: #FFFFFF;
    box-shadow: var(--ff-shadow-soft);
    border-radius: 16px;
}

    .ff-photo-upload-card i {
        font-size: 90px;
        color: var(--ff-primary);
        flex-shrink: 0;
    }

    .ff-photo-upload-card p {
        color: var(--ff-primary);
        font-size: 16px;
        text-align: center;
    }

.ff-photo-upload-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 25px;
    border: 1px solid var(--ff-primary);
    background-color: var(--ff-primary);
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--ff-shadow-soft);
    transition: background-color var(--ff-ease), transform var(--ff-ease);
}

    .ff-photo-upload-btn:hover {
        background-color: var(--ff-primary-dark);
        transform: scale(1.05);
    }

    .ff-photo-upload-btn.gallery {
        top: 10px;
        right: 10px;
    }

    .ff-photo-upload-btn.camera {
        bottom: 10px;
        right: 10px;
    }

.ff-photo-count {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--ff-secondary-text);
}

.ff-chat-link-row {
    text-align: center;
    margin-top: 15px;
}

.ff-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 25px;
}

    .ff-confirmation i {
        font-size: 80px;
        color: var(--ff-primary);
        margin-bottom: 20px;
    }

    .ff-confirmation h1 {
        font-family: 'Outfit', sans-serif;
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .ff-confirmation p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .ff-confirmation .ff-btn-primary {
        max-width: 280px;
    }

.ff-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 8px 0 16px;
    background-color: #FFFFFF;
    border: 1px solid var(--ff-text);
    border-radius: 25px;
    box-shadow: var(--ff-shadow-soft);
    transition: box-shadow var(--ff-ease);
}

    .ff-search-bar:focus-within {
        box-shadow: 0 0 0 3px rgba(88, 184, 158, 0.2);
    }

    .ff-search-bar input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 14px;
        font-family: 'Readex Pro', sans-serif;
        color: var(--ff-text);
        background: transparent;
    }

    .ff-search-bar button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: none;
        color: var(--ff-text);
        font-size: 22px;
        cursor: pointer;
    }

.ff-search-results-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 15px 0;
}

    .ff-search-results-heading hr {
        flex: 1;
        border: none;
        border-top: 1.5px solid var(--ff-secondary-text);
    }

    .ff-search-results-heading span {
        font-size: 16px;
        white-space: nowrap;
    }

.ff-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.ff-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--ff-background);
    border-radius: 16px;
    box-shadow: var(--ff-shadow-soft);
    padding: 12px;
    text-decoration: none;
    color: var(--ff-text);
    transition: box-shadow var(--ff-ease), transform var(--ff-ease);
}

    .ff-product-card:hover {
        color: var(--ff-text);
        box-shadow: var(--ff-shadow-card);
        transform: translateY(-2px);
    }

    .ff-product-card:active {
        transform: translateY(0);
        box-shadow: var(--ff-shadow-soft);
    }

    .ff-product-card img {
        width: 100px;
        height: 100px;
        object-fit: contain;
    }

    .ff-product-card .ff-product-card-name {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.4;
        text-align: center;
        color: var(--ff-secondary-text);
        min-height: 34px;
    }

    .ff-product-card .ff-product-card-price {
        margin-top: 4px;
        font-weight: 600;
    }

.ff-load-more-sentinel {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    font-size: 12px;
    color: var(--ff-secondary-text);
}

    .ff-load-more-sentinel.ff-loading::after {
        content: "...";
    }

.ff-category-page {
    padding-top: 25px;
}

.ff-category-page .ff-page-content {
    padding-top: 0;
}

.ff-circle-scroll-row {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 0 25px 10px 25px;
}

.ff-circle-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 80px;
    text-decoration: none;
    color: var(--ff-text);
}

    .ff-circle-icon-item:hover {
        color: var(--ff-text);
    }

    .ff-circle-icon-item:hover .ff-circle-icon {
        box-shadow: var(--ff-shadow-card);
        transform: translateY(-2px);
    }

.ff-circle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #FFFFFF;
    box-shadow: var(--ff-shadow-soft);
    transition: box-shadow var(--ff-ease), transform var(--ff-ease);
}

    .ff-circle-icon img {
        max-width: 60px;
        max-height: 60px;
        object-fit: contain;
    }

    .ff-circle-icon i {
        font-size: 28px;
        color: var(--ff-primary);
    }

.ff-circle-icon-label {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
}

.ff-header {
    display: flex;
    justify-content: center;
    padding: 24px 24px 0 24px;
}

    .ff-header img {
        width: 70%;
        max-height: 200px;
        object-fit: contain;
        border-radius: 8px;
    }

.ff-card {
    flex: 1;
    background-color: var(--ff-background);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    box-shadow: 0 -4px 20px rgba(20, 24, 27, 0.08);
    margin-top: 24px;
    padding: 25px;
}

.ff-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.ff-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ff-secondary-text);
    margin: 5px 0 0 0;
}

.ff-form {
    margin-top: 25px;
}

.ff-field {
    margin-bottom: 16px;
    position: relative;
}

    .ff-field label {
        display: block;
        font-size: 12px;
        font-weight: 500;
        color: var(--ff-primary);
        margin-bottom: 6px;
    }

    .ff-field input.form-control {
        width: 100%;
        border: 2px solid var(--ff-primary);
        border-radius: 12px;
        padding: 12px 20px;
        font-size: 14px;
        height: auto;
        transition: border-color var(--ff-ease), box-shadow var(--ff-ease);
    }

        .ff-field input.form-control:focus {
            outline: none;
            border-color: var(--ff-primary-light);
            box-shadow: 0 0 0 3px rgba(88, 184, 158, 0.2);
        }

        .ff-field input.form-control.input-validation-error {
            border-color: var(--ff-error);
        }

            .ff-field input.form-control.input-validation-error:focus {
                box-shadow: 0 0 0 3px rgba(255, 89, 99, 0.15);
            }

    /* Native date/time controls can render their internal segments (dd/mm/yyyy +
       calendar icon) wider than the box on some Android WebView versions, pushing
       the field past the screen edge. Less padding leaves more room for that
       native content, and max-width/overflow keep the box itself from ever
       exceeding its container regardless. */
    .ff-field input[type="date"].form-control,
    .ff-field input[type="time"].form-control,
    .ff-field input[type="datetime-local"].form-control {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        overflow: hidden;
    }

    .ff-field .ff-field-icon {
        position: absolute;
        left: 16px;
        top: 44px;
        color: var(--ff-text);
    }

    .ff-field input.form-control.ff-input-with-icon {
        padding-left: 44px;
    }

    .ff-field .ff-toggle-password {
        position: absolute;
        right: 16px;
        top: 38px;
        color: var(--ff-secondary-text);
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
    }

.ff-success-message {
    color: var(--ff-primary-dark);
    background-color: rgba(88, 184, 158, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.ff-error-message {
    color: var(--ff-error);
    background-color: rgba(255, 89, 99, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.ff-install-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background-color: #FFFFFF;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(20, 24, 27, 0.15);
    z-index: 1000;
    animation: ff-slide-up 0.25s ease-out;
}

@keyframes ff-slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

    .ff-install-banner img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .ff-install-banner-text {
        flex: 1;
        font-size: 13px;
        line-height: 1.4;
        color: var(--ff-text);
    }

    .ff-install-banner-action {
        flex-shrink: 0;
        background-color: var(--ff-primary);
        color: #FFFFFF;
        border: none;
        border-radius: 8px;
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color var(--ff-ease);
    }

        .ff-install-banner-action:hover {
            background-color: var(--ff-primary-dark);
        }

    .ff-install-banner-close {
        flex-shrink: 0;
        background: none;
        border: none;
        border-radius: 50%;
        color: var(--ff-secondary-text);
        font-size: 18px;
        padding: 4px 6px;
        cursor: pointer;
        transition: background-color var(--ff-ease);
    }

        .ff-install-banner-close:hover {
            background-color: var(--ff-background);
        }

.ff-update-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(20, 24, 27, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
    animation: ff-fade-in 0.2s ease-out;
}

@keyframes ff-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ff-update-modal {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 22px;
    background-color: #FFFFFF;
    border-radius: 20px;
    box-shadow: var(--ff-shadow-raised);
    text-align: center;
}

    .ff-update-modal img {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .ff-update-modal-text {
        font-size: 14px;
        line-height: 1.5;
        color: var(--ff-text);
    }

    .ff-update-modal-action {
        width: 100%;
    }

.ff-profile-card {
    width: 250px;
    margin: 0 auto;
    padding: 20px 15px;
    background-color: var(--ff-background);
    border-radius: 16px;
    box-shadow: var(--ff-shadow-soft);
    text-align: center;
}

    .ff-profile-card .ff-profile-name {
        font-size: 16px;
        font-weight: 600;
    }

    .ff-profile-card .ff-profile-email {
        margin-top: 2px;
        font-size: 14px;
        color: var(--ff-secondary-text);
    }

.ff-delete-account-link {
    display: inline-block;
    margin-top: 10px;
    border: none;
    background: none;
    padding: 0;
    color: var(--ff-error);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity var(--ff-ease);
}

    .ff-delete-account-link:hover {
        opacity: 0.75;
    }

.ff-btn-secondary {
    display: block;
    width: 100%;
    height: 40px;
    border-radius: 50px;
    border: none;
    background-color: var(--ff-background);
    color: var(--ff-text);
    font-family: 'Readex Pro', sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    line-height: 40px;
    transition: background-color var(--ff-ease), transform var(--ff-ease);
}

    .ff-btn-secondary:hover {
        color: var(--ff-text);
        text-decoration: none;
        filter: brightness(0.97);
    }

    .ff-btn-secondary:active {
        transform: scale(0.98);
    }

.ff-validation-summary {
    color: var(--ff-error);
    font-size: 13px;
    margin-bottom: 12px;
    list-style: none;
    padding: 0;
}

.ff-btn-primary {
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 12px;
    border: none;
    background-color: var(--ff-primary);
    color: #FFFFFF;
    font-family: 'Readex Pro', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-top: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(88, 184, 158, 0.32);
    transition: background-color var(--ff-ease), box-shadow var(--ff-ease), transform var(--ff-ease);
}

    .ff-btn-primary:hover {
        background-color: var(--ff-primary-dark);
        color: #FFFFFF;
        box-shadow: 0 6px 18px rgba(88, 184, 158, 0.4);
    }

    .ff-btn-primary:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(88, 184, 158, 0.3);
    }

    .ff-btn-primary:disabled {
        background-color: var(--ff-background);
        color: var(--ff-secondary-text);
        cursor: not-allowed;
        box-shadow: none;
    }

a.ff-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

    a.ff-btn-primary:hover {
        color: #FFFFFF;
    }

.ff-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
}

    .ff-checkbox-row input[type="checkbox"] {
        margin-top: 3px;
        width: 18px;
        height: 18px;
        accent-color: var(--ff-primary);
        flex-shrink: 0;
    }

    .ff-checkbox-row label,
    .ff-checkbox-row a {
        font-size: 12px;
        line-height: 1.5;
        color: var(--ff-text);
    }

.ff-link {
    color: var(--ff-primary);
    text-decoration: underline;
    transition: color var(--ff-ease);
}

    .ff-link:hover {
        color: var(--ff-primary-dark);
    }

.ff-forgot-password {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 14px;
    color: var(--ff-primary);
    text-decoration: none;
    transition: color var(--ff-ease);
}

    .ff-forgot-password:hover {
        color: var(--ff-primary-dark);
        text-decoration: underline;
    }

.ff-register-row {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.ff-btn-outline {
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--ff-primary);
    font-size: 18px;
    font-weight: 500;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color var(--ff-ease), color var(--ff-ease);
}

    .ff-btn-outline:hover {
        color: var(--ff-primary-dark);
        background-color: rgba(88, 184, 158, 0.08);
        text-decoration: none;
    }
