* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #263238;
    background: #f4f7f6;
    overflow-x: hidden;
}

.page {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

:root {
    --bs-primary: #2f7d6d;
    --bs-primary-rgb: 47, 125, 109;
    --bs-link-color: #2f7d6d;
    --bs-link-hover-color: #256455;
    --site-accent: #2f7d6d;
    --site-accent-dark: #256455;
    --site-accent-soft: #e5f2ef;
    --site-border: #d8e2df;
    --site-page-bg: #f4f7f6;
}

body:not(.public-page) .page {
    width: min(1760px, calc(100% - 48px));
    padding: 32px 0 40px;
}

body:not(.public-page) .container {
    max-width: 1760px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 6px;
    color: #607d8b;
    font-size: 14px;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 34px;
}

.cart-link,
.button-link,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: #2f7d6d;
    text-decoration: none;
    cursor: pointer;
}

.cart-link:hover,
.button-link:hover,
button:hover {
    background: #256455;
}

.secondary {
    color: #2f7d6d;
    background: #e5f2ef;
}

.secondary:hover {
    color: #fff;
    background: #2f7d6d;
}

.notice {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #1b5e20;
    background: #dff3e4;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.site-info,
.orders-disabled,
.site-footer {
    margin-bottom: 20px;
    padding: 18px;
}

.site-info p,
.orders-disabled h2,
.site-footer {
    margin-bottom: 0;
}

.orders-disabled {
    border-color: #efb0b0;
    color: #8a1f1f;
    background: #fde8e8;
}

.photo-card,
.shoot-card,
.empty-cart,
.table-wrap,
.checkout-block,
.success-order,
.admin-login-card,
.admin-filters,
.site-info,
.orders-disabled,
.site-footer {
    border: 1px solid #d8e2df;
    border-radius: 8px;
    background: #fff;
}

.photo-card {
    overflow: hidden;
}

.shoot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.shoot-card {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.shoot-card h2 {
    margin-bottom: 0;
}

.shoots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    align-items: start;
}

.shoot-group-divider {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
}

.shoot-group-divider--settlement {
    margin-top: 4px;
    padding-top: 8px;
}

.shoot-group-divider--kindergarten {
    margin-top: -4px;
}

.shoot-group-divider h2,
.shoot-group-divider h3 {
    margin: 0;
    color: #1f2937;
    line-height: 1.2;
}

.shoot-group-divider h2 {
    font-size: 28px;
    font-weight: 700;
}

.shoot-group-divider h3 {
    padding-bottom: 8px;
    border-bottom: 1px solid #dbe7e3;
    color: #4b5563;
    font-size: 18px;
    font-weight: 600;
}

.shoots-admin-page {
    width: min(1200px, calc(100% - 32px));
}

body:not(.public-page) .shoots-admin-page {
    width: min(1760px, calc(100% - 48px));
}

.shoot-card {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.shoot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.shoot-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.shoot-subtitle {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 13px;
}

.shoot-title {
    margin: 0 0 4px;
    color: #111827;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.meta,
.shoot-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 12px;
    padding-top: 12px;
    border-top: 1px solid #e4eeea;
    font-size: 13px;
}

.shoot-card__meta-item {
    min-width: 0;
}

.shoot-card__meta dt {
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.shoot-card__meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge--active {
    color: #1e7d3b;
    background: #e6f4ea;
}

.badge--inactive {
    color: #b3261e;
    background: #fce8e6;
}

.badge--open {
    color: #0369a1;
    background: #e0f2fe;
}

.badge--closed {
    color: #8a4b1f;
    background: #fff0dc;
}

.top-actions,
.actions,
.shoot-card__actions,
.shoot-card__admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.top-actions {
    margin-bottom: 12px;
}

.actions {
    margin-bottom: 0;
}

.shoot-card__actions {
    padding-top: 0;
}

.shoot-card__admin-actions {
    padding-top: 12px;
    border-top: 1px solid #e4eeea;
}

.shoot-card__admin-actions .shoot-btn--primary {
    grid-column: 1 / -1;
}

.shoot-btn {
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.shoot-btn--primary {
    color: #fff;
    background: #1f7a6b;
}

.shoot-btn--secondary {
    color: #111827;
    background: #e5e7eb;
}

.shoot-btn--ghost {
    color: #1f7a6b;
    background: #f3f8f6;
}

.shoot-btn--primary:hover,
.shoot-btn--secondary:hover,
.shoot-btn--ghost:hover {
    color: #fff;
    background: #256455;
}

.shoots-empty {
    display: grid;
    justify-items: start;
    gap: 10px;
}

.shoot-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    color: #607d8b;
    font-size: 14px;
}

.shoot-breadcrumbs .button-link {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 13px;
}

.public-link-cell {
    max-width: 240px;
    font-size: 13px;
}

.short-public-link {
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    color: #2f7d6d;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-button {
    min-height: 26px;
    padding: 4px 7px;
    font-size: 12px;
}

.qr-page {
    max-width: 860px;
}

.qr-sheet {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 28px;
    border: 1px solid #d8e2df;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.qr-sheet h1 {
    margin-bottom: 0;
}

.qr-public-url {
    max-width: 100%;
    margin-bottom: 0;
    overflow-wrap: anywhere;
    color: #2f7d6d;
    font-weight: 700;
}

.qr-public-url a {
    color: inherit;
}

.qr-image {
    width: min(360px, 100%);
    height: auto;
    padding: 12px;
    border: 1px solid #d8e2df;
    border-radius: 8px;
    background: #fff;
}

.qr-copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: min(680px, 100%);
}

.qr-copy-row input {
    min-width: 0;
}

.copy-status {
    min-height: 20px;
    margin-bottom: 0;
    color: #256455;
    font-weight: 700;
}

.qr-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.orders-disabled {
    border-color: #efb0b0;
    color: #8a1f1f;
    background: #fde8e8;
}

.photo-preview {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 150px;
    color: #fff;
    background: linear-gradient(135deg, #2f7d6d, #7aa95c);
}

.photo-preview-image {
    min-height: 210px;
    background: #e8f1ee;
}

.photo-preview-image img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
}

.photo-preview-button {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: zoom-in;
}

.photo-preview-button:hover {
    background: transparent;
}

.photo-preview-button img {
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.photo-preview-button:hover img {
    transform: scale(1.03);
    filter: brightness(0.92);
}

.photo-preview-image img + .photo-fallback {
    display: none;
}

.photo-preview-image.has-image .photo-fallback {
    display: none;
}

.photo-preview-image.is-broken .photo-fallback {
    display: grid;
}

.photo-fallback {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 100%;
    min-height: 210px;
    color: #fff;
    background: linear-gradient(135deg, #2f7d6d, #7aa95c);
}

.photo-caption {
    display: grid;
    gap: 3px;
    padding: 12px 16px 0;
}

.photo-caption strong {
    color: #263238;
}

.photo-caption span {
    color: #607d8b;
    font-size: 14px;
}

.photo-preview span {
    font-size: 15px;
}

.photo-preview strong {
    font-size: 30px;
}

.lightbox-open {
    overflow: hidden;
}

.photo-lightbox[hidden] {
    display: none;
}

.photo-lightbox {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 12px;
    overflow-x: hidden;
}

.photo-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 29, 34, 0.82);
}

.photo-lightbox__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: grid;
    gap: 10px;
    justify-items: center;
    width: calc(100% - 24px);
    max-width: 520px;
    max-height: 94vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translate(-50%, -50%);
}

.photo-lightbox__viewer {
    position: relative;
    display: grid;
    justify-items: center;
    width: 100%;
}

.photo-lightbox__image {
    display: block;
    width: 100%;
    max-width: 520px;
    max-height: 58vh;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.photo-lightbox__caption {
    display: grid;
    gap: 4px;
    width: 100%;
    max-width: 520px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    text-align: center;
}

.lightbox-order-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    color: #263238;
    background: #fff;
    text-align: left;
}

.lightbox-order-form .lightbox-order-title,
.lightbox-order-form .order-form-message {
    grid-column: 1 / -1;
}

.lightbox-order-form .lightbox-order-title {
    margin-bottom: 0;
    color: #263238;
    font-weight: 700;
}

.lightbox-order-form button {
    width: 100%;
    min-height: 34px;
}

.lightbox-product-switch,
.lightbox-option-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.lightbox-product-switch button,
.lightbox-option-buttons button,
.qty-control button {
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid #d8e2df;
    color: #263238;
    background: #f3f8f6;
    font-size: 13px;
}

.lightbox-product-switch button.is-active,
.lightbox-option-buttons button.is-active {
    color: #fff;
    border-color: #2f7d6d;
    background: #2f7d6d;
}

.lightbox-product-options {
    display: grid;
    gap: 7px;
}

.lightbox-product-options[hidden] {
    display: none;
}

.lightbox-product-options > span,
.lightbox-qty-field {
    color: #607d8b;
    font-size: 13px;
    font-weight: 700;
}

.qty-control {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 6px;
}

.qty-control input {
    text-align: center;
}

@media (max-width: 400px) {
    .lightbox-option-buttons {
        grid-template-columns: 1fr;
    }
}

.photo-lightbox__caption strong {
    font-size: 18px;
}

.photo-lightbox__caption span {
    font-size: 14px;
}

.photo-lightbox__caption small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.photo-lightbox__close,
.photo-lightbox__nav {
    position: absolute;
    z-index: 5;
    min-height: 0;
    border-radius: 999px;
    color: #263238;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.photo-lightbox__close:hover,
.photo-lightbox__nav:hover {
    color: #fff;
    background: #2f7d6d;
}

.photo-lightbox__close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 28px;
    line-height: 1;
}

.photo-lightbox__nav {
    top: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
}

.photo-lightbox__nav--prev {
    left: 8px;
}

.photo-lightbox__nav--next {
    right: 8px;
}

.order-form,
.checkout-form {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.order-form-message {
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.order-form-message.is-success {
    color: #1b5e20;
    background: #dff3e4;
}

.order-form-message.is-error {
    color: #8a1f1f;
    background: #fde8e8;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

select,
input,
textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #b9c8c4;
    border-radius: 8px;
    font: inherit;
}

textarea {
    resize: vertical;
}

option:disabled {
    color: #8c9ca2;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid #e3ece9;
    text-align: left;
}

th {
    background: #eef5f3;
}

tfoot td {
    border-bottom: 0;
    font-size: 18px;
    font-weight: 700;
}

.danger {
    min-height: 36px;
    background: #c14343;
}

.danger:hover {
    background: #9f3030;
}

.logout-link {
    background: #607d8b;
}

.logout-link:hover {
    background: #4f6873;
}

.empty-cart {
    padding: 24px;
}

.checkout-block,
.success-order {
    margin-top: 20px;
    padding: 24px;
}

.checkout-block h2,
.success-order h2 {
    margin-bottom: 8px;
}

.checkout-form {
    padding: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.checkout-field {
    min-width: 0;
}

.checkout-field.is-invalid input {
    border-color: #c24b4b;
    box-shadow: 0 0 0 4px rgba(194, 75, 75, .12);
}

.checkout-field-error {
    display: block;
    margin-top: 4px;
    color: #a93f3f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.checkout-field-error[hidden] {
    display: none;
}

.muted {
    color: #607d8b;
}

.error-box {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #efb0b0;
    border-radius: 8px;
    color: #8a1f1f;
    background: #fde8e8;
}

.error-box p {
    margin-bottom: 8px;
    font-weight: 700;
}

.error-box ul {
    margin: 0;
    padding-left: 20px;
}

.order-number {
    font-size: 20px;
    font-weight: 700;
}

.admin-login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.admin-login-card {
    width: min(420px, 100%);
    padding: 24px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-filters {
    margin-bottom: 16px;
    padding: 18px;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    align-items: end;
}

body:not(.public-page) .filters-form {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.filters-form input,
.filters-form select {
    min-height: 38px;
}

.filters-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    align-items: end;
}

.settings-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

body:not(.public-page) .settings-form {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.full-field {
    grid-column: 1 / -1;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar--compact {
    margin-bottom: 16px;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: #607d8b;
    font-size: 13px;
    line-height: 1.4;
}

.field-hint--block {
    margin-top: 0;
    padding: 10px 12px;
    border: 1px solid #d8e2df;
    border-radius: 8px;
    background: #f8fbfa;
}

.admin-shoot-edit-page {
    background: #f5f7f6;
}

.admin-shoot-edit-page__main {
    width: min(100% - 32px, 1440px);
}

.admin-shoot-edit-page .topbar {
    align-items: flex-start;
    gap: 16px;
}

.admin-shoot-edit-page .topbar h1 {
    margin-bottom: 8px;
}

.admin-shoot-edit-shell {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.admin-shoot-form {
    gap: 18px;
}

.admin-form-section {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid #dbe5e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 42, 55, .06);
}

.admin-form-section--primary {
    background: linear-gradient(180deg, rgba(47, 143, 123, .05), rgba(255, 255, 255, 1) 42%);
}

.admin-form-section__header h2 {
    margin-bottom: 6px;
    font-size: 22px;
}

.admin-form-section__header .field-hint {
    margin-top: 0;
}

.admin-form-grid {
    display: grid;
    gap: 16px;
}

.admin-form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form-grid--status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-binding {
    padding: 14px 16px;
    border: 1px solid #d8e2df;
    border-radius: 12px;
    color: #1f2a37;
    font-weight: 600;
    background: #f8fbfa;
}

.admin-form-toggle {
    align-items: flex-start;
    gap: 12px;
    min-height: 100%;
    padding: 16px 18px;
    border: 1px solid #d8e2df;
    border-radius: 14px;
    background: #f8fbfa;
}

.admin-form-toggle strong {
    display: block;
    margin-bottom: 4px;
    color: #1f2a37;
}

.admin-form-toggle .field-hint {
    margin-top: 0;
}

.admin-form-actions {
    justify-content: flex-end;
    align-items: center;
    padding: 18px 24px;
    border: 1px solid #dbe5e1;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 28px rgba(31, 42, 55, .06);
}

.admin-form-actions .button-link.secondary {
    order: 1;
}

.admin-form-actions button {
    order: 2;
    min-width: 180px;
}

.admin-shoot-edit-page__main {
    width: min(100% - 28px, 1480px);
}

.admin-shoot-edit-page .topbar {
    padding: 18px 22px;
}

.admin-shoot-edit-page .admin-shoot-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

.admin-shoot-edit-page .admin-form-section {
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(31, 42, 55, .055);
}

.admin-shoot-edit-page .admin-form-section__header h2 {
    margin-bottom: 3px;
    font-size: 18px;
}

.admin-shoot-edit-page .admin-form-grid {
    gap: 12px;
}

.admin-shoot-edit-page .admin-form-grid--two,
.admin-shoot-edit-page .admin-form-grid--three {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-shoot-edit-page .admin-form-grid--status {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-shoot-edit-page .admin-form-section--status {
    grid-column: span 2;
}

.admin-shoot-edit-page .admin-shoot-form label {
    gap: 5px;
    min-width: 0;
    line-height: 1.35;
}

.admin-shoot-edit-page .admin-shoot-form input,
.admin-shoot-edit-page .admin-shoot-form select,
.admin-shoot-edit-page .admin-shoot-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    box-sizing: border-box;
}

.admin-shoot-edit-page .admin-shoot-form textarea {
    min-height: 72px;
    resize: vertical;
}

.admin-shoot-edit-page .admin-shoot-form textarea[rows="2"] {
    min-height: 62px;
}

.admin-shoot-edit-page .admin-form-binding {
    padding: 10px 12px;
    border-radius: 10px;
}

.admin-shoot-edit-page .admin-form-toggle {
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 0;
    padding: 12px 14px;
    border-radius: 12px;
}

.admin-shoot-edit-page .admin-form-toggle span {
    min-width: 0;
}

.admin-deadline-field {
    min-width: 0;
}

.admin-deadline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.admin-deadline-actions button {
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid #cfe1dc;
    border-radius: 8px;
    background: #eef7f4;
    color: #146b5c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.admin-deadline-actions button:hover,
.admin-deadline-actions button:focus-visible {
    border-color: #2f8f7b;
    background: #dff2ed;
}

.admin-deadline-actions button.secondary {
    border-color: #d8e2df;
    background: #f4f6f5;
    color: #56656b;
}

.admin-shoot-edit-page .admin-form-actions {
    padding: 14px 18px;
    border-radius: 16px;
}

@media (max-width: 991.98px) {
    .admin-shoot-edit-page .admin-shoot-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shoot-edit-page .admin-form-section--status {
        grid-column: 1 / -1;
    }

    .admin-form-grid--three,
    .admin-form-grid--two,
    .admin-form-grid--status {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1120px) {
    .admin-shoot-edit-page .admin-shoot-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shoot-edit-page .admin-form-section--status {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .admin-shoot-edit-page__main {
        width: min(100% - 20px, 1440px);
    }

    .admin-shoot-edit-page .admin-shoot-form {
        grid-template-columns: 1fr;
    }

    .admin-form-section,
    .admin-form-actions {
        padding: 18px;
        border-radius: 16px;
    }

    .admin-form-actions {
        justify-content: stretch;
    }

    .admin-form-actions .button-link.secondary,
    .admin-form-actions button {
        width: 100%;
        order: initial;
    }
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

.danger-button {
    background: #c24b4b;
}

.danger-button:hover {
    background: #a93f3f;
}

.admin-access-links-page .topbar-subtitle {
    max-width: 760px;
    margin: 6px 0 0;
    color: #4b6470;
}

.access-link-form .admin-form-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    align-items: start;
    gap: 14px;
}

.access-link-form label,
.access-link-form input,
.access-link-form select {
    min-width: 0;
}

.access-link-form input,
.access-link-form select {
    width: 100%;
    box-sizing: border-box;
}

.access-scope-field {
    display: none;
}

.access-mode-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.access-mode-switch button {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #cfe1dc;
    border-radius: 8px;
    background: #eef7f4;
    color: #146b5c;
    font-weight: 800;
    cursor: pointer;
}

.access-mode-switch button.is-active {
    border-color: #2f8f7b;
    background: #2f8f7b;
    color: #fff;
}

.access-link-form .checkbox-row,
.access-link-form .admin-form-actions {
    grid-column: 1 / -1;
}

.access-link-form .checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.access-link-form .admin-form-actions {
    display: flex;
}

.access-link-copy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.access-link-url {
    flex: 1 1 260px;
    width: auto;
    min-width: 240px;
    font-size: 13px;
}

.access-link-copy .button-link {
    flex: 0 0 auto;
}

.public-link-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 230px;
}

.public-link-actions form {
    display: inline-flex;
    margin: 0;
}

.public-link-actions button,
.access-link-copy button {
    min-height: 38px;
    white-space: nowrap;
    box-sizing: border-box;
}

.access-links-table {
    min-width: 980px;
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.analytics-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #dbe5e1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 42, 55, .055);
}

.analytics-card span {
    color: #607d8b;
    font-size: 13px;
    font-weight: 700;
}

.analytics-card strong {
    color: #1f2a37;
    font-size: 24px;
}

.analytics-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.analytics-tip {
    padding: 14px;
    border: 1px solid #d8e2df;
    border-radius: 12px;
    background: #f8fbfa;
}

.analytics-tip strong {
    color: #1f2a37;
}

.analytics-tip p {
    margin: 6px 0 0;
    color: #4b6470;
}

.analytics-message-grid {
    display: grid;
    gap: 16px;
}

.analytics-message-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dbe5e1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 42, 55, .045);
}

.analytics-message-card.needs-link {
    border-color: #efc56a;
    background: #fffaf0;
}

.analytics-message-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.analytics-message-card__header strong {
    display: block;
    color: #1f2a37;
}

.analytics-message-card__header p {
    margin: 6px 0 0;
    color: #8a5a10;
}

.analytics-message-box {
    display: grid;
    gap: 8px;
}

.analytics-message-box__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.analytics-message-box__top span {
    color: #4b6470;
    font-weight: 800;
}

.analytics-message-box textarea {
    width: 100%;
    min-height: 142px;
    padding: 12px;
    border: 1px solid #cfdcd8;
    border-radius: 10px;
    background: #f8fbfa;
    color: #1f2a37;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
}

.analytics-copy-button {
    min-height: 36px;
    white-space: nowrap;
}

.analytics-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #dbe5e1;
    text-align: left;
    vertical-align: top;
}

.analytics-table th {
    color: #607d8b;
    font-size: 13px;
    font-weight: 800;
    background: #f8fbfa;
}

.analytics-funnel-table {
    min-width: 980px;
}

.analytics-funnel-note {
    margin: 12px 0 0;
    color: #4b6470;
}

.orders-deadline-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.gallery-toast {
    position: fixed;
    z-index: 1600;
    top: 96px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 32px);
    padding: 11px 15px;
    gap: 9px;
    color: #1f2a37;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(47, 143, 123, .10);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(31, 42, 55, .05);
    font-weight: 800;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -14px);
    transition: opacity .2s ease, transform .22s ease;
}

.gallery-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.gallery-toast__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    color: #fff;
    background: #2f8f7b;
    font-size: 13px;
    line-height: 1;
}

.public-shoot-deadline {
    margin: 10px 0 14px;
    color: #2f8f7b;
    font-weight: 700;
}

.public-shoot-deadline.is-closed {
    color: #a93f3f;
}

.cart-item-adder.is-disabled {
    opacity: .68;
}

@media (max-width: 767px) {
    .access-link-form .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .access-link-copy {
        align-items: stretch;
        flex-direction: column;
    }

    .access-link-url {
        min-width: 0;
    }

    .orders-deadline-notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-toast {
        right: 12px;
        top: 88px;
        left: 12px;
        justify-content: center;
        max-width: none;
        transform: translateY(-12px);
    }

    .gallery-toast.is-visible {
        transform: translateY(0);
    }
}

.photo-count-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #d8e2df;
    border-radius: 8px;
    background: #fff;
}

.photo-count-panel strong {
    font-size: 18px;
}

.photo-count-panel span {
    color: #607d8b;
    font-weight: 700;
}

.shoots-status-panel {
    justify-content: flex-start;
}

.shoot-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #d8e2df;
    border-radius: 999px;
    color: #256455;
    background: #f7fbf9;
    font-weight: 700;
    text-decoration: none;
}

.shoot-status-chip strong {
    font-size: 15px;
}

.shoot-status-chip.is-active {
    color: #fff;
    background: #1f7a6b;
    border-color: #1f7a6b;
}

.shoot-card--archived {
    opacity: .82;
    background: #fbfcfc;
}

.shoot-card__status-actions {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e4eeea;
}

.shoot-btn--archive {
    color: #475569;
    background: #eef2f7;
}

.shoot-btn--restore {
    color: #1f7a6b;
    background: #e9f7f3;
}

.shoot-btn--danger {
    color: #b42318;
    background: #fff1f2;
}

.shoot-btn--archive:hover,
.shoot-btn--restore:hover,
.shoot-btn--danger:hover {
    color: #fff;
    background: #256455;
}

.shoot-btn--danger:hover {
    background: #b42318;
}

.shoot-card__status-note {
    margin: 0;
    color: #7c2d12;
    font-size: 12px;
    line-height: 1.4;
}

.photo-admin-form {
    display: grid;
    grid-template-columns: 120px repeat(2, minmax(220px, 1fr)) minmax(160px, 220px) 110px auto auto;
    gap: 12px;
    align-items: end;
}

.bulk-import-form,
.bookmarklet-import-form {
    display: grid;
    gap: 12px;
}

.bookmarklet-import-form textarea {
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
}

.mailru-import-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
}

.checkout-block:has(.mailru-import-form),
.browser-mailru-import {
    display: none;
}

.har-import-form {
    display: grid;
    gap: 12px;
}

.har-import-form textarea {
    min-height: 150px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
}

.browser-import-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto auto;
    gap: 12px;
    align-items: end;
}

.browser-import-status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #607d8b;
    background: #eef5f3;
    font-weight: 700;
}

