.bwpo-public-wrapper {
    --bwpo-bg: var(--paper, #F2EEE7);
    --bwpo-surface: var(--paper-2, #E6E0D6);
    --bwpo-fg: var(--ink, #0E0E0C);
    --bwpo-fg-muted: var(--graphite, #55514B);
    --bwpo-accent: var(--marker, #FF4A1C);
    --bwpo-accent-ink: var(--marker-ink, #B0330E);
    --bwpo-dark: var(--ink-2, #1A1917);
    --bwpo-line: var(--line, rgba(14, 14, 12, 0.16));
    --bwpo-paper: var(--paper, #F2EEE7);
    --bwpo-ease: var(--ease, cubic-bezier(.2, .7, .2, 1));
    width: 100%;
    max-width: 1600px;
    margin: 40px auto 64px;
    padding: 0 32px;
    background: var(--bwpo-bg);
    color: var(--bwpo-fg);
    font: inherit;
}

.bwpo-public-wrapper,
.bwpo-public-wrapper * {
    box-sizing: border-box;
}

.bwpo-public-wrapper img {
    max-width: 100%;
}

.bwpo-gallery-shell,
.bwpo-order-main,
.bwpo-gallery-section {
    display: grid;
}

.bwpo-gallery-shell {
    gap: 32px;
}

.bwpo-order-main {
    gap: 56px;
    min-width: 0;
}

.bwpo-gallery-section {
    gap: 20px;
}

.bwpo-gallery-intro {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bwpo-line);
}

.bwpo-gallery-heading {
    min-width: 0;
}

.bwpo-gallery-intro h2,
.bwpo-section-title,
.bwpo-sidebar h3,
.bwpo-formats-dialog h2 {
    margin: 0;
    color: var(--bwpo-fg);
    font-weight: 800;
    font-stretch: 72%;
    line-height: 1;
}

.bwpo-gallery-intro h2 {
    font-size: 36px;
    font-stretch: 62%;
    text-transform: uppercase;
}

.bwpo-section-title,
.bwpo-formats-dialog h2 {
    font-size: 24px;
}

.bwpo-photo-count {
    margin: 8px 0 0;
    color: var(--bwpo-fg-muted);
    font-size: 15px;
    font-weight: 600;
}

.bwpo-description {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--bwpo-fg-muted);
    line-height: 1.55;
}

.bwpo-gallery-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.bwpo-header-action,
.bwpo-go-to-checkout,
.bwpo-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 16px;
    border: 1.5px solid var(--bwpo-fg);
    border-radius: 0;
    background: transparent;
    color: var(--bwpo-fg);
    font-size: 14px;
    font-weight: 650;
    font-stretch: 125%;
    letter-spacing: .08em;
    line-height: 1.15;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.bwpo-header-action:hover,
.bwpo-header-action:focus-visible {
    border-color: var(--bwpo-fg);
    background: var(--bwpo-fg);
    color: var(--bwpo-paper);
}

.bwpo-download-menu-wrap {
    position: relative;
}

.bwpo-download-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: min(340px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid var(--bwpo-line);
    border-radius: 0;
    background: var(--bwpo-bg);
    box-shadow: 8px 8px 0 rgba(14, 14, 12, 0.16);
}

.bwpo-download-menu[hidden] {
    display: none;
}

.bwpo-download-option {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--bwpo-fg);
    font-weight: 650;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.bwpo-download-option:hover,
.bwpo-download-option:focus-visible {
    background: var(--bwpo-accent);
    color: var(--bwpo-fg);
}

.bwpo-download-option-disabled {
    color: var(--bwpo-fg-muted);
    cursor: not-allowed;
}

.bwpo-download-menu p {
    margin: 8px 12px 4px;
    color: var(--bwpo-fg-muted);
    font-size: 13px;
    line-height: 1.45;
}

.bwpo-download-menu .bwpo-download-status:empty {
    display: none;
}

.bwpo-message {
    padding: 14px 16px;
    border-radius: 0;
}

.bwpo-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.bwpo-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.bwpo-order-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

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

.bwpo-photo-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bwpo-line);
    border-radius: 0;
    background: var(--bwpo-bg);
    transition: border-color 0.25s var(--bwpo-ease);
}

.bwpo-photo-card:hover {
    border-color: var(--bwpo-fg);
}

.bwpo-photo-card-selected {
    border: 2px solid var(--bwpo-accent-ink);
}

.bwpo-photo-media {
    position: relative;
    margin: 8px 8px 0;
    overflow: hidden;
    border-radius: 0;
    background: var(--bwpo-surface);
}

.bwpo-photo-media::after {
    --bwpo-crop-length: 22px;
    --bwpo-crop-width: 2px;
    position: absolute;
    inset: 12px;
    z-index: 2;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(var(--bwpo-accent), var(--bwpo-accent)) top left / var(--bwpo-crop-length) var(--bwpo-crop-width),
        linear-gradient(var(--bwpo-accent), var(--bwpo-accent)) top left / var(--bwpo-crop-width) var(--bwpo-crop-length),
        linear-gradient(var(--bwpo-accent), var(--bwpo-accent)) top right / var(--bwpo-crop-length) var(--bwpo-crop-width),
        linear-gradient(var(--bwpo-accent), var(--bwpo-accent)) top right / var(--bwpo-crop-width) var(--bwpo-crop-length),
        linear-gradient(var(--bwpo-accent), var(--bwpo-accent)) bottom left / var(--bwpo-crop-length) var(--bwpo-crop-width),
        linear-gradient(var(--bwpo-accent), var(--bwpo-accent)) bottom left / var(--bwpo-crop-width) var(--bwpo-crop-length),
        linear-gradient(var(--bwpo-accent), var(--bwpo-accent)) bottom right / var(--bwpo-crop-length) var(--bwpo-crop-width),
        linear-gradient(var(--bwpo-accent), var(--bwpo-accent)) bottom right / var(--bwpo-crop-width) var(--bwpo-crop-length);
    background-repeat: no-repeat;
    opacity: 0;
    transition: inset .4s var(--bwpo-ease), opacity .25s var(--bwpo-ease);
}

.bwpo-photo-card:hover .bwpo-photo-media::after,
.bwpo-photo-card:focus-within .bwpo-photo-media::after,
.bwpo-photo-card-selected .bwpo-photo-media::after {
    inset: 18px;
    opacity: 1;
}

.bwpo-photo-preview-button {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--bwpo-surface);
    cursor: zoom-in;
}

.bwpo-photo-media--landscape .bwpo-photo-preview-button {
    aspect-ratio: 4 / 3;
}

.bwpo-photo-media--portrait .bwpo-photo-preview-button {
    aspect-ratio: 3 / 4;
}

.bwpo-photo-media--square .bwpo-photo-preview-button {
    aspect-ratio: 1 / 1;
}

.bwpo-photo-preview-button::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(14, 14, 12, 0);
    transition: background 0.2s ease;
}

.bwpo-photo-preview-button:hover::after {
    background: rgba(14, 14, 12, 0.16);
}

.bwpo-photo-preview-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bwpo-zoom-indicator {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 0;
    background: rgba(14, 14, 12, 0.78);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bwpo-zoom-indicator::before {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--bwpo-paper);
    border-radius: 50%;
    content: "";
}

.bwpo-zoom-indicator::after {
    position: absolute;
    top: 19px;
    left: 19px;
    width: 7px;
    height: 2px;
    background: var(--bwpo-paper);
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}

.bwpo-photo-preview-button:hover .bwpo-zoom-indicator,
.bwpo-photo-preview-button:focus-visible .bwpo-zoom-indicator {
    opacity: 1;
}

.bwpo-photo-download {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 0;
    background: var(--bwpo-dark);
    color: var(--bwpo-paper);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.bwpo-photo-download:hover,
.bwpo-photo-download:focus-visible {
    background: var(--bwpo-accent);
    color: var(--bwpo-fg);
}

.bwpo-photo-card-body {
    padding: 14px 14px 16px;
}

.bwpo-photo-name {
    margin: 0 0 10px;
    color: var(--bwpo-fg);
    font-size: 15px;
    font-weight: 700;
}

.bwpo-photo-card-selected .bwpo-photo-name::after {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 5px;
    background: var(--bwpo-accent);
    color: var(--bwpo-fg);
    content: "WYBRANE";
    font-size: 11px;
    font-stretch: 125%;
    font-weight: 700;
    letter-spacing: .08em;
}

.bwpo-order-table {
    width: 100%;
}

.bwpo-order-row {
    display: grid;
    grid-template-columns: minmax(42px, 1fr) minmax(58px, auto) 116px;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    border-top: 1px solid var(--bwpo-line);
    color: var(--bwpo-fg);
    font-size: 14px;
}

.bwpo-format-name label {
    color: var(--bwpo-fg);
    font-weight: 650;
}

.bwpo-format-price {
    color: var(--bwpo-fg-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bwpo-qty-box {
    display: grid;
    grid-template-columns: 40px 36px 40px;
    align-items: center;
    width: 116px;
    min-height: 40px;
    overflow: hidden;
    border: 1px solid var(--bwpo-fg-muted);
    border-radius: 0;
    background: var(--bwpo-bg);
}

.bwpo-qty-btn {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: var(--bwpo-surface);
    color: var(--bwpo-fg);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.bwpo-qty-btn:hover {
    background: var(--bwpo-accent);
    color: var(--bwpo-fg);
}

.bwpo-qty-input {
    width: 36px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--bwpo-bg);
    color: var(--bwpo-fg);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    appearance: textfield;
}

.bwpo-qty-input::-webkit-outer-spin-button,
.bwpo-qty-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.bwpo-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--bwpo-line);
    border-radius: 0;
    background: var(--bwpo-surface);
}

.bwpo-sidebar h3 {
    font-size: 24px;
    font-stretch: 72%;
    text-transform: uppercase;
}

.bwpo-summary-metrics {
    display: grid;
    gap: 12px;
    margin: 0;
}

.bwpo-summary-metrics > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.bwpo-summary-metrics dt {
    color: var(--bwpo-fg-muted);
    font-size: 14px;
}

.bwpo-summary-metrics dd {
    margin: 0;
    color: var(--bwpo-fg);
    font-weight: 700;
}

.bwpo-summary-metrics .bwpo-summary-total {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--bwpo-line);
}

.bwpo-summary-total dd {
    color: var(--bwpo-accent-ink);
    font-size: 25px;
}

.bwpo-addons {
    display: grid;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--bwpo-line);
}

.bwpo-addons h4 {
    margin: 0 0 2px;
    color: var(--bwpo-fg);
    font-size: 15px;
    text-transform: uppercase;
}

.bwpo-addon {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    align-items: start;
    color: var(--bwpo-fg);
    cursor: pointer;
}

.bwpo-addon-input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--bwpo-accent);
}

