/* Diner (customer) account pages — account/login.php, register.php,
   reservations.php. Layers on top of style.css (sitewide) and owner.css
   (for the shared .login-box component reused by login.php/register.php). */

.account-box .link-toggle {
    background: none;
    border: none;
    color: var(--chili);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin: -8px 0 14px;
    text-align: left;
    display: block;
}
/* Explicit background: none here too — .login-box button:hover (owner.css)
   fills the background with --chili-dark on hover, which combined with this
   rule's --chili-dark text color would make the hover text invisible
   otherwise (caught via a Playwright hover screenshot, not just reading the
   CSS). */
.account-box .link-toggle:hover { background: none; color: var(--chili-dark); text-decoration: underline; }

.account-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.account-page-header h1 { margin-bottom: 6px; }
.account-signout-btn { flex-shrink: 0; }

@media (max-width: 560px) {
    .account-page-header { flex-direction: column; align-items: flex-start; }
    .account-signout-btn { align-self: flex-start; }
}

.account-res-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0 32px;
}
.account-res-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
}
.account-res-card-past { opacity: 0.85; }
.account-res-main h3 { margin: 0 0 6px; font-size: 1.05rem; }
.account-res-main p { margin: 2px 0; }
.account-res-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .account-res-card { flex-direction: column; align-items: flex-start; }
    .account-res-side { align-items: flex-start; width: 100%; }
}