.browser-import-status.is-loading {
    color: #1f4f8a;
    background: #e3efff;
}

.browser-import-status.is-success {
    color: #1b5e20;
    background: #dff3e4;
}

.browser-import-status.is-error {
    color: #8a1f1f;
    background: #fde8e8;
}

.browser-import-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.browser-import-counters span {
    padding: 6px 10px;
    border-radius: 8px;
    background: #f3f8f6;
    font-size: 13px;
}

.browser-import-preview {
    margin-top: 12px;
}

.browser-preview-table {
    min-width: 680px;
    font-size: 13px;
}

.browser-preview-table th,
.browser-preview-table td {
    padding: 8px;
    overflow-wrap: anywhere;
}

.admin-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.photo-bulk-panel {
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #d8e2df;
    border-radius: 8px;
    background: #fff;
}

.photo-bulk-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-bulk-actions button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
}

.admin-photo-card {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.photo-select-checkbox {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 6px 8px;
    border-radius: 8px;
    color: #263238;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 13px;
}

.photo-select-checkbox input {
    width: auto;
    min-height: 0;
}

.admin-photo-preview {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 190px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #2f7d6d, #7aa95c);
}

.admin-photo-preview img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.admin-photo-preview img + span {
    display: none;
}

.admin-photo-preview.is-broken span {
    display: block;
}

.admin-photo-preview span {
    font-size: 28px;
    font-weight: 700;
}

.admin-photo-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.admin-photo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.admin-photo-actions form {
    display: grid;
}

.admin-photo-actions .button-link,
.admin-photo-actions button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
}

