:root {
    --background: #171717;
    --surface: #222222;
    --text: #f2eee7;
    --muted: #aaa39a;
    --accent: #c6ad83;
    --line: rgba(198,173,131,.25);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 300;
}

.customer-header {
    text-align: center;
    padding: 38px 20px 30px;
    border-bottom: 1px solid var(--line);
}

.customer-brand {
    font-family: Georgia, serif;
    font-size: 25px;
    letter-spacing: 5px;
}

.customer-brand span {
    font-size: 13px;
    letter-spacing: 4px;
    margin-left: 5px;
}

.customer-tagline {
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 2px;
}

.customer-main {
    width: min(1500px, 94%);
    margin: 0 auto;
    min-height: 65vh;
}

.gallery-intro {
    text-align: center;
    padding: 65px 20px 48px;
}

.eyebrow {
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 17px;
}

.gallery-intro h1 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(30px, 5vw, 48px);
    margin: 0 0 18px;
}

.gallery-meta {
    color: var(--muted);
    font-size: 13px;
    margin: 6px 0;
}

.gallery-description {
    max-width: 650px;
    margin: 24px auto 0;
    color: #d0c9bf;
    font-size: 14px;
    line-height: 1.8;
}

.customer-section {
    margin: 0 0 65px;
}

.customer-section h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 24px;
    border-bottom: 1px solid var(--line);
    padding: 0 0 15px;
    margin: 0 0 22px;
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.customer-photo {
    display: block;
    overflow: hidden;
    background: var(--surface);
    aspect-ratio: 3 / 4;
}

.customer-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.customer-photo:hover img {
    transform: scale(1.035);
    opacity: .88;
}

.password-panel {
    width: min(440px, 100%);
    margin: 0 auto 100px;
    padding: 35px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
}

.password-panel h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 25px;
}

.password-panel p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.password-panel input {
    width: 100%;
    padding: 14px;
    margin: 15px 0 12px;
    background: #171717;
    border: 1px solid #514a40;
    color: var(--text);
    font-size: 15px;
}

.password-panel button {
    width: 100%;
    padding: 14px;
    border: 0;
    background: var(--accent);
    color: #171717;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.password-panel button:hover {
    background: #ddc9a7;
}

.password-panel .password-error {
    color: #e5a09a;
}

.empty-gallery {
    text-align: center;
    color: var(--muted);
    padding: 50px 20px;
}

.customer-footer {
    border-top: 1px solid var(--line);
    padding: 30px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 3px;
}

.customer-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.96);
    align-items: center;
    justify-content: center;
    padding: 65px 70px;
}

.customer-lightbox.visible {
    display: flex;
}

.customer-lightbox img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.customer-lightbox button {
    position: absolute;
    background: transparent;
    border: 0;
    color: white;
    cursor: pointer;
    font-size: 35px;
    padding: 10px 18px;
}

.customer-lightbox button:hover {
    color: var(--accent);
}

.customer-lightbox .lightbox-close {
    top: 12px;
    right: 18px;
    font-size: 42px;
}

.customer-lightbox .lightbox-prev {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.customer-lightbox .lightbox-next {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    color: #ccc;
    font-size: 12px;
    letter-spacing: 2px;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 1000px) {
    .customer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .customer-header { padding: 28px 12px 23px; }
    .customer-brand { font-size: 21px; letter-spacing: 3px; }
    .customer-brand span { font-size: 11px; letter-spacing: 2px; }
    .gallery-intro { padding: 45px 10px 35px; }
    .customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .customer-section { margin-bottom: 45px; }
    .password-panel { padding: 25px 20px; }
    .customer-lightbox { padding: 60px 12px; }
    .customer-lightbox img { max-width: 96vw; max-height: 78vh; }
    .customer-lightbox .lightbox-prev { left: 0; }
    .customer-lightbox .lightbox-next { right: 0; }
}

/* CUSTOMER SHOPPING */

.shopping-panel {
    margin: 0 auto 55px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.shopping-panel h2,
.cart-summary h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 25px;
    margin: 0 0 12px;
}

.shopping-intro {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.package-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.package-option {
    display: block;
    padding: 20px 12px;
    background: #171717;
    border: 1px solid var(--line);
    color: var(--text);
    text-align: center;
    cursor: pointer;
}

.package-option.selected {
    border-color: var(--accent);
    background: #302a21;
}

.package-option strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 400;
    margin-bottom: 8px;
}

.package-option span {
    color: var(--accent);
    font-size: 14px;
}

.package-option button,
.photo-select-button {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 15px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--text);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

.package-option.selected button,
.photo-select-button.selected {
    background: var(--accent);
    color: #171717;
}

.photo-card {
    min-width: 0;
}

.photo-select-button {
    width: 100%;
    margin-top: 8px;
}

.photo-select-button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.cart-summary {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 30px 0;
    padding: 18px 22px;
    background: #29251f;
    border: 1px solid var(--accent);
}

.cart-summary p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.shopping-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 13px;
}

