
* {
    box-sizing: border-box;
}

html {
    background: #f8f4f1;
}

body {
    margin: 0;
    color: #625c58;
    background:
        linear-gradient(
            180deg,
            #fffdfb 0%,
            #f8f4f1 100%
        );
    font-family:
        "Century Gothic",
        CenturyGothic,
        "Jost",
        Arial,
        sans-serif;
}

.fps-account-header {
    padding: 15px 16px 5px;
    text-align: center;
}

.fps-account-header img {
    display: block;
    width: min(430px, 88vw);
    height: auto;
    margin: 0 auto;
}

.fps-account-main {
    width: min(920px, calc(100% - 26px));
    margin: 0 auto;
    padding: 8px 0 35px;
}

.fps-account-back {
    display: inline-block;
    margin: 0 0 10px;
    color: #718069;
    font-size: .64rem;
    text-decoration: none;
}

.fps-account-intro,
.fps-account-welcome,
.fps-account-history,
.fps-account-card {
    background: #fffdfb;
    border: 1px solid rgba(105,96,91,.10);
    border-radius: 10px;
    box-shadow: 0 7px 24px rgba(82,70,69,.05);
}

.fps-account-intro {
    padding: 22px 20px;
    text-align: center;
}

.fps-account-intro h1,
.fps-account-welcome h1 {
    margin: 2px 0 6px;
    color: #5d6956;
    font-size: 1.25rem;
    font-weight: 500;
}

.fps-account-intro p:last-child,
.fps-account-welcome p:last-child {
    max-width: 570px;
    margin: 0 auto;
    color: #807873;
    font-size: .70rem;
    line-height: 1.6;
}

.fps-account-eyebrow {
    margin: 0 0 2px;
    color: #a17c85;
    font-size: .52rem;
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.fps-account-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 11px;
}

.fps-account-card {
    padding: 18px;
}

.fps-account-card.create {
    border-top: 4px solid #e7c8cf;
}

.fps-account-card:first-child {
    border-top: 4px solid #ccd9c5;
}

.fps-account-card h2,
.fps-account-history h2 {
    margin: 2px 0 13px;
    color: #5e6957;
    font-size: .96rem;
    font-weight: 500;
}

.fps-account-card label {
    display: block;
    margin-bottom: 9px;
}

.fps-account-card label span {
    display: block;
    margin: 0 0 3px 2px;
    color: #766f6b;
    font-size: .57rem;
    font-weight: 600;
}

.fps-account-card input {
    width: 100%;
    min-height: 41px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid rgba(103,95,90,.18);
    border-radius: 6px;
    color: #5f5956;
    font: inherit;
    font-size: .70rem;
}

.fps-account-card input:focus {
    outline: 2px solid rgba(132,155,120,.15);
    border-color: #aabc9f;
}

.fps-account-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 8px 15px;
    background: #e5ede0;
    border: 1px solid rgba(123,145,111,.20);
    border-radius: 6px;
    color: #566250;
    font: inherit;
    font-size: .62rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.fps-account-card .fps-account-primary {
    width: 100%;
    margin-top: 2px;
}

.fps-account-primary.blush {
    background: #f1dfe3;
    border-color: rgba(175,130,140,.20);
    color: #715c61;
}

.fps-account-message {
    margin: 10px 0;
    padding: 9px 12px;
    background: #edf3e9;
    border-radius: 6px;
    color: #60705a;
    font-size: .62rem;
    text-align: center;
}

.fps-account-message.error {
    background: #f7e8ea;
    color: #93636d;
}

.fps-account-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
}

.fps-account-welcome p:last-child {
    margin: 0;
}

.fps-account-logout button {
    padding: 7px 10px;
    background: #fff;
    border: 1px solid rgba(116,106,101,.16);
    border-radius: 5px;
    color: #7c7470;
    font: inherit;
    font-size: .55rem;
    cursor: pointer;
}

.fps-account-history {
    margin-top: 11px;
    padding: 16px;
}

.fps-account-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.fps-account-history h2 {
    margin-bottom: 0;
}

.fps-account-order-count {
    padding: 5px 8px;
    background: #f1e4e7;
    border-radius: 5px;
    color: #7a6268;
    font-size: .53rem;
    font-weight: 600;
}

.fps-account-empty {
    padding: 25px 15px;
    background: #f7f8f5;
    border-radius: 7px;
    text-align: center;
}

.fps-account-empty h3 {
    margin: 0 0 5px;
    color: #626d5b;
    font-size: .82rem;
    font-weight: 500;
}