.bwpo-addon-input:focus-visible {
    outline: 3px solid var(--bwpo-fg);
    outline-offset: 3px;
}

.bwpo-addon-label {
    min-width: 0;
    font-weight: 650;
}

.bwpo-addon-price {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.bwpo-cart-details {
    border-top: 1px solid var(--bwpo-line);
    border-bottom: 1px solid var(--bwpo-line);
    padding: 12px 0;
}

.bwpo-cart-details summary {
    color: var(--bwpo-fg);
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.bwpo-cart-items {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.bwpo-cart-empty,
.bwpo-cart-restored {
    margin: 0;
    color: var(--bwpo-fg-muted);
    font-size: 13px;
}

.bwpo-cart-restored[hidden] {
    display: none;
}

.bwpo-cart-item {
    padding: 10px;
    border-radius: 0;
    background: var(--bwpo-bg);
    font-size: 13px;
}

.bwpo-cart-photo,
.bwpo-cart-meta,
.bwpo-cart-line-total {
    line-height: 1.4;
}

.bwpo-cart-meta {
    color: var(--bwpo-fg-muted);
}

.bwpo-cart-line-total {
    margin-top: 3px;
    font-weight: 700;
}

.bwpo-go-to-checkout,
.bwpo-submit-btn {
    width: 100%;
    border-color: var(--bwpo-fg);
    background: var(--bwpo-accent);
    color: var(--bwpo-fg);
}

.bwpo-go-to-checkout:hover,
.bwpo-submit-btn:hover {
    border-color: var(--bwpo-fg);
    background: var(--bwpo-fg);
    color: var(--bwpo-paper);
}

.bwpo-customer-section {
    display: grid;
    gap: 24px;
    scroll-margin-top: 24px;
    padding: 28px;
    border-top: 3px solid var(--bwpo-accent);
    background: var(--bwpo-surface);
}

.bwpo-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.bwpo-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.bwpo-field-full {
    grid-column: 1 / -1;
}

.bwpo-label {
    color: var(--bwpo-fg);
    font-size: 14px;
    font-weight: 650;
}

.bwpo-input,
.bwpo-form-section input,
.bwpo-form-section textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--bwpo-fg-muted);
    border-radius: 0;
    background: transparent;
    color: var(--bwpo-fg);
    font-size: 16px;
}

.bwpo-textarea {
    min-height: 112px;
    resize: vertical;
}

.bwpo-checkout-summary {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--bwpo-line);
    color: var(--bwpo-fg);
}

