/* Admin: warunki lokalu (strona Pakiet lokalu) */
.lp-admin { display: grid; gap: 18px; }
.lp-admin [hidden] { display: none !important; }

.lp-admin-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lp-admin-status-card {
    display: grid; gap: 4px; padding: 14px 16px;
    border: 1px solid #dce5f1; border-radius: 14px; background: #f8fafd;
}
.lp-admin-status-card small { color: #718096; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lp-admin-status-card strong { color: #172033; font-size: 14px; }
.lp-admin-status-card > span { color: #4a5568; font-size: 12px; }
.lp-admin-status-card.is-scheduled { border-color: #fcd9a8; background: #fff8ed; }
.lp-admin-status-card.is-scheduled small { color: #b45309; }
.lp-link-button {
    display: inline-flex; align-items: center; gap: 5px; justify-self: start; margin-top: 2px; padding: 0;
    border: 0; background: none; color: #b42318; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.lp-link-button svg { width: 14px; height: 14px; }

.lp-admin-form { display: grid; gap: 16px; }
.lp-step { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lp-step legend { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0; color: #172033; font-size: 13px; font-weight: 800; }
.lp-step legend b {
    display: inline-grid; place-items: center; width: 22px; height: 22px;
    border-radius: 50%; background: #2563eb; color: #fff; font-size: 11px;
}

.lp-offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-option { position: relative; display: block; cursor: pointer; }
.lp-option input { position: absolute; opacity: 0; pointer-events: none; }
.lp-option > span {
    display: grid; grid-template-columns: auto 1fr; column-gap: 11px; row-gap: 2px; height: 100%; padding: 14px 16px;
    border: 1px solid #dce5f1; border-radius: 14px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
}
.lp-option svg { grid-row: 1 / 3; width: 20px; height: 20px; color: #2563eb; }
.lp-option strong { color: #172033; font-size: 13px; }
.lp-option small { color: #718096; font-size: 12px; line-height: 1.4; }
.lp-option input:checked + span { border-color: #2563eb; background: #f1f6ff; box-shadow: 0 0 0 3px #dbeafe; }
.lp-option input:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 2px; }

.lp-seat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(130px, 1.2fr); gap: 8px; align-items: stretch; }
.lp-seat-chip {
    display: grid; gap: 2px; justify-items: center; padding: 10px 6px;
    border: 1px solid #dce5f1; border-radius: 12px; background: #fff; color: #172033; font: inherit; cursor: pointer;
}
.lp-seat-chip strong { font-size: 17px; }
.lp-seat-chip small { color: #718096; font-size: 11px; }
.lp-seat-chip:hover { border-color: #93b4f5; }
.lp-seat-chip.is-active { border-color: #2563eb; background: #f1f6ff; box-shadow: 0 0 0 3px #dbeafe; }
.lp-seat-custom { display: grid; gap: 4px; padding: 6px 10px; border: 1px solid #dce5f1; border-radius: 12px; background: #fff; }
.lp-seat-custom span { color: #718096; font-size: 11px; font-weight: 700; }
.lp-seat-custom input { width: 100%; padding: 2px 0; border: 0; background: none; color: #172033; font: inherit; font-size: 16px; font-weight: 700; }
.lp-seat-custom input:focus { outline: none; }
.lp-seat-custom:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.lp-hint { margin: 0; color: #718096; font-size: 12px; }

.lp-individual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.lp-individual-grid .field { display: grid; gap: 6px; }
.lp-individual-grid .field > span { color: #2d3748; font-size: 12px; font-weight: 700; }
.lp-limit-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid #dce5f1; border-radius: 11px; background: #f4f7fb; }
.lp-limit-toggle label { position: relative; cursor: pointer; }
.lp-limit-toggle input { position: absolute; opacity: 0; }
.lp-limit-toggle span { display: block; padding: 7px 12px; border-radius: 8px; color: #4a5568; font-size: 12px; font-weight: 700; text-align: center; }
.lp-limit-toggle input:checked + span { background: #fff; color: #1d4ed8; box-shadow: 0 1px 4px rgba(22, 48, 85, .12); }

.lp-admin-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding-top: 16px; border-top: 1px solid #e8eef6;
}
.lp-summary { display: grid; gap: 2px; min-width: 0; }
.lp-summary small { color: #718096; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lp-summary strong { color: #172033; font-size: 15px; }
.lp-summary span { color: #2563eb; font-size: 12px; font-weight: 700; }

/* Rozliczenia: linia pakietu pod nazwą lokalu */
.payu-package-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; color: #4a5568; font-size: 12px; }
.payu-package-line svg { width: 14px; height: 14px; color: #2563eb; }
.payu-package-line a { color: #2563eb; font-weight: 700; text-decoration: none; white-space: nowrap; }
.payu-package-line a:hover { text-decoration: underline; }
.payu-location-info { display: grid; gap: 2px; justify-items: start; }

/* Dodawanie obiektu: wybór pakietu */
.lp-new-package { display: grid; gap: 10px; margin: 0; padding: 18px; border: 1px solid #dce5f1; border-radius: 16px; background: #f8fbff; min-width: 0; }
.lp-new-title { display: flex; align-items: center; gap: 8px; padding: 0; color: #172033; font-size: 15px; font-weight: 800; }
.lp-new-title svg { width: 18px; height: 18px; color: #2563eb; }
.lp-new-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.lp-new-option { position: relative; display: block; cursor: pointer; }
.lp-new-option > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.lp-new-option > span {
    display: grid; gap: 4px; height: 100%; padding: 12px; border: 1px solid #dce5f1; border-radius: 13px; background: #fff;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.lp-new-option strong { color: #172033; font-size: 14px; }
.lp-new-option em { color: #1d4ed8; font-size: 18px; font-style: normal; font-weight: 800; }
.lp-new-option em small { display: block; color: #718096; font-size: 11px; font-weight: 600; }
.lp-new-option b { justify-self: start; padding: 2px 8px; border-radius: 999px; background: #eef2f7; color: #4a5568; font-size: 11px; font-weight: 700; }
.lp-new-option b.is-trial { background: #dcfce7; color: #166534; }
.lp-new-option input[type="number"] { width: 100%; padding: 4px 8px; border: 1px solid #dce5f1; border-radius: 8px; color: #172033; font: inherit; font-weight: 700; }
.lp-new-option > input[type="radio"]:checked + span { border-color: #2563eb; background: #f1f6ff; box-shadow: 0 0 0 3px #dbeafe; }
.lp-new-option > input[type="radio"]:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 2px; }
.lp-new-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: #ecfdf3; color: #166534; font-size: 13px; font-weight: 600; }
.lp-new-note.is-pay { background: #eff6ff; color: #1d4ed8; }
.lp-new-note:empty { display: none; }


@media (max-width: 760px) {
    .lp-new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-offer-grid, .lp-individual-grid { grid-template-columns: 1fr; }
    .lp-seat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lp-seat-custom { grid-column: 1 / -1; }
    .lp-admin-footer { flex-direction: column; align-items: stretch; }
    .lp-admin-footer .button { width: 100%; justify-content: center; }
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .lp-option > span, [data-theme="auto"] .lp-seat-chip, [data-theme="auto"] .lp-seat-custom { background: transparent; }
}

/* Edycja obiektu: baner „czeka na płatność” / okres testowy */
.lp-pay-banner {
    display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 16px; padding: 16px 18px;
    border: 1px solid #fcd9a8; border-radius: 16px; background: #fff8ed;
}
.lp-pay-banner.is-trial { border-color: #bbf7d0; background: #f0fdf4; }
.lp-pay-banner-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fde7c4; color: #b45309; }
.lp-pay-banner.is-trial .lp-pay-banner-icon { background: #dcfce7; color: #166534; }
.lp-pay-banner-icon svg { width: 20px; height: 20px; }
.lp-pay-banner strong { color: #172033; font-size: 15px; }
.lp-pay-banner p { margin: 3px 0 0; color: #4a5568; font-size: 13px; line-height: 1.45; }
.lp-pay-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.lp-pay-banner-actions form { margin: 0; }
@media (max-width: 760px) {
    .lp-pay-banner { grid-template-columns: auto 1fr; }
    .lp-pay-banner-actions { grid-column: 1 / -1; justify-content: stretch; }
    .lp-pay-banner-actions > *, .lp-pay-banner-actions .button { flex: 1; justify-content: center; }
}
