/* Photo calendar — cart & checkout month previews */
.pc-cal-cart {
    margin-top: 0.85rem;
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafbfc;
}

.pc-cal-cart--compact {
    margin-top: 0.5rem;
    padding: 0.55rem 0.65rem;
}

.pc-cal-cart__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.pc-cal-cart__head strong {
    display: block;
    color: #1a365d;
    font-size: 0.95rem;
}

.pc-cal-cart__meta,
.pc-cal-cart__count {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
}

.pc-cal-cart__count {
    white-space: nowrap;
    font-weight: 700;
    color: #c5a059;
}

.pc-cal-cart__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.65rem;
}

.pc-cal-cart__spec {
    font-size: 0.78rem;
    color: #374151;
}

.pc-cal-cart__promo {
    font-size: 0.76rem;
    color: #047857;
    background: #ecfdf5;
    border: 1px dashed #6ee7b7;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.pc-cal-cart__actions {
    margin-bottom: 0.75rem;
}

.pc-cal-cart__edit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a365d;
    text-decoration: none;
}

.pc-cal-cart__edit:hover {
    color: #c5a059;
}

/* Single-row horizontal scroll for all 12 months */
.pc-cal-cart__scroll-wrap {
    position: relative;
    margin-top: 0.25rem;
}

.pc-cal-cart__scroll-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.pc-cal-cart__scroll-hint span:last-child {
    color: #c5a059;
    white-space: nowrap;
}

.pc-cal-cart__grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #c5a059 #eef2f7;
    padding: 0.15rem 0.1rem 0.45rem;
}

.pc-cal-cart__grid::-webkit-scrollbar {
    height: 6px;
}

.pc-cal-cart__grid::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 999px;
}

.pc-cal-cart__grid::-webkit-scrollbar-thumb {
    background: #c5a059;
    border-radius: 999px;
}

.pc-cal-cart__month {
    flex: 0 0 auto;
    width: 68px;
    scroll-snap-align: start;
}

.pc-cal-cart--compact .pc-cal-cart__month {
    width: 58px;
}

.pc-cal-cart__month-preview {
    width: 100%;
    height: 88px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.pc-cal-cart--compact .pc-cal-cart__month-preview {
    height: 72px;
}

.pc-cal-cart__month-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pc-cal-cart__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #cbd5e1;
    font-size: 0.95rem;
    background: #f8fafc;
}

.pc-cal-cart__month-label {
    margin-top: 0.2rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-align: center;
    color: #1a365d;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-cal-cart__photos {
    display: none;
}

@media (max-width: 768px) {
    .pc-cal-cart__month {
        width: 62px;
    }

    .pc-cal-cart__month-preview {
        height: 80px;
    }

    .pc-cal-cart--compact .pc-cal-cart__month {
        width: 54px;
    }

    .pc-cal-cart--compact .pc-cal-cart__month-preview {
        height: 68px;
    }
}

/* Single-page calendar — one full-sheet preview instead of 12-month scroll */
.pc-cal-cart--single-page .pc-cal-cart__scroll-hint span:last-child {
    display: none;
}

.pc-cal-cart--single-page .pc-cal-cart__grid {
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0.15rem;
}

.pc-cal-cart--single-page .pc-cal-cart__month {
    width: min(100%, 240px);
}

.pc-cal-cart--single-page .pc-cal-cart__month-preview {
    height: auto;
    aspect-ratio: 210 / 297;
    max-height: 320px;
}

.pc-cal-cart--single-page .pc-cal-cart__month-preview img {
    object-fit: contain;
    background: #fff;
}

.pc-cal-cart--compact.pc-cal-cart--single-page .pc-cal-cart__month {
    width: min(100%, 180px);
}

.pc-cal-cart--compact.pc-cal-cart--single-page .pc-cal-cart__month-preview {
    max-height: 240px;
}