.bwpo-checkout-summary .bwpo-cart-total {
    color: var(--bwpo-accent-ink);
    font-size: 28px;
}

.bwpo-submit-btn {
    justify-self: end;
    width: auto;
    min-width: 240px;
    min-height: 52px;
    font-size: 17px;
}

.bwpo-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.bwpo-mobile-summary {
    display: none;
}

.bwpo-formats-dialog {
    width: min(520px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border: 1px solid var(--bwpo-fg);
    border-radius: 0;
    background: var(--bwpo-bg);
    color: var(--bwpo-fg);
    box-shadow: 12px 12px 0 rgba(14, 14, 12, 0.24);
}

.bwpo-formats-dialog::backdrop {
    background: rgba(14, 14, 12, 0.82);
}

.bwpo-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--bwpo-line);
}

.bwpo-dialog-close {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--bwpo-fg);
    font-size: 28px;
    cursor: pointer;
}

.bwpo-dialog-close:hover,
.bwpo-dialog-close:focus-visible {
    color: var(--bwpo-accent-ink);
}

.bwpo-formats-list {
    display: grid;
    padding: 8px 24px;
}

.bwpo-formats-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bwpo-line);
}

.bwpo-formats-dialog > p {
    margin: 0;
    padding: 18px 24px 24px;
    color: var(--bwpo-fg-muted);
    line-height: 1.5;
}