@media (max-width: 650px) {
    .shopping-panel { padding: 20px 14px; }
    .cart-summary { padding: 14px; }
    .package-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* PHOTO SELECTION GRID */

.photo-card {
    min-width: 0;
}

.photo-card .customer-photo {
    width: 100%;
}

.photo-card form {
    margin: 0;
}

.photo-card .shopping-intro {
    margin: 10px 0 0;
    text-align: center;
    font-size: 11px;
}

.photo-select-button {
    width: 100%;
    margin-top: 9px;
    padding: 12px 6px;
}

.photo-select-button.selected {
    background: var(--accent);
    color: #171717;
}

/* CUSTOMER CREATIVE SELECTIONS */

.creative-edit-form {
    margin: 8px 0 0 !important;
    padding: 9px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.photo-select-button,
.creative-select-button {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px 8px;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background: var(--accent);
    color: #171717;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.photo-select-button:hover,
.creative-select-button:hover {
    background: #d8c5a4;
    border-color: #d8c5a4;
}

.photo-select-button.selected,
.creative-select-button.selected {
    background: #302a21;
    color: var(--accent);
    border-color: var(--accent);
}

.creative-edit-form label {
    display: block;
    margin: 2px 0 8px;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.creative-edit-form textarea {
    display: block;
    width: 100%;
    min-height: 75px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #171717;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
}

.creative-edit-form textarea:focus {
    outline: 1px solid var(--accent);
    border-color: var(--accent);
}


/* DISTINCT CREATIVE UPGRADE OPTIONS */

.creative-edit-form {
    margin-top: 10px !important;
    padding: 0;
    border: 0;
    background: transparent;
}

.creative-select-button {
    min-height: 48px;
    padding: 13px 10px;
    background: linear-gradient(135deg, #302a21, #211e19);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .7px;
    text-transform: none;
    box-shadow: inset 0 0 12px rgba(198,173,131,.06);
}

.creative-edit-form:has(textarea) {
    padding: 13px;
    border: 1px solid var(--line);
    background: #22201c;
}

.creative-select-button:hover {
    background: var(--accent);
    color: #171717;
    box-shadow: 0 0 12px rgba(198,173,131,.16);
}

.creative-select-button.selected {
    background: var(--accent);
    color: #171717;
}


/* PREMIUM CREATIVE PRODUCT CARDS */

.creative-option {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 0 !important;
    padding: 16px 14px;
    border-radius: 3px;
}

.creative-option-standard {
    background: #c6ad83;
    border: 1px solid #d8c5a4;
    color: #171717;
}

.creative-option-advanced {
    background: linear-gradient(145deg, #29251f, #171717);
    border: 1px solid var(--accent);
    color: var(--text);
    box-shadow: inset 0 0 18px rgba(198,173,131,.08);
}

.creative-option-copy h3 {
    margin: 0 0 6px;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: .4px;
}

.creative-option-standard .creative-option-copy h3 {
    color: #171717;
}

.creative-option-advanced .creative-option-copy h3 {
    color: var(--accent);
}

.creative-option-copy p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
}

.creative-option-standard .creative-option-copy p {
    color: #393126;
}

.creative-option-advanced .creative-option-copy p {
    color: var(--muted);
}

.creative-option-button {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 11px 8px;
    border: 1px solid #171717;
    border-radius: 2px;
    background: #171717;
    color: #c6ad83;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

.creative-option-advanced .creative-option-button {
    border-color: var(--accent);
    background: var(--accent);
    color: #171717;
}

.creative-option-button:hover {
    filter: brightness(1.12);
}

.creative-option-button.selected {
    background: #171717;
    color: var(--accent);
}

.creative-option-advanced .advanced-edit-active {
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,.2);
}

.creative-option .advanced-edit-active label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.creative-option .advanced-edit-active textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    background: #171717;
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.creative-option-remove {
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    text-decoration: underline;
    cursor: pointer;
}



/* Lightbox standard-photo selection */
.customer-lightbox .lightbox-select {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    letter-spacing: 1px;
    background: #292929;
    border: 1px solid #999;
    padding: 12px 22px;
    white-space: nowrap;
}
.customer-lightbox .lightbox-select.selected {
    background: #514536;
    border-color: #c5a879;
}
.customer-lightbox .lightbox-select[hidden] {
    display: none;
}

.customer-login-options form button {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 14px 18px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #171717;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.customer-login-options form button:hover {
    background: transparent;
    color: var(--text);
}

.customer-login-options form {
    margin-bottom: 30px;
}

.customer-login-options h3 {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    margin: 25px 0 10px;
}

.customer-login-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    margin: 10px 0 0;
}

/* Adams Photography customer account and checkout actions */
.shopping-panel a.customer-action,
.shopping-panel button.customer-action-button,
.cart-summary button.customer-action-button,
a.customer-action {
    display: inline-block;
    width: auto;
    min-height: 46px;
    margin: 12px 10px 0 0;
    padding: 13px 25px;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background: linear-gradient(145deg, #29251f, #1d1b18);
    color: #e8dfd0;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .35px;
    line-height: 1.4;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.shopping-panel button.customer-action-primary,
.cart-summary button.customer-action-primary,
a.customer-action-primary {
    background: linear-gradient(135deg, #d2bd98, #b99e70);
    color: #171717;
    border-color: var(--accent);
}

.shopping-panel button.customer-action-button:hover,
.cart-summary button.customer-action-button:hover,
.shopping-panel a.customer-action:hover,
a.customer-action:hover {
    background: #35312a;
    color: #fff;
    border-color: #d7c19c;
    transform: translateY(-1px);
}

.shopping-panel button.customer-action-primary:hover,
.cart-summary button.customer-action-primary:hover,
a.customer-action-primary:hover {
    background: #dfcba8;
    color: #171717;
    border-color: #dfcba8;
}

.shopping-panel button.customer-action-button:focus-visible,
.cart-summary button.customer-action-button:focus-visible,
a.customer-action:focus-visible {
    outline: 2px solid #e2c99f;
    outline-offset: 3px;
}

/* FINAL CUSTOMER ACTION BUTTON OVERRIDES */
.basket-actions a.customer-action,
.basket-actions button.customer-action-button,
.shopping-panel a.customer-action-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 25px !important;
    border: 1px solid #c6ad83 !important;
    border-radius: 2px !important;
    background: linear-gradient(145deg, #29251f, #1d1b18) !important;
    color: #e8dfd0 !important;
    font-family: Georgia, serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: .35px !important;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all .2s ease;
}

.basket-actions button.customer-action-primary,
.shopping-panel a.customer-action-button.customer-action-primary {
    background: linear-gradient(135deg, #d2bd98, #b99e70) !important;
    border-color: #c6ad83 !important;
    color: #171717 !important;
}

.basket-actions a.customer-action:hover,
.basket-actions button.customer-action-button:hover,
.shopping-panel a.customer-action-button:hover {
    background: #35312a !important;
    border-color: #dfcba8 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.basket-actions button.customer-action-primary:hover,
.shopping-panel a.customer-action-button.customer-action-primary:hover {
    background: #dfcba8 !important;
    border-color: #dfcba8 !important;
    color: #171717 !important;
}

.basket-actions form {
    margin: 0;
}

/* Stripe cancellation confirmation buttons */
.customer-page button.customer-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 25px;
    margin: 10px 10px 0 0;
    border: 1px solid #c6ad83;
    border-radius: 2px;
    background: linear-gradient(145deg, #29251f, #1d1b18);
    color: #e8dfd0;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.customer-page button.customer-action-primary {
    background: linear-gradient(135deg, #d2bd98, #b99e70);
    color: #171717;
}

/* Gallery review basket button */
.cart-summary a.customer-action-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 25px !important;
    border: 1px solid #c6ad83 !important;
    border-radius: 2px !important;
    background: linear-gradient(135deg, #d2bd98, #b99e70) !important;
    color: #171717 !important;
    font-family: Georgia, serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: .35px !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Return to the collections landing page */
.back-to-collections {
    display: block;
    width: min(1200px, 92%);
    margin: 22px auto 0;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color .2s ease;
}

.back-to-collections:hover {
    color: var(--text);
}


/* Adams Photography logo in customer gallery header */
.customer-logo {
    display: inline-block;
    line-height: 0;
}

.customer-logo img {
    display: block;
    width: min(340px, 80vw);
    height: 105px;
    object-fit: contain;
    margin: 0 auto;
}

@media (max-width: 650px) {
    .customer-logo img {
        height: 85px;
    }
}


/* Gallery header scrolls normally with the page */
.customer-header {
    position: static;
}

/* Expandable customer gallery sections */
.customer-section {
    margin: 0 0 35px;
}

.customer-section summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    cursor: pointer !important;
    list-style: none;
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 24px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px 10px 18px;
    margin: 0;
    transition: background-color 0.2s ease;
}

.customer-section summary,
.customer-section summary * {
    cursor: pointer !important;
}

.customer-section summary:hover {
    background-color: rgba(184, 170, 152, 0.10);
}

.customer-section summary::-webkit-details-marker {
    display: none;
}

.customer-section summary::marker {
    content: "";
}

.section-name {
    flex: 0 0 auto;
}

.section-instruction {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #a39482;
    white-space: nowrap;
}

.section-toggle {
    margin-left: 2px;
}

.section-toggle::before {
    content: "+";
    font-family: Arial, sans-serif;
    font-size: 25px;
    color: #b8aa98;
}

.customer-section[open] .section-toggle::before {
    content: "−";
}

.customer-section[open] summary {
    margin-bottom: 55px;
}

.customer-section summary:focus-visible {
    outline: 2px solid #b8aa98;
    outline-offset: 3px;
}
