/* * * * * * * * * * * * * * * * * *\
/*          USER AREA              *|
\* * * * * * * * * * * * * * * * * */

/* Form card (EditInformations, EditPassword, AddressDetail) */
.fm-user-form-card {
    background: #fff;
    border: 1px solid rgba(106, 138, 146, 0.2);
    border-radius: 10px;
    padding: 2.5rem;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.fm-user-form-label {
    font-family: "Montserrat", serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: #777;
    margin-bottom: 0.4rem;
    display: block;
}

.fm-user-form-card .form-control,
.fm-user-form-card textarea.form-control {
    border-color: rgba(106, 138, 146, 0.35);
    border-radius: 5px;
    font-family: "Lora", serif;
    font-size: 0.95rem;
    color: var(--fm-black);
}

.fm-user-form-card .form-control:focus {
    border-color: var(--fm-primary-color);
    box-shadow: 0 0 0 0.15rem rgba(106, 138, 146, 0.2);
}

/* * * * * * * * * * * * * * * * * *\
/*         DASHBOARD               *|
\* * * * * * * * * * * * * * * * * */

.fm-user-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(106, 138, 146, 0.15);
}

.fm-user-section:last-of-type {
    border-bottom: none;
}

.fm-user-section h2 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.fm-user-section-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* Info rows (prénom, nom, email) */
.fm-user-info-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(106, 138, 146, 0.08);
}

.fm-user-info-row:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.fm-user-info-label {
    font-family: "Montserrat", serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: #aaa;
    min-width: 90px;
    flex-shrink: 0;
}

.fm-user-info-value {
    font-size: 0.95rem;
    color: var(--fm-black);
}

/* Order preview (dashboard) */
.fm-order-preview {
    border: 1px solid rgba(106, 138, 146, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fm-order-preview-id {
    font-family: "Montserrat", serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.fm-order-preview-date {
    font-size: 0.82rem;
    color: #aaa;
    margin-left: 0.5rem;
}

/* Address items */
.fm-address-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(106, 138, 146, 0.1);
}

.fm-address-item:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.fm-address-text {
    font-size: 0.93rem;
    line-height: 1.7;
    color: #555;
}

.fm-address-actions {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

/* * * * * * * * * * * * * * * * * *\
/*         ORDER CARDS             *|
\* * * * * * * * * * * * * * * * * */

.fm-order-card {
    border: 1px solid rgba(106, 138, 146, 0.2);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.fm-order-card-header {
    background: rgba(106, 138, 146, 0.05);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(106, 138, 146, 0.12);
}

.fm-order-card-id {
    font-family: "Montserrat", serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.fm-order-card-date {
    font-size: 0.82rem;
    color: #aaa;
    margin-left: 0.5rem;
}

/* Status badges */
.fm-order-status {
    display: inline-block;
    font-family: "Montserrat", serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.fm-order-status--pending {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.fm-order-status--confirmed {
    background: rgba(92, 184, 92, 0.12);
    color: var(--fm-success-color);
}

.fm-order-status--cancelled {
    background: rgba(217, 83, 79, 0.12);
    color: var(--fm-danger-color);
}

/* Order table */
.fm-order-card .table {
    margin-bottom: 0;
}

.fm-order-card .table thead th {
    font-family: "Montserrat", serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: #aaa;
    background: transparent;
    border-color: rgba(106, 138, 146, 0.1);
}

.fm-order-card .table tbody td {
    font-size: 0.92rem;
    color: #444;
    border-color: rgba(106, 138, 146, 0.08);
    vertical-align: middle;
}

.fm-order-card .table tfoot td {
    font-size: 0.92rem;
    border-color: rgba(106, 138, 146, 0.1);
    background: rgba(106, 138, 146, 0.03);
}

/* * * * * * * * * * * * * * * * * *\
/*       APPOINTMENT SLOTS         *|
\* * * * * * * * * * * * * * * * * */

.fm-slots-day-title {
    font-family: "Montserrat", serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.04rem;
    color: var(--fm-primary-color);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(106, 138, 146, 0.2);
}

.fm-slot {
    border-radius: 8px;
    padding: 0.6rem 0.4rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.fm-slot--available {
    background: #fff;
    border: 1px solid rgba(106, 138, 146, 0.3);
}

.fm-slot--booked {
    background: rgba(92, 184, 92, 0.07);
    border: 1px solid rgba(92, 184, 92, 0.4);
}

.fm-slot--full {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.fm-slot-time {
    font-family: "Montserrat", serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
}

.fm-slot--full .fm-slot-time {
    color: #ccc;
}

.fm-slot--booked .fm-slot-time {
    color: var(--fm-success-color);
}

.fm-slot-booked-label {
    font-family: "Montserrat", serif;
    font-size: 0.62rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: var(--fm-success-color);
}

.fm-slot-full-label {
    font-size: 0.75rem;
    color: #ccc;
}

/* Upcoming appointments table */
.fm-appointments-table {
    width: 100%;
    border-collapse: collapse;
}

.fm-appointments-table thead tr {
    border-bottom: 2px solid rgba(106, 138, 146, 0.15);
}

.fm-appointments-table thead th {
    font-family: "Montserrat", serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: #aaa;
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.fm-appointments-table tbody tr {
    border-bottom: 1px solid rgba(106, 138, 146, 0.08);
}

.fm-appointments-table tbody td {
    padding: 0.75rem;
    font-size: 0.93rem;
    color: #555;
    vertical-align: middle;
    text-transform: capitalize;
}

/* Divider inside form cards and auth pages */
.fm-user-form-hr {
    border-color: rgba(106, 138, 146, 0.2);
    margin: 1.5rem 0 1rem;
}

/* Small hint text */
.fm-user-form-hint {
    font-size: 0.93rem;
}

/* Verification code input */
.fm-verify-code-input {
    max-width: 180px;
    letter-spacing: 0.3rem;
    font-size: 1.1rem;
}

/* Buttons inside appointment slot cards */
.fm-slot .fm-btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
}

/* Cancel button inside upcoming appointments table */
.fm-appointments-table .fm-btn {
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
}

/* Product link in order line table */
.fm-order-product-link {
    color: var(--fm-black);
}

/* Order line table column widths */
.fm-order-col-qty {
    width: 80px;
}

.fm-order-col-price {
    width: 130px;
}

@media screen and (max-width: 575px) {
    .fm-user-form-card {
        padding: 1.5rem;
    }
}