.fps-account-empty p {
    max-width: 450px;
    margin: 0 auto 12px;
    color: #89817d;
    font-size: .63rem;
    line-height: 1.55;
}

.fps-account-order-list {
    display: grid;
    gap: 9px;
}

.fps-account-order {
    display: grid;
    grid-template-columns: 118px minmax(0,1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(106,98,94,.10);
    border-radius: 8px;
}

.fps-account-order-image {
    min-height: 145px;
    background: #f1ece9;
}

.fps-account-order-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 145px;
    object-fit: cover;
}

.fps-account-order-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c59da6;
    font-size: 1.4rem;
}

.fps-account-order-body {
    padding: 11px 12px;
}

.fps-account-order-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.fps-account-order-date {
    margin-bottom: 2px;
    color: #9a918d;
    font-size: .50rem;
}

.fps-account-order h3 {
    margin: 0;
    color: #5e6858;
    font-size: .78rem;
    font-weight: 600;
}

.fps-account-order-total {
    color: #6d7965;
    font-size: .66rem;
    font-weight: 600;
    white-space: nowrap;
}

.fps-account-order-category {
    margin-top: 3px;
    color: #9c7b83;
    font-size: .53rem;
}

.fps-account-memory {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin-top: 9px;
    padding: 7px 8px;
    background: #f3f6f0;
    border-radius: 5px;
}