.bwpo-login-form {
    display: grid;
    max-width: 32rem;
    gap: 14px;
}

.bwpo-confirmation-table {
    width: 100%;
    border-collapse: collapse;
}

.bwpo-confirmation-table th,
.bwpo-confirmation-table td {
    padding: 10px;
    border-bottom: 1px solid var(--bwpo-line);
    text-align: left;
}

.bwpo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: stretch;
    padding: 0;
}

.bwpo-lightbox[hidden] {
    display: none;
}

.bwpo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 12, 0.97);
}

.bwpo-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    width: 100vw;
    height: 100vh;
    padding: 56px 72px 12px;
}

.bwpo-lightbox-order-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 24px;
    align-items: center;
    max-height: 176px;
    padding: 12px 0;
    overflow-y: auto;
    border-top: 1px solid rgba(242, 238, 231, 0.22);
    color: var(--bwpo-paper);
}

.bwpo-lightbox-order-heading h3,
.bwpo-lightbox-order-status {
    margin: 0;
}

.bwpo-lightbox-order-heading h3 {
    color: var(--bwpo-paper);
    font-size: 15px;
    text-transform: uppercase;
}

.bwpo-lightbox-order-status {
    min-height: 20px;
    margin-top: 4px;
    color: var(--bwpo-accent);
    font-size: 13px;
}

