.customer-main {
    background: var(--ivory);
    min-height: calc(100vh - 180px);
    padding: 2.4rem 0 4rem;
}

.customer-nav-name {
    color: var(--muted);
    font-size: .82rem;
    padding: .5rem .7rem;
}

.customer-flash {
    border-left: 3px solid var(--teal);
    margin-bottom: 1.2rem;
    padding: .8rem 1rem;
}

.customer-flash.is-success {
    background: #e5f1ed;
    color: #245c4b;
}

.customer-flash.is-error {
    background: #f7edef;
    border-left-color: var(--red);
    color: #8d1627;
}

.customer-heading {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.7rem;
}

.customer-heading h1,
.store-auth-panel h1 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 .45rem;
}

.customer-heading p,
.store-auth-panel > p {
    color: var(--muted);
    margin: 0;
}

.customer-section-title {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
    margin: 2.2rem 0 1rem;
}

.customer-book-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-book {
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.customer-book img {
    aspect-ratio: .74;
    background: var(--soft);
    object-fit: cover;
    width: 100%;
}

.customer-book-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.customer-book-body h3 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    line-height: 1.3;
}

.customer-book-body p {
    color: var(--muted);
    font-size: .85rem;
}

.customer-book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: auto;
    padding-top: .5rem;
}

.customer-empty {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 1.6rem;
}

.customer-panel {
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 1.2rem;
    padding: 1.3rem;
}

.author-profile-form {
    max-width: 860px;
}

.author-profile-form .form-label {
    color: var(--navy);
    font-weight: 700;
}

.author-profile-image-preview {
    margin-bottom: .7rem;
}

.author-profile-image-preview img {
    border: 1px solid var(--line);
    border-radius: 50%;
    height: 104px;
    object-fit: cover;
    width: 104px;
}

.author-profile-visibility {
    align-items: center;
    background: var(--ivory);
    border: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.author-profile-visibility strong {
    color: var(--navy);
}

.author-profile-visibility p {
    color: var(--muted);
    font-size: .85rem;
    margin-top: .25rem;
}

.author-public-page {
    background: var(--ivory);
    min-height: calc(100vh - 150px);
    padding: clamp(2rem, 6vw, 5rem) 0;
}

.author-profile-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .8rem 0;
}

.author-profile-nav .container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.author-profile-nav > .container > a:last-child {
    color: var(--teal);
    font-weight: 700;
}

.author-public-card {
    background: #fff;
    border: 1px solid var(--line);
    margin: 0 auto;
    max-width: 920px;
    padding: clamp(1.3rem, 4vw, 2.5rem);
}

.author-public-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
}

.author-public-photo,
.author-public-initial {
    align-items: center;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--navy);
    display: flex;
    flex: 0 0 128px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    height: 128px;
    justify-content: center;
    object-fit: cover;
    width: 128px;
}

.author-public-heading h1,
.author-not-found h1 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: .25rem 0 0;
}

.author-public-bio {
    border-top: 1px solid var(--line);
    margin-top: 1.7rem;
    padding-top: 1.5rem;
}

.author-public-bio h2,
.author-public-works h2 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    margin-bottom: .8rem;
}

.author-public-bio p {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
    white-space: normal;
}

.author-public-works {
    margin: 2rem auto 0;
    max-width: 920px;
}

.author-public-works > ul {
    background: #fff;
    border: 1px solid var(--line);
    list-style: none;
    margin: 0;
    padding: .3rem 1rem;
}

.author-public-works > ul li {
    border-bottom: 1px solid var(--line);
    padding: .8rem 0;
}

.author-public-works > ul li:last-child {
    border-bottom: 0;
}

.author-public-works > ul a {
    color: var(--teal);
    font-weight: 700;
}

.author-public-works .customer-book-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.author-not-found {
    background: #fff;
    border: 1px solid var(--line);
    margin: 0 auto;
    max-width: 720px;
    padding: clamp(1.5rem, 5vw, 3rem);
}

.author-not-found p {
    color: var(--muted);
    margin: 1rem 0 1.5rem;
}

.customer-panel h2 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    margin: 0 0 .8rem;
}

.customer-checkout-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.customer-checkout-list li {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .7rem 0;
}

.customer-checkout-total {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 1rem 0;
}

.customer-checkout-note {
    color: var(--muted);
    font-size: .82rem;
}

.customer-payment-options {
    border: 0;
    display: grid;
    gap: .6rem;
    margin: 1.2rem 0;
    padding: 0;
}

.customer-payment-options legend,
.customer-bank-details h3 {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

.customer-payment-option {
    align-items: flex-start;
    border: 1px solid var(--line);
    cursor: pointer;
    display: flex;
    gap: .7rem;
    padding: .8rem;
}

.customer-payment-option input {
    margin-top: .25rem;
}

.customer-payment-option strong,
.customer-payment-option small {
    display: block;
}

.customer-payment-option small {
    color: var(--muted);
    margin-top: .2rem;
}

.customer-bank-details {
    background: var(--ivory);
    border: 1px solid var(--line);
    padding: 1rem;
}

.customer-bank-details dl {
    margin: 0;
}

.customer-bank-details dl > div {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    justify-content: space-between;
    padding: .35rem 0;
}

.customer-bank-details dt {
    color: var(--muted);
    font-weight: 500;
}

.customer-bank-details dd {
    color: var(--navy);
    font-weight: 700;
    margin: 0;
}

.customer-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .7);
    font-size: .78rem;
    padding: 1.2rem 0;
}

.customer-footer a {
    color: rgba(255, 255, 255, .85);
}

.store-auth-page {
    align-items: center;
    background: var(--ivory);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.store-auth-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    max-width: 470px;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    width: 100%;
}

.store-auth-brand {
    align-items: center;
    color: var(--navy);
    display: flex;
    gap: .75rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.store-auth-brand img {
    height: 48px;
    object-fit: contain;
    width: 48px;
}

.store-auth-brand strong,
.store-auth-brand small {
    display: block;
}

.store-auth-brand small {
    color: var(--muted);
    font-size: .73rem;
    margin-top: .2rem;
}

.store-auth-panel .section-kicker {
    margin-bottom: .65rem;
}

.store-auth-panel > p {
    margin-bottom: 1.3rem;
}

.store-auth-panel .form-label {
    color: var(--navy);
    font-size: .84rem;
    font-weight: 700;
}

.store-auth-panel .form-control {
    min-height: 44px;
}

.store-auth-panel .btn {
    min-height: 44px;
    width: 100%;
}

.store-auth-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .84rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.store-auth-privacy {
    color: var(--muted);
    font-size: .72rem;
    margin: 1rem 0 0 !important;
}

@media (max-width: 991.98px) {
    .customer-book-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .customer-book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479.98px) {
    .customer-book-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}