.fps-account-memory div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fps-account-memory span {
    color: #938b86;
    font-size: .45rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fps-account-memory strong {
    color: #626d5b;
    font-size: .57rem;
    font-weight: 600;
}

.fps-account-order-description {
    margin: 8px 0 0;
    color: #817a76;
    font-size: .58rem;
    line-height: 1.5;
}

.fps-account-order-number {
    margin-top: 7px;
    color: #a09894;
    font-size: .46rem;
}

@media (max-width: 650px) {

    .fps-account-main {
        width: min(100% - 20px, 920px);
    }

    .fps-account-intro {
        padding: 17px 14px;
    }

    .fps-account-auth-grid {
        grid-template-columns: 1fr;
    }

    .fps-account-welcome {
        align-items: flex-start;
        padding: 15px;
    }

    .fps-account-history {
        padding: 12px;
    }

    .fps-account-order {
        grid-template-columns: 94px minmax(0,1fr);
    }

    .fps-account-order-image,
    .fps-account-order-image img {
        min-height: 132px;
    }

    .fps-account-order-body {
        padding: 9px;
    }
}

/* ============================================================
   DESKTOP FLORAL ORDER CARDS
   Mobile <= 650px intentionally unchanged.
============================================================ */

@media (min-width: 651px) {

    .fps-account-order {
        grid-template-columns: 190px minmax(0, 1fr);
        cursor: pointer;
        transition:
            transform .16s ease,
            box-shadow .16s ease;
    }

    .fps-account-order:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(69, 78, 65, .12);
    }

    .fps-account-order:focus-visible {
        outline: 2px solid #9c7b83;
        outline-offset: 3px;
    }

    .fps-account-order-image {
        margin: 14px 0 14px 14px;
        min-height: 180px;
        border-radius: 10px;
        overflow: hidden;
        background: #f7f4f2;
    }

    .fps-account-order-image img {
        width: 100%;
        height: 100%;
        min-height: 180px;
        object-fit: cover;
        display: block;
    }

    .fps-account-order-body {
        padding: 20px 22px;
    }

    .fps-account-order-top {
        gap: 18px;
    }

    .fps-account-order-date {
        margin-bottom: 5px;
        font-size: .78rem;
    }

    .fps-account-order h3 {
        font-size: 1.08rem;
        line-height: 1.3;
    }

    .fps-account-order-total {
        font-size: .95rem;
    }

    .fps-account-order-category {
        margin-top: 6px;
        font-size: .78rem;
    }

    .fps-account-memory {
        gap: 8px 24px;
        margin-top: 13px;
        padding: 11px 12px;
        border-radius: 8px;
    }

    .fps-account-memory span {
        font-size: .66rem;
    }

    .fps-account-memory strong {
        font-size: .82rem;
        line-height: 1.35;
    }

    .fps-account-order-description {
        margin-top: 12px;
        font-size: .84rem;
        line-height: 1.6;
    }

    .fps-account-order-number {
        margin-top: 11px;
        font-size: .7rem;
    }


    /* Full desktop order view */

    .fps-account-order-modal-backdrop {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px;
        background: rgba(37, 40, 36, .58);
    }

    .fps-account-order-modal {
        position: relative;
        width: min(920px, calc(100vw - 60px));
        max-height: calc(100vh - 60px);
        overflow: auto;
        padding: 28px;
        border-radius: 20px;
        background: #fff;
        box-shadow: 0 24px 70px rgba(25, 28, 24, .28);
    }

    .fps-account-order-modal-close {
        position: absolute;
        top: 14px;
        right: 16px;
        z-index: 3;
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: #f4eeee;
        color: #5e6858;
        font-size: 1.35rem;
        line-height: 1;
        cursor: pointer;
    }

    .fps-account-order-modal-title {
        margin: 0 48px 18px 0;
        color: #5e6858;
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .fps-account-order-modal .fps-account-order {
        grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
        cursor: default;
        transform: none;
        box-shadow: none;
        border: 1px solid #eee7e4;
    }

    .fps-account-order-modal .fps-account-order:hover {
        transform: none;
        box-shadow: none;
    }

    .fps-account-order-modal .fps-account-order-image {
        margin: 18px 0 18px 18px;
        min-height: 360px;
    }

    .fps-account-order-modal .fps-account-order-image img {
        min-height: 360px;
    }

    .fps-account-order-modal .fps-account-order-body {
        padding: 30px;
    }

    .fps-account-order-modal .fps-account-order-date {
        font-size: .9rem;
    }

    .fps-account-order-modal .fps-account-order h3 {
        font-size: 1.45rem;
    }

    .fps-account-order-modal .fps-account-order-total {
        font-size: 1.15rem;
    }

    .fps-account-order-modal .fps-account-order-category {
        font-size: .9rem;
    }

    .fps-account-order-modal .fps-account-memory span {
        font-size: .72rem;
    }

    .fps-account-order-modal .fps-account-memory strong {
        font-size: .95rem;
    }

    .fps-account-order-modal .fps-account-order-description {
        font-size: .95rem;
    }

    .fps-account-order-modal .fps-account-order-number {
        font-size: .8rem;
    }

}


/* ============================================================
   EXPANDED ORDER RECEIPT DETAILS
   Hidden in normal order list and on mobile.
============================================================ */

.fps-account-order-details {
    display: none;
}


@media (min-width: 651px) {

    .fps-account-order-modal .fps-account-order-details {
        display: block;
        margin-top: 22px;
        padding-top: 20px;
        border-top: 1px solid #ebe5e1;
    }

    .fps-account-order-modal .fps-account-order-details-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .fps-account-order-modal .fps-account-detail-item,
    .fps-account-order-modal .fps-account-detail-wide {
        padding: 12px 14px;
        border-radius: 9px;
        background: #f7f5f3;
    }

    .fps-account-order-modal .fps-account-detail-item span,
    .fps-account-order-modal .fps-account-detail-wide span {
        display: block;
        margin-bottom: 4px;
        color: #948b87;
        font-size: .68rem;
        font-weight: 500;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .fps-account-order-modal .fps-account-detail-item strong,
    .fps-account-order-modal .fps-account-detail-wide strong {
        display: block;
        color: #596451;
        font-size: .92rem;
        font-weight: 600;
        line-height: 1.45;
    }

    .fps-account-order-modal .fps-account-detail-item.total {
        background: #eef2eb;
    }

    .fps-account-order-modal .fps-account-detail-item.total strong {
        font-size: 1.05rem;
    }

    .fps-account-order-modal .fps-account-detail-wide {
        margin-top: 12px;
    }

}



/* ============================================================
   FPS CUSTOMER ONE HOUR CANCELLATION
============================================================ */

.fps-account-cancel-zone {
    margin-top: 16px;
}

.fps-account-cancel-box,
.fps-account-contact-cancel {
    padding: 13px 14px;
    border-radius: 9px;
}

.fps-account-cancel-box {
    background: #fff5f6;
    border: 1px solid #ecd2d7;
}

.fps-account-contact-cancel {
    background: #f7f5f3;
    border: 1px solid #e8e1dd;
}

.fps-account-cancel-box > strong,
.fps-account-contact-cancel > strong {
    display: block;
    color: #76565e;
    font-size: .82rem;
}

.fps-account-cancel-box p,
.fps-account-contact-cancel p {
    margin: 4px 0 0;
    color: #7b716d;
    font-size: .76rem;
    line-height: 1.45;
}

.fps-account-cancel-box form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.fps-account-cancel-box input[type="text"] {
    min-width: 0;
    flex: 1;
    padding: 9px 10px;
    border: 1px solid #ddc8cd;
    border-radius: 7px;
    background: #fff;
    font: inherit;
    font-size: .78rem;
}

.fps-account-cancel-box button {
    border: 0;
    border-radius: 7px;
    padding: 9px 13px;
    background: #985563;
    color: #fff;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}


/*
 * Desktop list remains clean.
 * Cancellation controls appear inside the click-open receipt.
 */
@media (min-width:651px) {

    .fps-account-order-list
    > .fps-account-order
    .fps-account-cancel-zone {
        display: none;
    }

    .fps-account-order-modal
    .fps-account-cancel-zone {
        display: block;
    }
}


@media (max-width:650px) {

    .fps-account-cancel-box form {
        flex-direction: column;
    }

    .fps-account-cancel-box button {
        width: 100%;
    }
}


/* ============================================================
   NEW ACCOUNT SHOPPING BUTTON
============================================================ */

.fps-account-created-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 340px);
    min-height: 50px;
    margin: 16px auto 0;
    padding: 13px 24px;
    border-radius: 999px;
    background: #dca5ad;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    transition:
        transform .15s ease,
        opacity .15s ease;
}

.fps-account-created-button:hover {
    transform: translateY(-1px);
    opacity: .94;
}

.fps-account-created-button:focus-visible {
    outline: 3px solid rgba(220, 165, 173, .3);
    outline-offset: 3px;
}

@media (max-width: 650px) {

    .fps-account-created-button {
        width: 100%;
        min-height: 52px;
        font-size: 1rem;
    }

}


/* ============================================================
   CUSTOMER ACCOUNT DETAILS
============================================================ */

.fps-account-profile {
    margin-top: 11px;
    padding: 16px;
    background: #fffdfb;
    border: 1px solid rgba(105,96,91,.10);
    border-radius: 10px;
    box-shadow: 0 7px 24px rgba(82,70,69,.05);
}

.fps-account-profile-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.fps-account-profile h2 {
    margin: 2px 0 0;
    color: #5e6957;
    font-size: .96rem;
    font-weight: 500;
}

.fps-account-number {
    flex: 0 0 auto;
    padding: 5px 8px;
    background: #f1e4e7;
    border-radius: 5px;
    color: #7a6268;
    font-size: .55rem;
    font-weight: 700;
}

.fps-account-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.fps-account-profile label {
    display: block;
    min-width: 0;
}

.fps-account-profile label > span {
    display: block;
    margin: 0 0 3px 2px;
    color: #766f6b;
    font-size: .57rem;
    font-weight: 600;
}

.fps-account-profile input {
    width: 100%;
    min-height: 41px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid rgba(103,95,90,.18);
    border-radius: 6px;
    color: #5f5956;
    font: inherit;
    font-size: .70rem;
    box-sizing: border-box;
}

.fps-account-profile input:focus {
    outline: 2px solid rgba(132,155,120,.15);
    border-color: #aabc9f;
}

.fps-account-profile label small {
    display: block;
    margin: 5px 2px 0;
    color: #918883;
    font-size: .55rem;
    line-height: 1.45;
}

.fps-account-save-details {
    width: 100%;
    margin-top: 13px;
}

@media (min-width: 651px) {

    .fps-account-profile-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

    .fps-account-profile-grid .full {
        grid-column: 1 / -1;
    }

}



/* ============================================================
   PASSWORD VISIBILITY TOGGLE
============================================================ */

.fps-password-wrap {
    position: relative;
    width: 100%;
}

.fps-password-wrap input {
    padding-right: 44px !important;
}

.fps-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    padding: 7px;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #807873;
    cursor: pointer;
}

.fps-password-toggle:hover,
.fps-password-toggle:focus-visible {
    background: rgba(220,165,173,.12);
    outline: none;
}

.fps-password-toggle svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.fps-password-toggle.showing {
    color: #5e6957;
}

.fps-account-password-card {
    border-top: 4px solid #ccd9c5;
}



/* ============================================================
   CUSTOMER WORKSHOP EMAIL PREFERENCE
============================================================ */

.fps-account-workshop-card {
    margin-top: 11px;
}

.fps-account-workshop-choice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 14px;
    padding: 13px 14px;
    background: #f7f8f5;
    border: 1px solid rgba(105, 96, 91, .10);
    border-radius: 8px;
    cursor: pointer;
}

.fps-account-workshop-choice input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: #718069;
}

.fps-account-workshop-choice span {
    display: block;
}

.fps-account-workshop-choice strong {
    display: block;
    margin-bottom: 3px;
    color: #5e6957;
    font-size: .72rem;
}

.fps-account-workshop-choice small {
    display: block;
    color: #807873;
    font-size: .64rem;
    line-height: 1.5;
}