.bwpo-lightbox-formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.bwpo-lightbox-format {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px 10px;
    align-items: center;
}

.bwpo-lightbox-format-name {
    font-weight: 700;
}

.bwpo-lightbox-format-price {
    color: rgba(242, 238, 231, 0.72);
    font-size: 12px;
}

.bwpo-lightbox-qty {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 36px 38px 36px;
    align-items: center;
    border: 1px solid rgba(242, 238, 231, 0.45);
}

.bwpo-lightbox-qty-btn,
.bwpo-lightbox-qty-value {
    display: grid;
    width: 100%;
    height: 34px;
    min-height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--bwpo-paper);
    font: inherit;
}

.bwpo-lightbox-qty-btn {
    cursor: pointer;
}

.bwpo-lightbox-qty-btn:hover,
.bwpo-lightbox-qty-btn:focus-visible {
    background: var(--bwpo-accent);
    color: var(--bwpo-fg);
}

.bwpo-lightbox-open {
    overflow: hidden;
}

.bwpo-lightbox-content {
    display: grid;
    place-items: center;
    overflow: hidden;
    touch-action: pan-y;
}

.bwpo-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 116px);
    margin: 0 auto;
    object-fit: contain;
}

.bwpo-lightbox-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--bwpo-paper);
    font-size: 32px;
    cursor: pointer;
}

.bwpo-lightbox-close:hover,
.bwpo-lightbox-close:focus-visible {
    color: var(--bwpo-accent);
}

.bwpo-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 56px;
    height: 80px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--bwpo-paper);
    font-size: 54px;
    line-height: 1;
    cursor: pointer;
}

.bwpo-lightbox-nav:hover,
.bwpo-lightbox-nav:focus-visible {
    background: transparent;
    color: var(--bwpo-accent);
}

.bwpo-lightbox-prev {
    left: 8px;
}

.bwpo-lightbox-next {
    right: 8px;
}

.bwpo-lightbox-toolbar {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--bwpo-paper);
}

.bwpo-lightbox-download {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--bwpo-paper);
    font-weight: 700;
    font-stretch: 112%;
    letter-spacing: .06em;
    text-decoration-color: var(--bwpo-accent);
    text-underline-offset: .35em;
    text-transform: uppercase;
}

.bwpo-lightbox-download:hover,
.bwpo-lightbox-download:focus-visible {
    color: var(--bwpo-accent);
}

.bwpo-public-wrapper :focus-visible {
    outline: 3px solid var(--bwpo-fg);
    outline-offset: 3px;
}

.bwpo-public-wrapper .bwpo-lightbox :focus-visible {
    outline-color: var(--bwpo-accent);
}

.bwpo-public-wrapper .bwpo-input:focus {
    border-color: var(--bwpo-fg);
    box-shadow: inset 4px 0 0 var(--bwpo-accent);
    outline: 3px solid var(--bwpo-fg);
    outline-offset: 2px;
}

