:root {
    --fl-green: #3f6b4a;
    --fl-green-light: #e9f0e6;
    --fl-amber: #b8710f;
    --fl-amber-light: #fbe8c9;
    --fl-gray: #5a5a5a;
    --fl-gray-light: #e9e9e9;
    --fl-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* The empty-cart page's "Get a Family Lab key" link — reusing WooCommerce's
 * own .button class here inherited whatever oversized/colored styling the
 * cart page's own context (block-based cart markup, WooCommerce's own
 * link-color defaults, etc.) applies to buttons/links, instead of looking
 * like plain body text. !important because we don't know exactly which
 * cascade it's beating and don't want a specificity guessing game. */
.fl-get-key-link {
    color: #000 !important;
    font-size: 1em !important;
    font-weight: normal !important;
    text-decoration: underline !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

.fl-form p {
    margin: 0 0 16px;
}

.fl-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.fl-form input[type="text"],
.fl-form input[type="email"],
.fl-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Layout only — appearance (color, border, radius, padding, type) comes
 * from GreenLight's standard button (theme.json elements.button), which
 * only targets .wp-element-button / .wp-block-button__link. Every
 * .fl-button carries wp-element-button so a bare <button> picks it up
 * instead of falling back to the browser's default grey button. */
.fl-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

/* The reflection form sits in a lesson's wide content column, not one of
 * the narrow, mobile-first funnel pages .fl-button's 100% width is for. */
.fl-reflection .fl-button--continue {
    width: auto;
}

.fl-onboarding__nav {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.fl-onboarding__nav .fl-button {
    width: auto;
    flex: 1 1 0;
}

.fl-button--previous {
    background: transparent;
    border-color: transparent;
    color: inherit;
}

.fl-onboarding__audio {
    text-align: center;
    margin-bottom: 24px;
}

.fl-onboarding__audio-el {
    display: none;
}

.fl-button--play {
    width: auto;
    display: inline-block;
}

.fl-onboarding__prompts {
    text-align: left;
    margin: 0 0 24px;
    padding-left: 20px;
}

.fl-onboarding__prompts li {
    margin-bottom: 8px;
}

.fl-onboarding__quote-source {
    text-align: left;
    margin: 0 0 8px;
}

.fl-onboarding__quote {
    text-align: left;
    margin: 0 0 24px;
    padding: 4px 20px;
    border-left: 3px solid #ccc;
    font-style: italic;
    color: #444;
}

.fl-onboarding__quote p {
    margin: 0;
}

.fl-onboarding__relationship-groups {
    text-align: left;
    border: none;
    margin: 0 0 24px;
    padding: 0;
}

.fl-onboarding__relationship-groups h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.fl-relationship-group {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 12px 16px;
}

.fl-relationship-group summary {
    font-weight: 600;
    cursor: pointer;
}

.fl-relationship-group[open] summary {
    margin-bottom: 8px;
}

.fl-relationship-group__description {
    margin: 8px 0 12px;
    color: #666;
    font-size: 14px;
}

.fl-relationship-group__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fl-onboarding__relationship-groups .fl-relationship-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0;
}

.fl-relationship-option--other input[type="text"] {
    margin-top: 6px;
}

.fl-onboarding__question {
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 12px 16px;
}

.fl-onboarding__question legend {
    font-weight: 600;
    padding: 0;
}

.fl-onboarding__question-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.fl-onboarding__question .fl-onboarding__option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0;
}

.fl-form-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 12px;
    border-radius: 4px;
}

.fl-onboarding {
    text-align: center;
}

.fl-onboarding__progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.fl-onboarding__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
}

.fl-onboarding__dot.is-active {
    background: var(--fl-green);
}

a.fl-onboarding__dot {
    cursor: pointer;
}

a.fl-onboarding__dot:hover,
a.fl-onboarding__dot:focus-visible {
    background: rgba(63, 107, 74, 0.45);
}

.fl-onboarding__welcome-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.fl-onboarding__logo {
    max-width: 400px;
    height: auto;
}

.fl-onboarding__welcome-image {
    max-width: 100%;
    height: auto;
}

.fl-onboarding__photo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 24px;
}

.fl-onboarding__photo--book {
    width: 400px;
}

.fl-organizer__invite-callout {
    margin: 16px 0;
    padding: 16px 20px;
    background: var(--fl-green-light);
    border-left: 4px solid var(--fl-green);
    border-radius: 8px;
}

.fl-organizer__invite-callout-title {
    margin: 0 0 8px;
    font-size: 1em;
}

.fl-organizer__invite-callout p {
    margin: 0;
}

.fl-invitation {
    margin-top: 16px;
}

.fl-invitation__seats {
    margin-bottom: 12px;
}

.fl-invitation__link {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
}