.checkbox-label input {
    width: auto;
    min-height: 0;
}

.products-table {
    min-width: 980px;
}

.shoots-table {
    width: 100%;
    min-width: 960px;
    table-layout: fixed;
    font-size: 13px;
}

.products-table th,
.products-table td {
    padding: 10px;
    vertical-align: middle;
}

.shoots-table th,
.shoots-table td {
    padding: 6px 8px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shoots-table .word-break {
    white-space: normal;
    word-break: break-word;
}

.shoots-table .shoot-col-id {
    width: 120px;
}

.shoots-table .shoot-col-slug {
    width: 90px;
}

.shoots-table .shoot-col-link {
    width: 150px;
}

.shoots-table .shoot-col-kindergarten {
    width: 150px;
}

.shoots-table .shoot-col-title {
    width: 140px;
}

.shoots-table .shoot-col-active {
    width: 80px;
    text-align: center;
}

.shoots-table .shoot-col-orders {
    width: 90px;
    text-align: center;
}

.shoots-table .shoot-col-actions {
    width: 180px;
}

.shoots-table .status-badge {
    min-height: 18px;
    padding: 2px 5px;
    font-size: 11px;
}

.shoots-table .public-link-cell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.shoot-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.shoot-actions .button-link {
    min-height: 26px;
    padding: 4px 6px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-table input,
.products-table select {
    min-height: 34px;
}

.center-cell {
    text-align: center;
}

.compact-checkbox {
    justify-content: center;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-actions button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
}

.orders-count {
    margin-bottom: 14px;
    color: #607d8b;
    font-weight: 700;
}

.acdsee-topbar {
    margin-bottom: 18px;
}

.acdsee-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 14px;
    margin-bottom: 18px;
}

.acdsee-summary__item,
.acdsee-summary__actions {
    padding: 16px 18px;
    border: 1px solid #d8e2df;
    border-radius: 12px;
    background: #fff;
}

.acdsee-summary__item {
    display: grid;
    gap: 6px;
}

.acdsee-summary__item span {
    color: #607d8b;
    font-size: 13px;
}

.acdsee-summary__item strong {
    font-size: 24px;
    line-height: 1.2;
}

.acdsee-summary__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.acdsee-result-block {
    margin-bottom: 18px;
}

.acdsee-code-block {
    padding: 14px 16px;
    overflow-wrap: anywhere;
    border: 1px solid #d8e2df;
    border-radius: 10px;
    background: #f7faf9;
    color: #263238;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
}

.acdsee-groups {
    display: grid;
    gap: 14px;
}

.acdsee-product-group {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #d8e2df;
    border-radius: 12px;
    background: #fff;
}

.acdsee-product-group__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.acdsee-product-group__head h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.acdsee-product-group__head .muted {
    margin: 0;
}

@media (max-width: 1100px) {
    .acdsee-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .acdsee-summary {
        grid-template-columns: 1fr;
    }

    .acdsee-summary__actions,
    .acdsee-product-group__head {
        justify-content: flex-start;
    }

    .acdsee-product-group__head {
        flex-direction: column;
    }
}

@media print {
    .acdsee-screen-only,
    .topbar .admin-actions,
    .admin-filters {
        display: none !important;
    }

    .page {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .acdsee-summary,
    .acdsee-groups {
        gap: 10px;
    }

    .acdsee-result-block,
    .acdsee-summary__item,
    .acdsee-product-group,
    .acdsee-summary__actions,
    .acdsee-code-block {
        border-color: #d9d9d9;
        box-shadow: none;
    }
}

.admin-view-switch {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.group-prep-summary {
    margin-bottom: 16px;
    padding: 20px 22px;
    border: 1px solid #d8e2df;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.group-prep-summary__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 18px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.group-prep-summary__header h2 {
    margin: 4px 0 0;
}

.group-prep-summary__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.group-prep-summary__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.group-prep-summary__stats div {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8fbfa;
}

.group-prep-summary__stats dt {
    margin: 0 0 6px;
    color: #607d8b;
    font-size: 12px;
    font-weight: 700;
}

.group-prep-summary__stats dd {
    margin: 0;
    color: #1f2933;
    font-size: 16px;
    font-weight: 800;
}

.group-prep-summary__statuses {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.group-prep-summary__status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf5f2;
    color: #44635b;
    font-size: 12px;
    font-weight: 700;
}

.bulk-actions-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 1px solid #d8e2df;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.bulk-actions-panel[data-empty] {
    opacity: 0.88;
}

.bulk-actions-panel__summary {
    color: #44635b;
}

.bulk-actions-panel__controls {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-actions-panel__label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
    color: #607d8b;
    font-size: 13px;
    font-weight: 700;
}

.bulk-actions-panel__label select {
    min-height: 38px;
}

.bulk-actions-panel__message {
    width: 100%;
    font-size: 13px;
    font-weight: 700;
    color: #607d8b;
}

.bulk-actions-panel__message.is-success {
    color: #1b5e20;
}

.bulk-actions-panel__message.is-error {
    color: #8a1f1f;
}

.admin-table-wrap {
    background: #fff;
}

.orders-table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
    font-size: 13px;
}

.orders-table th,
.orders-table td {
    padding: 6px 8px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-table .col-order-id {
    max-width: 130px;
    width: 9%;
    font-size: 13px;
}

.orders-table .col-select {
    width: 42px;
    text-align: center;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.orders-table .col-date {
    max-width: 120px;
    width: 8%;
    white-space: nowrap;
}

.orders-table .col-parent {
    max-width: 170px;
    width: 10%;
}

.orders-table .col-phone {
    max-width: 150px;
    width: 9%;
    white-space: nowrap;
}

.orders-table .col-settlement {
    max-width: 140px;
    width: 9%;
}

.orders-table .col-kindergarten {
    max-width: 180px;
    width: 11%;
}

.orders-table .col-group {
    max-width: 140px;
    width: 9%;
}

.orders-table .col-shoot {
    max-width: 180px;
    width: 150px;
}

.orders-table .col-comment {
    max-width: 240px;
    width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-table .col-qty {
    width: 54px;
    text-align: center;
}

.orders-table .col-sum {
    width: 76px;
    white-space: nowrap;
}

.orders-table .col-payment {
    max-width: 150px;
    width: 8%;
}

.orders-table .col-status {
    width: 150px;
    min-width: 150px;
    vertical-align: top;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.orders-table .col-actions {
    width: 128px;
}

.orders-table .col-actions .button-link {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 13px;
}

.inline-delete-form {
    display: inline-block;
    margin-left: 6px;
}

.orders-table button {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 13px;
}

.orders-table .word-break {
    white-space: normal;
    word-break: break-word;
}

.order-details-row td {
    padding: 0;
    background: #f8fbfa;
}

.orders-divider-row td {
    padding: 10px 12px;
    background: #edf5f2;
    color: #44635b;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.orders-divider {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 18px;
    flex-wrap: wrap;
}

.orders-divider__title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.orders-divider__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #5f7a73;
}

.orders-divider__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

body.admin-mode-group .orders-divider-row {
    display: none;
}

body.admin-mode-group .orders-table .col-settlement,
body.admin-mode-group .orders-table .col-kindergarten,
body.admin-mode-group .orders-table .col-group,
body.admin-mode-group .orders-table .col-shoot {
    display: none;
}

@media print {
    body.admin-mode-group .topbar,
    body.admin-mode-group .admin-view-switch,
    body.admin-mode-group .admin-filters,
    body.admin-mode-group .orders-count,
    body.admin-mode-group .bulk-actions-panel,
    body.admin-mode-group .orders-table .col-select,
    body.admin-mode-group .orders-table .col-actions,
    body.admin-mode-group .inline-status-select,
    body.admin-mode-group .inline-status-message,
    body.admin-mode-group .button-link {
        display: none !important;
    }

    body.admin-mode-group .page {
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

    body.admin-mode-group .group-prep-summary,
    body.admin-mode-group .admin-table-wrap,
    body.admin-mode-group .order-details-panel {
        box-shadow: none !important;
        border-color: #d0d7d4 !important;
    }
}

.order-details-panel {
    width: 100%;
    padding: 28px 30px;
    border-top: 1px solid #d8e2df;
    border-bottom: 1px solid #d8e2df;
    background: #f8fbfa;
}

.order-details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.order-details-header h2 {
    margin-bottom: 0;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.order-meta div,
.order-comment {
    padding: 16px;
    border: 1px solid #d8e2df;
    border-radius: 8px;
    background: #fff;
}

.order-meta dt {
    margin-bottom: 6px;
    color: #607d8b;
    font-size: 13px;
    font-weight: 700;
}

.order-meta dd {
    margin: 0;
}

.order-comment {
    margin-bottom: 18px;
}

.order-comment p {
    margin-bottom: 0;
}

.order-details-panel h3 {
    margin-top: 0;
}

.items-table-wrap {
    margin-bottom: 16px;
}

.items-table {
    min-width: 760px;
}

.order-prices-form {
    display: grid;
    gap: 12px;
}

.discount-help {
    color: #607d8b;
    font-size: 13px;
    font-weight: 700;
}

.items-table select {
    min-width: 82px;
    min-height: 30px;
    padding: 4px 6px;
}

.discount-price-row {
    background: #fff9e6;
}

.discount-price-badge {
    display: inline-flex;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #7a4d00;
    background: #ffe8a3;
    font-size: 12px;
    font-weight: 700;
}

.status-form {
    display: grid;
    gap: 12px;
    max-width: 360px;
}

.inline-status-editor {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.inline-status-select {
    min-width: 150px;
    width: 100%;
    max-width: 180px;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
}

.inline-status-message {
    color: #607d8b;
    font-size: 12px;
    font-weight: 700;
    white-space: normal;
}

.inline-status-message.is-success {
    color: #1b5e20;
}

.inline-status-message.is-error {
    color: #8a1f1f;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 6px;
    border-radius: 8px;
    color: #263238;
    background: #eef5f3;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 6px;
    border-radius: 8px;
    color: #256455;
    background: #e5f2ef;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-new {
    color: #1f4f8a;
    background: #e3efff;
}

.status-confirmed {
    color: #256455;
    background: #dff3e4;
}

.status-in_progress,
.status-paid {
    color: #6a4b00;
    background: #fff2c2;
}

.status-ready,
.status-completed {
    color: #1b5e20;
    background: #d2f2d6;
}

.status-delivered {
    color: #5a3d8a;
    background: #efe4ff;
}

.status-cancelled {
    color: #8a1f1f;
    background: #fde8e8;
}

@media (max-width: 640px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    h1 {
        font-size: 28px;
    }

    .order-details-panel {
        padding: 16px;
    }

    .order-details-header {
        flex-direction: column;
    }

    .status-form {
        max-width: none;
    }

    .qr-copy-row {
        grid-template-columns: 1fr;
    }

    .photo-lightbox {
        padding: 10px;
    }

    .photo-lightbox__image {
        max-width: 100%;
        max-height: 52vh;
    }

    .lightbox-order-form {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .photo-lightbox__close {
        top: 8px;
        right: 8px;
    }

    .photo-lightbox__nav {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .photo-lightbox__nav--prev {
        left: 8px;
    }

    .photo-lightbox__nav--next {
        right: 8px;
    }

    .shoots-grid {
        grid-template-columns: 1fr;
    }

    .shoot-card__actions,
    .shoot-card__admin-actions {
        grid-template-columns: 1fr;
    }

    .shoot-card__admin-actions .shoot-btn--primary {
        grid-column: auto;
    }

    .photo-admin-form,
    .mailru-import-form,
    .browser-import-form,
    .admin-photo-form,
    .admin-photo-actions {
        grid-template-columns: 1fr;
    }

    .photo-bulk-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Public frontend refresh */
.public-page {
    color: #1f2933;
    background:
        radial-gradient(circle at top left, rgba(243, 237, 230, 0.9), transparent 28%),
        linear-gradient(180deg, #fbfaf8 0%, #f6f4f1 100%);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.public-page .page.public-main {
    width: min(1240px, calc(100% - 40px));
    padding: 28px 0 48px;
}

.public-page .eyebrow {
    margin-bottom: 10px;
    color: #8a8177;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.public-page {
    --public-bg: #f4f7f6;
    --public-surface: rgba(255, 255, 255, 0.88);
    --public-surface-strong: rgba(255, 255, 255, 0.94);
    --public-soft: #f1ece6;
    --public-soft-2: rgba(246, 242, 237, 0.92);
    --public-text: #1f2933;
    --public-muted: #6d665f;
    --public-primary: #2f7d6d;
    --public-primary-hover: #256455;
    --public-primary-active: #1f5347;
    --public-primary-soft: #e5f2ef;
    --public-primary-soft-border: rgba(47, 125, 109, 0.18);
    --public-border: rgba(84, 77, 71, 0.12);
    --public-shadow: 0 18px 42px rgba(31, 41, 51, 0.08);
}

.public-page body,
body.public-page {
    background: var(--public-bg);
}

.public-page h1,
.public-page h2,
.public-page h3 {
    color: var(--public-text);
    letter-spacing: 0;
}

.public-page h1 {
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.02;
    font-weight: 600;
}

.public-page p,
.public-page li,
.public-page .muted {
    color: var(--public-muted);
    line-height: 1.6;
}

.public-page .topbar.public-topbar,
.public-page .topbar {
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
    padding: 0;
}

.public-page .gallery-sticky-bar {
    position: sticky;
    top: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 28px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.08);
    backdrop-filter: blur(10px);
}

.public-page .gallery-sticky-bar__count {
    display: grid;
    gap: 2px;
}

.public-page .gallery-sticky-bar__label {
    color: var(--public-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.public-page .gallery-sticky-bar__count strong {
    color: var(--public-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.public-page .gallery-sticky-bar__button {
    flex: 0 0 auto;
}

.public-page .gallery-sticky-bar[data-empty="1"] {
    background: rgba(255, 255, 255, 0.88);
}

.public-page .gallery-sticky-bar[data-empty="1"] .gallery-sticky-bar__button {
    color: var(--public-primary);
    background: var(--public-primary-soft);
    box-shadow: inset 0 0 0 1px var(--public-primary-soft-border);
}

.public-page .cart-link,
.public-page .button-link,
.public-page button {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.08);
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.public-page .cart-link,
.public-page .button-link,
.public-page button:not(.danger):not(.secondary) {
    color: #fff;
    background: var(--public-primary);
}

.public-page .cart-link:hover,
.public-page .button-link:hover,
.public-page button:not(.danger):not(.secondary):hover {
    transform: translateY(-1px);
    background: var(--public-primary-hover);
    box-shadow: 0 14px 30px rgba(31, 41, 51, 0.12);
}

.public-page .cart-link:active,
.public-page .button-link:active,
.public-page button:not(.danger):not(.secondary):active {
    background: var(--public-primary-active);
}

.public-page .secondary {
    color: var(--public-primary);
    background: var(--public-primary-soft);
    box-shadow: inset 0 0 0 1px var(--public-primary-soft-border);
}

.public-page .secondary:hover {
    color: var(--public-primary);
    background: #eef7f4;
}

.public-page .danger {
    background: linear-gradient(180deg, #b65454 0%, #993f3f 100%);
}

.public-page .notice,
.public-page .error-box,
.public-page .site-info,
.public-page .orders-disabled,
.public-page .site-footer,
.public-page .empty-cart,
.public-page .table-wrap,
.public-page .checkout-block,
.public-page .success-order {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(31, 41, 51, 0.06);
}

.public-page .site-info,
.public-page .orders-disabled,
.public-page .site-footer,
.public-page .checkout-block,
.public-page .success-order,
.public-page .empty-cart {
    padding: 24px 26px;
}

.public-page .site-info,
.public-page .site-footer,
.public-page .empty-cart,
.public-page .checkout-block,
.public-page .success-order,
.public-page .table-wrap,
.public-page .notice,
.public-page .error-box {
    background: var(--public-surface);
    backdrop-filter: blur(8px);
}

.public-page .shoot-breadcrumbs {
    gap: 14px;
    margin-bottom: 18px;
    font-size: 13px;
}

.public-page .public-shoot-grid,
.public-page .shoot-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.public-page .public-shoot-group-divider {
    grid-column: 1 / -1;
    margin: 10px 0 -4px;
}

.public-page .public-shoot-group-divider h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: var(--public-text);
}

.public-page .public-shoot-card,
.public-page .shoot-grid .shoot-card {
    gap: 10px;
    padding: 24px;
    border: 0;
    border-radius: 26px;
    background: var(--public-surface);
    box-shadow: var(--public-shadow);
}

.public-page .public-shoot-kindergarten {
    margin: 0;
    color: var(--public-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.public-page .public-shoot-description {
    color: var(--public-muted);
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 0;
}

.public-page .public-shoot-group {
    margin: 0;
    color: var(--public-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.public-page .public-shoot-title {
    margin: 6px 0 0;
    color: #2f4a45;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.public-page .public-shoot-card .public-shoot-cover {
    margin-bottom: 4px;
}

.public-page .public-shoot-card .button-link {
    margin-top: 4px;
}

.public-page .public-photo-grid,
.public-page .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.public-page .public-photo-card,
.public-page .photo-card {
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background: var(--public-surface);
    box-shadow: var(--public-shadow);
}

.public-page .photo-preview,
.public-page .photo-preview-image,
.public-page .photo-preview-button,
.public-page .photo-fallback {
    min-height: 0;
    background: var(--public-soft) !important;
}

.public-page .photo-preview-image,
.public-page .photo-fallback {
    aspect-ratio: 4 / 5;
}

.public-page .photo-preview-image img,
.public-page .photo-fallback {
    min-height: 0;
}

.public-page .photo-preview-button {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
}

.public-page .photo-preview-button:hover,
.public-page .photo-preview-button:focus,
.public-page .photo-preview-button:active {
    transform: none;
    background: transparent;
    box-shadow: none;
}

.public-page .photo-preview-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.public-page .photo-preview-button:hover img {
    transform: scale(1.025);
    filter: brightness(0.97);
}

.public-page .public-photo-caption,
.public-page .photo-caption {
    padding: 18px 22px 0;
}

.public-page .photo-caption strong {
    font-size: 18px;
    font-weight: 600;
}

.public-page .public-order-form,
.public-page .order-form {
    gap: 12px;
    padding: 18px 22px 22px;
}

.public-page .photo-card.is-selected {
    box-shadow: 0 20px 48px rgba(47, 125, 109, 0.14);
}

.public-page .photo-card.is-selected .photo-preview-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(47, 125, 109, 0.88);
    border-radius: 28px 28px 0 0;
    pointer-events: none;
}

.public-page .photo-select-form {
    display: grid;
    gap: 10px;
    padding: 0 22px 22px;
}

.public-page .photo-select-form button {
    width: 100%;
}

.public-page .photo-lightbox__caption--simple {
    gap: 14px;
}

.public-page .photo-select-form--lightbox {
    padding: 0;
}

.public-page .cart-selection-block {
    margin-bottom: 20px;
}

.public-page .cart-photo-grid {
    display: grid;
    gap: 18px;
}

.public-page .cart-photo-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    background: var(--public-surface);
    box-shadow: 0 16px 36px rgba(31, 41, 51, 0.08);
    transform-origin: center top;
    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.public-page .cart-photo-card.is-removing {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    box-shadow: 0 8px 20px rgba(31, 41, 51, 0.04);
    pointer-events: none;
}

.public-page .cart-photo-card__head {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.public-page .cart-photo-card__preview {
    overflow: hidden;
    border-radius: 18px;
    background: var(--public-soft);
    aspect-ratio: 1 / 1;
}

.public-page .cart-photo-card__preview-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    cursor: zoom-in;
}

.public-page .cart-photo-card__preview-button:hover,
.public-page .cart-photo-card__preview-button:focus,
.public-page .cart-photo-card__preview-button:active {
    transform: none;
    background: transparent;
    box-shadow: none;
}

.public-page .cart-photo-card__preview img,
.public-page .cart-photo-card__fallback {
    width: 100%;
    height: 100%;
}

.public-page .cart-photo-card__preview img {
    object-fit: cover;
    display: block;
}

.public-page .cart-photo-card__preview-button img {
    transition: transform 0.24s ease, filter 0.24s ease;
}

.public-page .cart-photo-card__preview-button:hover img {
    transform: scale(1.03);
    filter: brightness(0.98);
}

.public-page .cart-photo-card__fallback {
    display: grid;
    place-items: center;
    color: #6d665f;
    font-weight: 700;
}

.public-page .cart-photo-card__meta {
    display: grid;
    gap: 6px;
}

.public-page .cart-photo-card__meta strong {
    font-size: 22px;
    font-weight: 600;
}

.public-page .cart-photo-card__meta span {
    color: #7b7268;
    font-size: 14px;
}

.public-page .cart-photo-card__remove {
    display: grid;
    align-self: start;
}

.public-page .cart-photo-card__adders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.public-page .cart-item-adder {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: var(--public-soft-2);
}

.public-page .cart-item-adder__header {
    display: grid;
    gap: 4px;
}

.public-page .cart-item-adder__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.public-page .cart-item-adder__header p {
    margin: 0;
    color: #7b7268;
    font-size: 14px;
}

.public-page .cart-item-adder__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.public-page .cart-item-adder__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.public-page .cart-item-adder__summary {
    margin: 0;
    color: var(--public-primary);
    font-size: 14px;
    font-weight: 600;
}

.public-page .cart-lightbox {
    padding: 20px;
}

.public-page .cart-lightbox__dialog {
    width: min(920px, calc(100% - 24px));
    max-width: 920px;
    gap: 14px;
    padding: 18px;
}

.public-page .cart-lightbox__image {
    width: 100%;
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
}

.public-page .cart-lightbox__caption {
    justify-items: center;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.public-page .cart-lightbox__caption strong {
    color: var(--public-text);
    font-size: 18px;
    font-weight: 600;
}

.public-page .cart-item-lines {
    border-radius: 18px;
    box-shadow: none;
}

.public-page .cart-line-qty-form {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: auto;
    min-width: 0;
    margin: 0 auto;
}

.public-page .cart-line-qty-form .qty-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    max-width: fit-content;
    white-space: nowrap;
}

.public-page .cart-line-qty-form .qty-control button {
    width: 34px;
    min-height: 36px;
    height: 34px;
    padding: 0;
    border-radius: 12px;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.public-page .cart-line-qty-form .qty-control button[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.public-page .qty-control__value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 28px;
    padding: 0 8px;
    border: 1px solid rgba(84, 77, 71, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .9);
    color: #1f2a37;
    font-weight: 700;
    text-align: center;
    flex: 0 0 auto;
}

.public-page .cart-line-qty-form form {
    margin: 0;
    display: inline-flex;
}

.public-page .cart-line-qty-form .qty-control,
.public-page .cart-line-qty-form .qty-control button,
.public-page .cart-line-qty-form .qty-control__value {
    vertical-align: middle;
}

.public-page .qty-control__message {
    font-size: 12px;
    line-height: 1.35;
}

.public-page .cart-item-lines table {
    width: 100%;
}

.public-page .order-form label,
.public-page .checkout-form label {
    gap: 7px;
    color: #544d47;
    font-size: 13px;
    font-weight: 600;
}

.checkout-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.public-page select,
.public-page input,
.public-page textarea {
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid var(--public-border);
    border-radius: 14px;
    color: var(--public-text);
    background: var(--public-surface-strong);
    box-shadow: inset 0 1px 1px rgba(31, 41, 51, 0.02);
}

.public-page select:focus,
.public-page input:focus,
.public-page textarea:focus {
    outline: none;
    border-color: rgba(47, 125, 109, 0.28);
    box-shadow: 0 0 0 4px rgba(47, 125, 109, 0.08);
}

.public-page .order-form button,
.public-page .checkout-form button {
    width: 100%;
}

.public-page .table-wrap {
    overflow: hidden;
}

.public-page table {
    table-layout: auto;
}

.public-page th,
.public-page td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(84, 77, 71, 0.08);
}

.public-page th {
    color: #7b7268;
    background: var(--public-soft-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.public-page tfoot td {
    color: #1f2933;
    font-size: 18px;
    font-weight: 600;
}

.public-page .checkout-block h2,
.public-page .success-order h2 {
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.public-page .checkout-form {
    gap: 18px;
}

.public-page .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.public-page .order-number {
    font-size: 22px;
    font-weight: 600;
}

.public-page .photo-lightbox {
    padding: 18px;
}

.public-page .photo-lightbox__backdrop {
    background: rgba(15, 19, 24, 0.86);
    backdrop-filter: blur(10px);
}

.public-page .photo-lightbox__dialog {
    gap: 14px;
    width: min(920px, calc(100% - 36px));
    max-width: 920px;
    max-height: 95vh;
    overflow-y: auto;
}

.public-page .photo-lightbox__viewer {
    width: 100%;
    padding: 16px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.public-page .photo-lightbox__image {
    width: 100%;
    max-width: none;
    max-height: 72vh;
    border-radius: 22px;
    background: #f4f1ed;
    box-shadow: none;
}

.public-page .photo-lightbox__caption {
    width: 100%;
    max-width: none;
    padding: 18px;
    border-radius: 24px;
    color: #1f2933;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
    text-align: left;
}

.public-page .photo-lightbox__caption strong {
    font-size: 22px;
    font-weight: 600;
}

.public-page .lightbox-order-form {
    gap: 12px;
    margin-top: 8px;
    padding: 0;
    background: transparent;
}

.public-page .lightbox-order-title {
    color: #544d47;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.public-page .lightbox-product-switch,
.public-page .lightbox-option-buttons {
    gap: 8px;
}

.public-page .lightbox-product-switch button,
.public-page .lightbox-option-buttons button,
.public-page .qty-control button {
    min-height: 40px;
    border: 1px solid rgba(84, 77, 71, 0.12);
    border-radius: 14px;
    color: #544d47;
    background: rgba(247, 243, 238, 1);
    box-shadow: none;
}

.public-page .lightbox-product-switch button.is-active,
.public-page .lightbox-option-buttons button.is-active {
    color: #fff;
    border-color: transparent;
    background: var(--public-primary);
}

.public-page .lightbox-product-options > span,
.public-page .lightbox-qty-field {
    color: #7b7268;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.public-page .qty-control {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
}

.public-page .photo-lightbox__close,
.public-page .photo-lightbox__nav {
    border: 0;
    color: #233630;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.public-page .photo-lightbox__close:hover,
.public-page .photo-lightbox__nav:hover {
    color: #fff;
    background: var(--public-primary);
}

.public-page .photo-lightbox__close {
    top: 26px;
    right: 26px;
    width: 46px;
    height: 46px;
    font-size: 30px;
}

.public-page .photo-lightbox__nav {
    width: 52px;
    height: 52px;
    font-size: 36px;
}

.public-page .photo-lightbox__nav--prev {
    left: 26px;
}

.public-page .photo-lightbox__nav--next {
    right: 26px;
}

@media (max-width: 900px) {
    .public-page .photo-lightbox__dialog {
        width: calc(100% - 24px);
        max-width: 720px;
    }

    .public-page .photo-lightbox__image {
        max-height: 62vh;
    }
}

@media (max-width: 640px) {
    .public-page .page.public-main {
        width: calc(100% - 24px);
        padding: 18px 0 34px;
    }

    .public-page .topbar.public-topbar,
    .public-page .topbar {
        align-items: stretch;
        gap: 18px;
    }

    .public-page .gallery-sticky-bar {
        top: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .public-page .gallery-sticky-bar__count {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .public-page .gallery-sticky-bar__button {
        width: 100%;
    }

    .public-page .public-photo-grid,
    .public-page .photo-grid,
    .public-page .public-shoot-grid,
    .public-page .shoot-grid {
        grid-template-columns: 1fr;
    }

    .public-page .photo-card,
    .public-page .shoot-card {
        border-radius: 22px;
    }

    .public-page .photo-card.is-selected .photo-preview-image::after {
        border-radius: 22px 22px 0 0;
    }

    .public-page .photo-preview-image,
    .public-page .photo-fallback {
        aspect-ratio: 4 / 4.8;
    }

    .public-page .cart-photo-card__head,
    .public-page .cart-photo-card__adders,
    .public-page .cart-item-adder__grid,
    .public-page .cart-item-adder__footer {
        grid-template-columns: 1fr;
    }

    .public-page .table-wrap {
        overflow-x: auto;
    }

    .public-page .photo-lightbox {
        padding: 10px;
    }

    .public-page .cart-lightbox {
        padding: 10px;
    }

    .public-page .photo-lightbox__dialog {
        width: calc(100% - 20px);
        gap: 10px;
    }

    .public-page .cart-lightbox__dialog {
        width: calc(100% - 20px);
        padding: 14px;
    }

    .public-page .photo-lightbox__viewer {
        padding: 10px;
        border-radius: 22px;
    }

    .public-page .photo-lightbox__caption {
        padding: 14px;
        border-radius: 18px;
    }

    .public-page .photo-lightbox__image {
        max-height: 54vh;
        border-radius: 18px;
    }

    .public-page .cart-lightbox__image {
        max-height: 68vh;
        border-radius: 16px;
    }

    .public-page .photo-lightbox__close {
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    .public-page .photo-lightbox__nav {
        width: 46px;
        height: 46px;
    }

    .public-page .photo-lightbox__nav--prev {
        left: 14px;
    }

    .public-page .photo-lightbox__nav--next {
        right: 14px;
    }
}

@media print {
    body {
        color: #000;
        background: #fff;
    }

    .no-print,
    .topbar,
    .shoot-breadcrumbs {
        display: none !important;
    }

    .page,
    .qr-page {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .qr-sheet {
        min-height: 100vh;
        padding: 40px 20px;
        border: 0;
        background: #fff;
        box-shadow: none;
    }

    .qr-sheet .eyebrow {
        color: #000;
        font-size: 16px;
        text-transform: none;
    }

    .qr-sheet h1 {
        font-size: 30px;
    }

    .qr-public-url,
    .qr-public-url a {
        color: #000;
        text-decoration: none;
    }

    .qr-image {
        width: 360px;
        max-width: 80vw;
        border: 0;
        padding: 0;
    }
}


/* Bootstrap 5 integration layer */
.page {
    max-width: 1320px;
}

body:not(.public-page) .page {
    max-width: 1760px;
}

.photo-card,
.shoot-card,
.empty-cart,
.table-wrap,
.checkout-block,
.success-order,
.admin-login-card,
.admin-filters,
.site-info,
.orders-disabled,
.site-footer,
.cart-photo-card,
.admin-photo-card {
    box-shadow: 0 12px 30px rgba(28, 61, 55, 0.06);
}

.notice {
    border: 1px solid #badbcc;
    color: #0f5132;
    background: #d1e7dd;
}

.error-box,
.orders-disabled {
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    color: #842029;
    background: #f8d7da;
}

.cart-link,
.button-link,
button {
    min-height: 44px;
    border-radius: 8px;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.cart-link:focus-visible,
.button-link:focus-visible,
button:focus-visible,
input:focus,
select:focus,
textarea:focus {
    outline: 0;
    box-shadow: 0 0 0 .22rem rgba(47, 125, 109, .22);
}

button:active,
.cart-link:active,
.button-link:active {
    transform: translateY(1px);
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    color: #263238;
    background: #fff;
}

textarea {
    min-height: 120px;
}

.public-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.public-photo-card {
    border-radius: 16px;
    border-color: #e1ece8;
}

.public-photo-card.is-selected {
    border-color: var(--site-accent);
    box-shadow: 0 0 0 3px rgba(47, 125, 109, .16), 0 14px 36px rgba(28, 61, 55, .12);
}

.public-photo-card .photo-select-form button,
.gallery-sticky-bar__button,
.checkout-form button,
.cart-item-adder button {
    width: 100%;
}

.gallery-sticky-bar {
    border: 1px solid #d8e2df;
    backdrop-filter: blur(10px);
}

.cart-photo-grid,
.admin-photos-grid,
.shoots-grid {
    align-items: stretch;
}

.cart-photo-card,
.admin-photo-card,
.shoot-card {
    border-radius: 14px;
}

.cart-item-adder__grid,
.form-grid,
.admin-photo-form,
.filters-form {
    gap: 14px;
}

.table-wrap table {
    margin-bottom: 0;
}

.table-wrap th {
    white-space: nowrap;
}

.checkout-block h2,
.empty-cart h2,
.success-order h2 {
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .public-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1200px) {
    .public-photo-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .page {
        width: min(100% - 20px, 1320px);
        padding: 18px 0;
    }

    .topbar,
    .public-topbar {
        align-items: stretch;
    }

    .cart-link,
    .button-link,
    button {
        min-height: 46px;
    }

    .photo-caption,
    .public-photo-caption {
        padding: 10px 12px 4px;
    }
}
/* Bootstrap gallery layout */
.public-gallery-page .public-main {
    width: min(100% - 24px, 1320px);
}

.public-gallery-page .shoot-breadcrumbs .breadcrumb {
    gap: 10px;
    font-weight: 700;
}

.public-gallery-page .public-topbar h1 {
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: 0;
}

.public-gallery-page .gallery-sticky-bar {
    top: 12px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
}

.public-gallery-page .public-photo-grid.row {
    display: flex;
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.public-gallery-page .public-photo-card {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.public-gallery-page .public-photo-card > .card {
    background: #fff;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.public-gallery-page .public-photo-card > .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2.5rem rgba(31, 41, 51, .12) !important;
}

.public-gallery-page .public-photo-card.is-selected > .card {
    border: 2px solid var(--bs-success) !important;
    background: var(--bs-success-bg-subtle);
    box-shadow: 0 0 0 .22rem rgba(25, 135, 84, .14), 0 1rem 2.5rem rgba(31, 41, 51, .10) !important;
}

.public-gallery-page .photo-card.is-selected .photo-preview-image::after {
    display: none;
}

.public-gallery-page .photo-preview,
.public-gallery-page .photo-preview-image,
.public-gallery-page .photo-preview-button,
.public-gallery-page .photo-fallback {
    background: transparent !important;
}

.public-gallery-page .photo-preview-image {
    aspect-ratio: 4 / 5;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
}

.public-gallery-page .photo-preview-button,
.public-gallery-page .photo-preview-button img {
    width: 100%;
    height: 100%;
}

.public-gallery-page .photo-preview-button img {
    object-fit: contain;
    object-position: center;
}

.public-gallery-page .photo-fallback {
    min-height: 100%;
    color: var(--site-accent);
    background: #f6faf9 !important;
}

.public-gallery-page .photo-select-form {
    display: grid;
    gap: 8px;
}

.public-gallery-page .photo-select-form .btn,
.public-gallery-page .cart-link.btn {
    border-radius: 8px;
    font-weight: 700;
}

.public-gallery-page .public-photo-caption .badge {
    color: #263238;
    border-color: #e1ece8 !important;
    background: #fff !important;
}

@media (max-width: 575.98px) {
    .public-gallery-page .public-main {
        width: min(100% - 16px, 1320px);
    }

    .public-gallery-page .public-topbar h1 {
        font-size: 44px;
    }

    .public-gallery-page .gallery-sticky-bar {
        top: 8px;
    }

    .public-gallery-page .public-photo-card .card-body {
        padding: 10px !important;
    }
}

/* Compact Bootstrap gallery */
.public-gallery-page .shoot-breadcrumbs {
    margin-bottom: .5rem !important;
}

.public-gallery-page .public-topbar {
    margin-bottom: .75rem !important;
}

.public-gallery-page .public-topbar h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
}

.public-gallery-page .public-topbar .eyebrow {
    margin-bottom: .3rem;
}

.public-gallery-page .gallery-sticky-bar {
    width: min(100%, 380px);
    margin-left: auto;
    top: 10px;
}

.public-gallery-page .gallery-sticky-bar > div {
    gap: .75rem !important;
}

.public-gallery-page .gallery-sticky-bar__count {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    min-width: 0;
}

.public-gallery-page .gallery-sticky-bar__label {
    font-size: .72rem;
    white-space: nowrap;
}

.public-gallery-page .gallery-sticky-bar__count strong {
    font-size: 1.35rem !important;
}

.public-gallery-page .gallery-sticky-bar__button {
    width: auto;
    min-width: 150px;
    min-height: 42px;
}

.public-gallery-page .public-photo-col {
    display: flex;
}

.public-gallery-page .public-photo-col > .card {
    width: 100%;
    background: #fff;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}

.public-gallery-page .public-photo-col > .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2.5rem rgba(31, 41, 51, .12) !important;
}

.public-gallery-page .public-photo-col.is-selected > .card {
    border: 2px solid var(--bs-success) !important;
    background: var(--bs-success-bg-subtle);
    box-shadow: 0 0 0 .22rem rgba(25, 135, 84, .14), 0 1rem 2.5rem rgba(31, 41, 51, .10) !important;
}

.public-gallery-page .public-photo-card {
    padding: 0 !important;
    border-radius: var(--bs-border-radius-xl) !important;
    background: #fff !important;
    overflow: hidden !important;
}

.public-gallery-page .public-photo-card .card-body {
    min-height: 116px;
}

.public-gallery-page .photo-select-form .btn-outline-success {
    background: #fff;
}

.public-gallery-page .gallery-mobile-cart-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 1040;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #d8e2df;
    border-radius: 8px;
    color: #263238;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 36px rgba(31, 41, 51, .16);
    backdrop-filter: blur(10px);
}

.public-gallery-page .gallery-mobile-cart-bar__text {
    font-weight: 800;
}

.public-gallery-page .gallery-mobile-cart-bar .btn {
    min-height: 40px;
    padding-right: 18px;
    padding-left: 18px;
    border-radius: 8px;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .public-gallery-page .public-main {
        padding-bottom: 88px !important;
    }

    .public-gallery-page .public-topbar {
        gap: .5rem !important;
    }

    .public-gallery-page .public-topbar h1 {
        font-size: 34px;
    }

    .public-gallery-page .gallery-sticky-bar {
        display: none;
    }

    .public-gallery-page .gallery-mobile-cart-bar {
        display: flex;
    }
}

/* Public gallery redesign */
.public-gallery-page {
    background:
        radial-gradient(circle at top left, rgba(47, 143, 123, .12), transparent 26%),
        linear-gradient(180deg, #f8fbfa 0%, #f5f7f6 100%);
}

.public-gallery-page .public-main {
    width: min(100% - 40px, 1800px);
    max-width: 1800px;
    padding-top: 22px !important;
    padding-bottom: 104px !important;
}

.public-gallery-page .page.public-main.public-gallery-shell {
    width: min(100% - 40px, 1800px);
    max-width: 1800px;
}

.public-gallery-page .public-gallery-shell {
    width: min(100% - 40px, 1800px);
    max-width: 1800px;
    margin-right: auto;
    margin-left: auto;
}

.public-gallery-page .gallery-fluid {
    width: 100%;
    max-width: none;
    margin: 22px 0 0;
    padding-right: 0;
    padding-left: 0;
}

.public-gallery-page .shoot-breadcrumbs .breadcrumb {
    gap: 8px;
}

.public-gallery-page .shoot-breadcrumbs .btn {
    border-radius: 999px;
    padding-inline: 14px;
    font-weight: 700;
}

.public-gallery-page .public-topbar {
    margin-bottom: 14px !important;
    padding: 0;
    border: 1px solid rgba(47, 143, 123, .10);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 22px rgba(31, 42, 55, .05);
    backdrop-filter: blur(10px);
}

.public-gallery-page .public-gallery-hero-inner {
    width: 100%;
    padding: 28px 36px;
}

.public-gallery-page .gallery-hero__content {
    max-width: 760px;
}

.public-gallery-page .gallery-hero__eyebrow {
    margin-bottom: 6px !important;
    color: #2f8f7b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-gallery-page .gallery-hero__divider {
    margin: 0 8px;
    color: rgba(31, 42, 55, .35);
}

.public-gallery-page .gallery-hero__group {
    color: #1f2a37;
}

.public-gallery-page .gallery-hero__title,
.public-gallery-page .public-topbar h1 {
    margin-bottom: 8px;
    color: #1f2a37;
    font-size: clamp(34px, 4vw, 54px);
    line-height: .98;
}

.public-gallery-page .gallery-hero__lead {
    max-width: 560px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.45;
}

.public-gallery-page .public-topbar .btn-success {
    min-width: 150px;
    min-height: 42px;
    border-radius: 10px;
    border-color: #2f8f7b;
    background: #2f8f7b;
}

.public-gallery-page .public-topbar .btn-success:hover,
.public-gallery-page .public-topbar .btn-success:focus {
    border-color: #277766;
    background: #277766;
}

.public-gallery-page .gallery-sticky-bar {
    width: 100%;
    margin-left: 0;
    margin-bottom: 0 !important;
    border: 1px solid rgba(47, 143, 123, .10);
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 20px rgba(31, 42, 55, .05);
    backdrop-filter: blur(12px);
}

.public-gallery-page .gallery-sticky-bar__content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    padding: 12px 16px !important;
}

.public-gallery-page .gallery-sticky-bar__label {
    color: #2f8f7b;
    letter-spacing: .08em;
}

.public-gallery-page .gallery-sticky-bar__count-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.public-gallery-page .gallery-sticky-bar__count-value {
    color: #1f2a37;
    font-size: 28px;
    line-height: 1;
}

.public-gallery-page .gallery-sticky-bar__hint {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.4;
}

.public-gallery-page .gallery-sticky-bar__button {
    min-width: 190px;
    min-height: 42px;
    border-radius: 10px;
    border-color: #2f8f7b;
    background: #2f8f7b;
}

.public-gallery-page .gallery-sticky-bar__button:hover,
.public-gallery-page .gallery-sticky-bar__button:focus {
    border-color: #277766;
    background: #277766;
}

.public-gallery-page .public-photo-grid.row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.public-gallery-page .public-photo-col {
    display: flex;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    flex: none !important;
}

.public-gallery-page .public-photo-card {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.public-gallery-page .public-photo-col:hover .public-photo-card {
    transform: translateY(-4px);
    box-shadow: none !important;
}

.public-gallery-page .public-photo-col.is-selected .public-photo-card {
    background: transparent !important;
    box-shadow: none !important;
}

.public-gallery-page .photo-card__media {
    position: relative;
    aspect-ratio: auto;
    border: 2px solid transparent;
    border-radius: 12px;
    background: transparent !important;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.public-gallery-page .public-photo-col.is-selected .photo-card__media {
    border-color: rgba(47, 143, 123, .78);
    box-shadow: 0 0 0 4px rgba(47, 143, 123, .12);
}

.public-gallery-page .photo-preview-button img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: center;
    padding: 0;
}

.public-gallery-page .photo-select-form--overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: block;
    padding: 0;
    margin: 0;
}

.public-gallery-page .photo-select-form--overlay button {
    width: 42px !important;
}

.public-gallery-page .photo-select-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(31, 42, 55, .12);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(31, 42, 55, .16);
    color: rgba(47, 143, 123, .42);
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

.public-gallery-page .photo-select-toggle.btn-success {
    border-color: rgba(47, 143, 123, .24);
    background: #fff;
    color: rgba(47, 143, 123, .42);
}

.public-gallery-page .photo-select-toggle:hover,
.public-gallery-page .photo-select-toggle:focus-visible {
    transform: scale(1.04);
    border-color: rgba(47, 143, 123, .34);
    box-shadow: 0 12px 24px rgba(31, 42, 55, .18);
    color: rgba(47, 143, 123, .72);
}

.public-gallery-page .photo-select-toggle.is-selected,
.public-gallery-page .photo-select-toggle.btn-outline-success {
    border-color: #2f8f7b;
    background: #2f8f7b;
    color: #fff;
    box-shadow: 0 12px 26px rgba(47, 143, 123, .28);
}

.public-gallery-page .photo-select-toggle:disabled {
    cursor: wait;
    opacity: .96;
}

.public-gallery-page .photo-select-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    min-height: 18px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.public-gallery-page .photo-select-form--overlay .order-form-message {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: max-content;
    max-width: 220px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(31, 42, 55, .9);
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 12px 20px rgba(31, 42, 55, .2);
}

.public-gallery-page .photo-select-form--overlay .order-form-message.is-error {
    background: rgba(190, 24, 93, .96);
}

.public-gallery-page .photo-card__body {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px !important;
    min-height: 0;
    width: 100%;
    padding: 10px 4px 0 !important;
    background: transparent;
}

.public-gallery-page .photo-card__number {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #dbe5e1;
    border-radius: 8px;
    color: #1f2a37;
    background: rgba(255, 255, 255, .74);
    font-size: 13px;
    font-weight: 700;
}

.public-gallery-page .photo-select-form .btn {
    min-height: 38px;
    border-radius: 8px;
    font-weight: 800;
}

.public-gallery-page .photo-select-form .btn-success {
    border-color: #2f8f7b;
    background: #2f8f7b;
}

.public-gallery-page .photo-select-form .btn-success:hover,
.public-gallery-page .photo-select-form .btn-success:focus {
    border-color: #277766;
    background: #277766;
}

.public-gallery-page .photo-select-form .btn-outline-success {
    color: #2f8f7b;
    border-color: rgba(47, 143, 123, .5);
    background: #fff;
}

.public-gallery-page .photo-select-form .btn-outline-success:hover,
.public-gallery-page .photo-select-form .btn-outline-success:focus {
    color: #fff;
    border-color: #2f8f7b;
    background: #2f8f7b;
}

.public-gallery-page .photo-select-form--overlay .photo-select-toggle.btn-success {
    border-color: rgba(47, 143, 123, .24);
    background: #fff;
    color: rgba(47, 143, 123, .42);
}

.public-gallery-page .photo-select-form--overlay .photo-select-toggle.btn-success:hover,
.public-gallery-page .photo-select-form--overlay .photo-select-toggle.btn-success:focus-visible {
    border-color: rgba(47, 143, 123, .34);
    background: #fff;
    color: rgba(47, 143, 123, .72);
}

.public-gallery-page .photo-select-form--overlay .photo-select-toggle.btn-outline-success,
.public-gallery-page .photo-select-form--overlay .photo-select-toggle.is-selected {
    border-color: #2f8f7b;
    background: #2f8f7b;
    color: #fff;
}

.public-gallery-page .gallery-mobile-cart-bar {
    display: none;
    right: 16px;
    bottom: 14px;
    left: 16px;
    border: 1px solid rgba(47, 143, 123, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 20px 42px rgba(31, 42, 55, .18);
    backdrop-filter: blur(16px);
}

.public-gallery-page .gallery-mobile-cart-bar__text {
    color: #1f2a37;
    font-size: 15px;
    font-weight: 800;
}

.public-gallery-page .gallery-mobile-cart-bar .btn {
    min-width: 124px;
    border-radius: 12px;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .public-gallery-page .public-gallery-hero-inner {
        padding: 22px 24px;
    }

    .public-gallery-page .gallery-sticky-bar__button {
        width: 100%;
        min-width: 0;
    }

    .public-gallery-page .public-photo-grid.row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 768px) {
    .public-gallery-page .public-photo-grid.row > .public-photo-col {
        width: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 767.98px) {
    .public-gallery-page .public-main {
        width: min(100% - 24px, 1800px);
        padding-top: 18px !important;
        padding-bottom: 110px !important;
    }

    .public-gallery-page .page.public-main.public-gallery-shell {
        width: min(100% - 24px, 1800px);
    }

    .public-gallery-page .public-gallery-shell {
        width: min(100% - 24px, 1800px);
    }

    .public-gallery-page .gallery-fluid {
        margin-top: 18px;
        padding-right: 0;
        padding-left: 0;
    }

    .public-gallery-page .public-photo-grid.row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .public-gallery-page .public-gallery-hero-inner {
        padding: 20px 18px;
        border-radius: 14px;
    }

    .public-gallery-page .gallery-hero__divider {
        margin: 0 6px;
    }

    .public-gallery-page .gallery-hero__title,
    .public-gallery-page .public-topbar h1 {
        font-size: 34px;
    }

    .public-gallery-page .gallery-hero__lead {
        font-size: 14px;
    }

    .public-gallery-page .gallery-sticky-bar {
        position: static;
        margin-bottom: 18px !important;
    }

    .public-gallery-page .gallery-sticky-bar .card-body {
        padding: 12px !important;
    }

    .public-gallery-page .gallery-mobile-cart-bar {
        display: flex;
    }

    .public-gallery-page .photo-card__media {
        aspect-ratio: auto;
    }

    .public-gallery-page .photo-preview-button img {
        padding: 0;
    }

    .public-gallery-page .photo-card__body {
        padding: 9px 0 0 !important;
        min-height: 0;
    }

    .public-gallery-page .photo-card__number {
        width: 100%;
        justify-content: center;
        font-size: 13px;
    }

    .public-gallery-page .photo-card__image-frame .photo-card__number--overlay {
        right: 8px;
        bottom: 8px;
        width: auto;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .public-gallery-page .public-photo-grid.row {
        grid-template-columns: 1fr;
    }
}



/* Public gallery stable grid */
.public-gallery-page .public-photo-grid,
.public-gallery-page .public-photo-grid.row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin: 0;
}

.public-gallery-page .public-photo-col {
    display: block !important;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    flex: none !important;
}

.public-gallery-page .public-photo-col > .card,
.public-gallery-page .public-photo-card {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.public-gallery-page .public-photo-col > .card:hover,
.public-gallery-page .public-photo-col.is-selected > .card {
    transform: none;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
}

.public-gallery-page .photo-card__media {
    position: relative;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: #f3f5f4 !important;
    box-shadow: inset 0 0 0 1px rgba(31, 42, 55, 0.08), 0 8px 18px rgba(31, 42, 55, 0.08);
}

.public-gallery-page .public-photo-col.is-selected .photo-card__media {
    box-shadow: inset 0 0 0 2px rgba(47, 143, 123, 0.95);
}

.public-gallery-page .public-photo-col.is-selected .photo-card__media.is-portrait,
.public-gallery-page .public-photo-col.is-selected .photo-card__media.is-landscape {
    border-color: transparent !important;
    box-shadow: inset 0 0 0 1px rgba(31, 42, 55, 0.08), 0 8px 18px rgba(31, 42, 55, 0.08);
}

.public-gallery-page .public-photo-col.is-selected .photo-card__media.is-portrait .photo-card__image-frame,
.public-gallery-page .public-photo-col.is-selected .photo-card__media.is-landscape .photo-card__image-frame {
    box-shadow: 0 0 0 1px rgba(47, 143, 123, 0.18), 0 0 22px rgba(47, 143, 123, 0.32);
}

.public-gallery-page .public-photo-col.is-selected .photo-card__media.is-portrait .photo-card__image-frame::after,
.public-gallery-page .public-photo-col.is-selected .photo-card__media.is-landscape .photo-card__image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 4px solid rgba(47, 143, 123, 0.95);
    border-radius: inherit;
    pointer-events: none;
}

.public-gallery-page .photo-card__image-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.public-gallery-page .photo-card__media.is-portrait .photo-card__image-frame {
    flex: 0 0 auto;
    width: fit-content;
    height: 100%;
    aspect-ratio: var(--photo-aspect-ratio, 3 / 4);
    margin-right: auto;
    margin-left: auto;
}

.public-gallery-page .photo-card__media.is-landscape .photo-card__image-frame {
    width: 100%;
    height: auto;
    aspect-ratio: var(--photo-aspect-ratio, 4 / 3);
}

.public-gallery-page .photo-preview-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: transparent;
}

.public-gallery-page .photo-card__media.is-portrait .photo-preview-button {
    width: 100% !important;
    height: 100%;
}

.public-gallery-page .photo-preview-button img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: 0;
}

.public-gallery-page .photo-card__media.is-portrait .photo-preview-button img {
    width: 100%;
    height: 100%;
}

.public-gallery-page .public-photo-card .card-body,
.public-gallery-page .photo-card__body {
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    height: auto !important;
    padding: 8px 0 0 !important;
    background: transparent;
}

.public-gallery-page .photo-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 0 auto;
    padding: 6px 10px;
    border: 1px solid #dbe5e1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
}

.public-gallery-page .photo-card__number--overlay {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 5px 9px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: rgba(17, 24, 39, 0.58);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
    pointer-events: none;
}

.public-gallery-page .photo-card__image-frame .photo-card__number--overlay {
    right: 10px;
    bottom: 10px;
    width: auto;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .public-gallery-page .public-photo-grid,
    .public-gallery-page .public-photo-grid.row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 575.98px) {
    .public-gallery-page .public-photo-grid,
    .public-gallery-page .public-photo-grid.row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .public-gallery-page .photo-card__media {
        border-radius: 10px;
        box-shadow: inset 0 0 0 1px rgba(31, 42, 55, 0.07), 0 5px 12px rgba(31, 42, 55, 0.06);
    }

    .public-gallery-page .public-photo-card .card-body,
    .public-gallery-page .photo-card__body {
        min-height: 30px;
        padding-top: 5px !important;
    }

    .public-gallery-page .photo-card__number {
        min-height: 26px;
        padding: 3px 6px;
        border-radius: 6px;
        font-size: 11px;
        line-height: 1.1;
    }

    .public-gallery-page .photo-card__image-frame .photo-card__number--overlay {
        right: 8px;
        bottom: 8px;
        width: auto;
    }

    .public-gallery-page .photo-card__media .photo-select-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
        max-width: 30px;
        max-height: 30px;
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
        padding: 0;
        border-radius: 50%;
        top: 7px;
        right: 7px;
        font-size: 13px;
        line-height: 1;
    }

    .public-gallery-page .photo-select-toggle__icon {
        min-width: 14px;
        font-size: 13px;
        line-height: 1;
    }
}

@media (max-width: 340px) {
    .public-gallery-page .public-photo-grid,
    .public-gallery-page .public-photo-grid.row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.public-gallery-page .photo-card__media.is-portrait {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.public-gallery-page .public-photo-col.is-selected .photo-card__media.is-portrait {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.public-gallery-page .photo-card__media.is-portrait .photo-card__image-frame {
    overflow: hidden;
}

.public-gallery-page .photo-card__media.is-landscape {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    align-items: center;
    background: transparent !important;
    overflow: visible;
}

.public-gallery-page .photo-card__media.is-landscape .photo-card__image-frame {
    overflow: hidden;
}

.public-gallery-page .public-photo-col:has(.photo-card__media.is-landscape) {
    align-self: center;
}

.public-gallery-page .photo-select-form--overlay .photo-select-toggle {
    width: 44px !important;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    color: #fff;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.72)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.34));
}

.public-gallery-page .photo-select-form--overlay .photo-select-toggle.btn-success,
.public-gallery-page .photo-select-form--overlay .photo-select-toggle.btn-success:hover,
.public-gallery-page .photo-select-form--overlay .photo-select-toggle.btn-success:focus-visible {
    color: #fff;
    background: transparent !important;
}

.public-gallery-page .photo-select-form--overlay .photo-select-toggle.btn-outline-success,
.public-gallery-page .photo-select-form--overlay .photo-select-toggle.is-selected,
.public-gallery-page .photo-select-form--overlay .photo-select-toggle.btn-outline-success:hover,
.public-gallery-page .photo-select-form--overlay .photo-select-toggle.is-selected:hover,
.public-gallery-page .photo-select-form--overlay .photo-select-toggle.btn-outline-success:focus-visible,
.public-gallery-page .photo-select-form--overlay .photo-select-toggle.is-selected:focus-visible {
    color: #2f8f7b;
    background: transparent !important;
}

.public-gallery-page .photo-select-form--overlay .photo-select-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    width: 28px;
    height: 28px;
}

.public-gallery-page .photo-cart-icon {
    display: block;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.calendar-event-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    align-items: end;
}

.calendar-event-form label,
.calendar-month-filter label {
    display: grid;
    gap: 7px;
    color: #44635b;
    font-size: 13px;
    font-weight: 700;
}

.calendar-event-form__wide {
    grid-column: 1 / -1;
}

.calendar-event-form__actions,
.calendar-row-actions,
.calendar-toolbar,
.calendar-month-filter,
.calendar-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.calendar-event-form__actions {
    grid-column: 1 / -1;
}

.calendar-event-form__actions button,
.calendar-row-actions button,
.calendar-month-filter button {
    width: auto;
}

.calendar-toolbar {
    justify-content: space-between;
    margin-bottom: 18px;
}

.calendar-toolbar h2 {
    margin: 0;
}

.calendar-status,
.calendar-day__event,
.calendar-legend__mark {
    border-radius: 999px;
}

.calendar-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.calendar-status--busy {
    background: #dff5ee;
    color: #176451;
    border: 1px solid rgba(47, 143, 123, 0.28);
}

.calendar-status--tentative {
    background: #fff7db;
    color: #7c5d00;
    border: 1px solid rgba(190, 143, 0, 0.24);
}

.calendar-status--unavailable {
    background: #eef1f3;
    color: #5d6873;
    border: 1px solid rgba(93, 104, 115, 0.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.calendar-weekday {
    color: #607d8b;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 116px;
    padding: 10px;
    border: 1px solid #d8e2df;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.calendar-day--empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.calendar-day--busy {
    background: linear-gradient(180deg, #ffffff 0%, #eefaf6 100%);
}

.calendar-day--tentative {
    background: linear-gradient(180deg, #ffffff 0%, #fff9e8 100%);
}

.calendar-day--unavailable {
    background: linear-gradient(180deg, #ffffff 0%, #f1f4f5 100%);
}

.calendar-day__number {
    margin-bottom: 8px;
    color: #1f2a37;
    font-size: 20px;
    font-weight: 900;
}

.calendar-day__event {
    display: block;
    margin-top: 6px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 800;
}

.calendar-legend {
    margin-top: 18px;
    color: #44635b;
    font-size: 13px;
    font-weight: 700;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.calendar-legend__mark {
    width: 14px;
    height: 14px;
    display: inline-block;
}

@media (max-width: 720px) {
    .calendar-grid {
        gap: 6px;
    }

    .calendar-day {
        min-height: 86px;
        padding: 7px;
        border-radius: 10px;
    }

    .calendar-day__number {
        font-size: 16px;
    }

    .calendar-day__event {
        padding: 4px 6px;
        font-size: 10px;
    }
}