.bwpo-public-wrapper .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1399px) {
    .bwpo-public-wrapper {
        padding: 0 28px;
    }

    .bwpo-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (min-width: 1100px) and (max-width: 1240px) {
    .bwpo-order-row {
        grid-template-columns: 1fr auto;
        gap: 4px 8px;
        padding: 8px 0;
    }

    .bwpo-qty-box {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .bwpo-qty-btn,
    .bwpo-qty-input {
        width: 100%;
    }
}

@media (max-width: 1099px) {
    .bwpo-order-wrapper {
        grid-template-columns: 1fr;
    }

    .bwpo-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bwpo-sidebar {
        display: none;
    }

    .bwpo-sidebar--has-addons {
        position: static;
        display: block;
        order: -1;
        padding: 20px;
    }

    .bwpo-sidebar--has-addons > :not(.bwpo-addons) {
        display: none;
    }

    .bwpo-sidebar--has-addons .bwpo-addons {
        padding-top: 0;
        border-top: 0;
    }
}

@media (max-width: 767px) {
    .bwpo-public-wrapper {
        margin: 24px auto 0;
        padding: 0 16px calc(92px + env(safe-area-inset-bottom));
    }

    .bwpo-gallery-shell {
        gap: 24px;
    }

    .bwpo-gallery-intro {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        padding-bottom: 20px;
    }

    .bwpo-gallery-intro h2 {
        font-size: 30px;
    }

    .bwpo-gallery-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .bwpo-header-action {
        width: 100%;
        min-width: 0;
        padding: 10px;
        white-space: normal;
    }

    .bwpo-download-menu-wrap {
        position: static;
    }

    .bwpo-download-menu {
        top: 100%;
        right: 0;
        left: 0;
        width: auto;
    }

    .bwpo-order-main {
        gap: 40px;
    }

    .bwpo-gallery-grid,
    .bwpo-fields {
        grid-template-columns: 1fr;
    }

    .bwpo-gallery-grid {
        gap: 20px;
    }

    .bwpo-photo-media {
        margin: 6px 6px 0;
    }

    .bwpo-order-row {
        grid-template-columns: minmax(52px, 1fr) minmax(62px, auto) 132px;
    }

    .bwpo-qty-box {
        grid-template-columns: 44px 44px 44px;
        width: 132px;
        min-height: 44px;
    }

    .bwpo-qty-btn,
    .bwpo-qty-input {
        height: 44px;
        min-height: 44px;
    }

    .bwpo-qty-btn {
        width: 44px;
    }

    .bwpo-qty-input {
        width: 44px;
    }

    .bwpo-customer-section {
        gap: 20px;
        padding: 22px 16px;
    }

    .bwpo-checkout-summary {
        justify-content: space-between;
    }

    .bwpo-submit-btn {
        width: 100%;
        min-width: 0;
    }

    .bwpo-mobile-summary {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        align-items: center;
        min-height: 68px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(242, 238, 231, 0.22);
        background: var(--bwpo-dark);
        color: var(--bwpo-paper);
    }

    .bwpo-mobile-summary > .bwpo-cart-total {
        justify-self: end;
        color: var(--bwpo-accent);
    }

    .bwpo-mobile-summary .bwpo-go-to-checkout {
        width: auto;
        min-height: 46px;
        padding: 10px 16px;
    }

    .bwpo-lightbox-dialog {
        padding: 52px 8px 8px;
    }

    .bwpo-lightbox-order-panel {
        grid-template-columns: 1fr;
        gap: 6px;
        max-height: 148px;
        padding: 8px 4px;
    }

    .bwpo-lightbox-order-heading {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
    }

    .bwpo-lightbox-order-status {
        min-height: 0;
        margin-top: 0;
    }

    .bwpo-lightbox-formats {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 2px;
        overflow-x: auto;
    }

    .bwpo-lightbox-format {
        flex: 0 0 auto;
    }

    .bwpo-lightbox-nav {
        display: none;
    }

    .bwpo-lightbox-image {
        max-height: calc(100vh - 112px);
    }

    .bwpo-lightbox-toolbar {
        gap: 12px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .bwpo-order-row {
        grid-template-columns: minmax(44px, 1fr) minmax(54px, auto) 132px;
        gap: 5px;
        font-size: 13px;
    }

    .bwpo-mobile-summary {
        gap: 8px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 13px;
    }
}