.fl-invitation__link input {
    flex: 1 1 320px;
    min-width: 0;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

/* The invitation "copy link" pill is an intentional, self-contained
 * exception to .fl-button's "leave color to the theme" rule above — it's a
 * standalone brand-colored action, not a themed form/nav button. */
.fl-pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--fl-green);
    border: 1px solid var(--fl-green);
    border-radius: 999px;
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fl-pill-button:hover,
.fl-pill-button:focus-visible {
    background: #345a3e;
    border-color: #345a3e;
    color: #fff;
}

/* Transient "copied" confirmation — stands out from the pill's own resting
 * color for a couple of seconds after the click. */
.fl-pill-button.fl-button--copied {
    background: #2e7d32;
    border-color: #2e7d32;
    animation: fl-copy-pulse 0.3s ease;
}

@keyframes fl-copy-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .fl-pill-button.fl-button--copied {
        animation: none;
    }
}

/* ---- Dashboard cards --------------------------------------------------- */

.fl-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--fl-card-shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.fl-card h1,
.fl-card h2 {
    margin-top: 0;
}

.fl-greeting {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fl-greeting__body p {
    margin: 0;
}

.fl-greeting__hello {
    font-size: 17px;
}

.fl-greeting__welcome {
    color: var(--fl-gray);
    margin-top: 4px !important;
}

.fl-greeting__cta {
    margin-top: 14px !important;
}

.fl-greeting__cta .fl-button {
    max-width: 260px;
}

/* ---- Icon badges -------------------------------------------------------- */

.fl-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--fl-green-light);
    color: var(--fl-green);
}

.fl-icon-badge--lg {
    width: 48px;
    height: 48px;
}

/* ---- Stat rows (My Dashboard / seats-filled) ---------------------------- */

.fl-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
}

.fl-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 200px;
}

.fl-stat__body {
    display: flex;
    flex-direction: column;
}

.fl-stat__label {
    font-size: 13px;
    color: var(--fl-gray);
}

.fl-stat__value {
    font-weight: 700;
}

/* ---- Status / roster pills ----------------------------------------------- */

.fl-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.fl-pill--green {
    background: var(--fl-green-light);
    color: var(--fl-green);
}

.fl-pill--amber {
    background: var(--fl-amber-light);
    color: var(--fl-amber);
}

.fl-pill--gray {
    background: var(--fl-gray-light);
    color: var(--fl-gray);
}

/* ---- Roster list ---------------------------------------------------------- */

.fl-roster-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.fl-roster-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
}

.fl-roster-row:first-child {
    border-top: none;
}

.fl-roster-row__name {
    flex: 1 1 auto;
}

.fl-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e6e3ef;
    color: #4a4460;
    font-weight: 700;
    font-size: 13px;
}

/* ---- Course progress (day-by-day lesson grid) ---------------------------- */

.fl-course-progress {
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.fl-course-progress__summary {
    cursor: pointer;
    font-weight: 700;
    list-style: revert;
}

.fl-course-progress__summary::marker {
    color: var(--fl-gray);
}

.fl-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.fl-day-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 10px;
    background: #f5f5f4;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

a.fl-day-card:hover,
a.fl-day-card:focus-visible {
    background: var(--fl-green-light);
    transform: translateY(-1px);
}

span.fl-day-card {
    color: #bbb;
    cursor: default;
}

.fl-day-card--complete {
    background: var(--fl-green-light);
    color: var(--fl-green);
}

a.fl-day-card--complete:hover,
a.fl-day-card--complete:focus-visible {
    background: #d9e8d4;
}

.fl-day-card__check {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--fl-green);
    color: #fff;
}

.fl-partner-dashboard__table,
.fl-partner-dashboard__drillin {
    width: 100%;
    border-collapse: collapse;
}

.fl-partner-dashboard__table th,
.fl-partner-dashboard__table td,
.fl-partner-dashboard__drillin th,
.fl-partner-dashboard__drillin td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.fl-funnel-page {
    display: flex;
    justify-content: center;
    padding: 48px 24px;
}

.fl-funnel-page__inner {
    width: 100%;
    max-width: 480px;
}

.fl-funnel-page__inner--wide {
    max-width: 960px;
}

.fl-block-placeholder__card {
    padding: 16px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    margin-bottom: 12px;
    background: #f9f9f9;
}

/* Product page layout (see Commerce\ProductPageCleanup): the theme's own
 * product-column CSS assumes WooCommerce's full gallery markup (multiple
 * nested wrapper elements) for sizing the two columns and aligning them —
 * our plain single <img> replacement doesn't have that structure, which is
 * what threw the columns out of alignment. Laying the two columns out
 * ourselves here means the result no longer depends on markup we
 * deliberately don't render. */
.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
}

.single-product div.product > .fl-product-gallery,
.single-product div.product > .summary.entry-summary {
    flex: 1 1 360px;
    min-width: 0;
    margin: 0;
}

.single-product div.product > .fl-product-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.single-product div.product .summary.entry-summary .price {
    font-size: 30px;
}

/* ---- Form notices ---------------------------------------------------------- */

.fl-form-notice {
    background: var(--fl-green-light);
    border: 1px solid var(--fl-green);
    padding: 12px;
    border-radius: 4px;
}

