/* Preferences page: reuses onboarding pill/button classes from common.css + onboarding.css */
@import url('onboarding.css');

body {
    background-color: #ffffff;
    color: #004E36;
}

.preferences-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 0;
    padding-bottom: 80px;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
}

/* ── Food Preferences list ── */
.preferences-list {
    margin: 16px;
    border: 1px solid #E4E4E4;
    border-radius: 12px;
    overflow: hidden;
}

.preferences-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    text-decoration: none;
    color: #004E36;
    font-family: var(--font-sans);
    font-size: 16px;
    transition: background-color 0.15s;
}

.preferences-row:not(:last-child) {
    border-bottom: 1px solid #E4E4E4;
}

.preferences-row:active {
    background-color: #f5f5f5;
}

.preferences-row-chevron {
    font-size: 22px;
    color: #999;
    font-weight: 300;
}

.preferences-content {
    padding: 16px 24px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    background-color: #ffffff;
}

#goals-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.preferences-title {
    display: flex;
    width: 375px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--color-neutrals-Earl-Grey, #E4E4E4);
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    margin: 0;
    line-height: 1.1;
    color: #2E2D2B;
}

.preferences-wrapper .onboarding-pill {
    background-color: #EBEBEB;
    color: #004E36;
    border-radius: 100px;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
}
.preferences-wrapper .onboarding-pill:hover {
    background-color: #DFDFDF;
}
.preferences-wrapper .onboarding-pill.selected {
    background-color: #2C8746;
    color: #ffffff;
    box-shadow: none;
}

.goal-description {
    text-align: center;
    color: #222527;
    font-size: 18px;
    line-height: 24px;
    padding: 0 32px;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preferences-wrapper .onboarding-pill.disabled {
    background-color: #F5F5F5;
    color: rgba(0, 78, 54, 0.3);
}

.preferences-wrapper .onboarding-next-btn {
    background-color: transparent;
    color: #006F46;
    border: 1.5px solid #006F46;
}
.preferences-wrapper .onboarding-next-btn:hover {
    background-color: rgba(0, 111, 70, 0.06);
}

.preferences-fixed-btn-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    padding: 8px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 200;
    background-color: #ffffff;
}
