.kampio-smart-pricing {
    margin: 28px 0 32px;
    padding: 24px;
    border: 1px solid #dbe3ea;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
}

body.kampio-smart-pricing-no-scroll {
    overflow: hidden;
}

.kampio-smart-pricing__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f2d3a;
}

.kampio-smart-pricing__intro,
.kampio-smart-pricing__hint,
.kampio-smart-pricing__confirm-note,
.kampio-smart-pricing__scroll-hint {
    margin: 0 0 12px;
    font-size: .88rem;
    color: #64748b;
    line-height: 1.5;
}

.kampio-smart-pricing__scroll-hint {
    font-size: .8rem;
    font-style: italic;
}

.kampio-smart-pricing__paste label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: .92rem;
}

.kampio-smart-pricing__textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: .9rem;
    line-height: 1.45;
    resize: vertical;
}

.kampio-smart-pricing__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.kampio-smart-pricing__preview-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 8px 0 16px;
}

.kampio-smart-pricing__cards-view {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: hidden;
    padding-right: 2px;
}

.kampio-smart-pricing__cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.kampio-smart-pricing__card {
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: #fff;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(15, 45, 58, .06);
    min-width: 0;
}

.kampio-smart-pricing__card.is-editing {
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .15);
}

.kampio-smart-pricing__card-head {
    margin-bottom: 4px;
}

.kampio-smart-pricing__card-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.4;
    word-break: break-word;
    color: #0f2d3a;
}

.kampio-smart-pricing__card-head .kampio-smart-pricing__badge--review {
    margin-top: 8px;
}

.kampio-smart-pricing__card-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 28px;
    padding: 18px 0 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eef2f6;
}

.kampio-smart-pricing__card-hero-price {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f2d3a;
    word-break: break-word;
}

.kampio-smart-pricing__card-hero-meta {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    word-break: break-word;
}

.kampio-smart-pricing__card-hero-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kampio-smart-pricing__card-hero-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.kampio-smart-pricing__card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0 0 14px;
}

.kampio-smart-pricing__card-details dt {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    margin-bottom: 2px;
}

.kampio-smart-pricing__card-details dd {
    margin: 0 0 6px;
    font-size: .92rem;
    line-height: 1.5;
    color: #0f2d3a;
    word-break: break-word;
    white-space: pre-wrap;
}

.kampio-smart-pricing__card-details--wide {
    grid-column: 1 / -1;
}

.kampio-smart-pricing__card-edit-lead {
    margin: 0 0 12px;
    font-size: .85rem;
    color: #64748b;
}

.kampio-smart-pricing__cards-section {
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #475569;
    padding: 16px 4px 6px;
}

.kampio-smart-pricing__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.kampio-smart-pricing__btn--primary {
    background: #0f2d3a;
    color: #fff;
}

.kampio-smart-pricing__btn--secondary {
    background: #fff;
    color: #0f2d3a;
    border-color: #cbd5e1;
}

.kampio-smart-pricing__btn--ghost {
    background: transparent;
    color: #64748b;
    border-color: transparent;
    padding-left: 0;
    font-weight: 600;
}

.kampio-smart-pricing__btn--ghost:hover {
    color: #0f2d3a;
    text-decoration: underline;
}

.kampio-smart-pricing__btn.is-active {
    background: #e8eef4;
    border-color: #94a3b8;
}

.kampio-smart-pricing__btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.kampio-smart-pricing__file-label input {
    display: none;
}

.kampio-smart-pricing__status {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .88rem;
    background: #eff6ff;
    color: #1e40af;
}

.kampio-smart-pricing__status.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.kampio-smart-pricing__status.is-success {
    background: #ecfdf5;
    color: #047857;
}

.kampio-smart-pricing__warnings {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #b45309;
    font-size: .85rem;
}

.kampio-smart-pricing__meta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #dbe3ea;
}

.kampio-smart-pricing__meta h4,
.kampio-smart-pricing__preview-head h4 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 800;
}

.kampio-smart-pricing__meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.kampio-smart-pricing__meta-grid label,
.kampio-smart-pricing__meta-full {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
}

.kampio-smart-pricing__meta-full {
    margin-bottom: 12px;
}

.kampio-smart-pricing__meta input,
.kampio-smart-pricing__meta textarea,
.kampio-smart-pricing__table input,
.kampio-smart-pricing__table select,
.kampio-smart-pricing__table textarea,
.kampio-smart-pricing__card input,
.kampio-smart-pricing__card select,
.kampio-smart-pricing__card textarea {
    font: inherit;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.kampio-smart-pricing__preview {
    margin-top: 20px;
}

.kampio-smart-pricing__preview.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 10050;
    margin: 0;
    padding: 16px 20px 20px;
    overflow: hidden;
    background: #eef2f6;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.kampio-smart-pricing__preview.is-fullscreen .kampio-smart-pricing__preview-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.kampio-smart-pricing__preview-panel {
    min-width: 0;
}

.kampio-smart-pricing__preview-head,
.kampio-smart-pricing__summary,
.kampio-smart-pricing__preview-controls,
.kampio-smart-pricing__toolbar--preview {
    flex-shrink: 0;
}

.kampio-smart-pricing__preview.is-fullscreen .kampio-smart-pricing__table-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.kampio-smart-pricing__preview.is-fullscreen .kampio-smart-pricing__table-scroll {
    max-height: none;
    height: 100%;
    min-height: 0;
}

.kampio-smart-pricing__preview.is-fullscreen .kampio-smart-pricing__cards-view {
    flex: 1;
    max-height: none;
    min-height: 0;
}

.kampio-smart-pricing__summary {
    margin: 0 0 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.kampio-smart-pricing__summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px 16px;
}

.kampio-smart-pricing__summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kampio-smart-pricing__summary-item .label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    font-weight: 700;
}

.kampio-smart-pricing__summary-item strong {
    font-size: 1.1rem;
    color: #0f2d3a;
}

.kampio-smart-pricing__table-view {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.kampio-smart-pricing__table-scroll {
    width: 100%;
    flex: 1;
    min-height: 280px;
    max-height: min(72vh, 760px);
    overflow-x: scroll;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: auto;
    scrollbar-color: #64748b #e2e8f0;
    cursor: grab;
    touch-action: pan-x pan-y;
}

.kampio-smart-pricing__table-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.kampio-smart-pricing__table-scroll:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.kampio-smart-pricing__table-scroll::-webkit-scrollbar {
    height: 16px;
    width: 14px;
}

.kampio-smart-pricing__table-scroll::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 8px;
    border: 3px solid #e2e8f0;
    min-width: 48px;
}

.kampio-smart-pricing__table-scroll::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.kampio-smart-pricing__table-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 0 0 12px 12px;
}

.kampio-smart-pricing__table-scroll::-webkit-scrollbar-corner {
    background: #e2e8f0;
}

.kampio-smart-pricing__table {
    width: max-content;
    min-width: 1680px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .86rem;
}

.kampio-smart-pricing__table th,
.kampio-smart-pricing__table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f6;
    vertical-align: top;
    text-align: left;
}

.kampio-smart-pricing__table th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f1f5f9;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
    box-shadow: 0 1px 0 #cbd5e1;
}

.kampio-smart-pricing__table .col-category { min-width: 140px; }
.kampio-smart-pricing__table .col-group { min-width: 200px; }
.kampio-smart-pricing__table .col-name { min-width: 300px; }
.kampio-smart-pricing__table .col-price { min-width: 110px; }
.kampio-smart-pricing__table .col-currency { min-width: 80px; }
.kampio-smart-pricing__table .col-taxes { min-width: 120px; }
.kampio-smart-pricing__table .col-free,
.kampio-smart-pricing__table .col-active { min-width: 70px; text-align: center; }
.kampio-smart-pricing__table .col-age { min-width: 80px; }
.kampio-smart-pricing__table .col-period { min-width: 260px; }
.kampio-smart-pricing__table .col-date { min-width: 140px; }
.kampio-smart-pricing__table .col-type { min-width: 140px; }
.kampio-smart-pricing__table .col-notes { min-width: 380px; }
.kampio-smart-pricing__table .col-actions { min-width: 48px; }

.kampio-smart-pricing__field-wrap {
    width: 100%;
}

.kampio-smart-pricing__field-text {
    width: 100%;
    min-height: 38px;
    resize: vertical;
    overflow: hidden;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.kampio-smart-pricing__field-text.is-expanded {
    min-height: 120px;
    max-height: none;
    overflow: auto;
    box-shadow: inset 0 0 0 2px #93c5fd;
}

.kampio-smart-pricing__table .needs-review {
    border-color: #fbbf24;
    background: #fffbeb;
}

.kampio-smart-pricing__section-row td {
    background: #e8eef4;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 1px solid #cbd5e1;
    padding-top: 12px;
}

.kampio-smart-pricing__row-remove {
    background: none;
    border: none;
    color: #b91c1c;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.kampio-smart-pricing__toolbar--preview {
    margin-top: 14px;
}

.kampio-smart-pricing__save-feedback {
    flex-basis: 100%;
    width: 100%;
    margin: 4px 0 0;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.45;
}

.kampio-smart-pricing__save-feedback.is-success {
    color: #047857;
}

.kampio-smart-pricing__save-feedback.is-error {
    color: #b91c1c;
}

.kampio-smart-pricing__saved-banner {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: .9rem;
    font-weight: 800;
}

.kampio-smart-pricing__preview.is-saved .kampio-smart-pricing__confirm-note {
    color: #047857;
}

.kampio-smart-pricing__saved-dashboard {
    padding: 20px 22px;
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
    margin-bottom: 20px;
}

.kampio-smart-pricing__saved-title {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 800;
    color: #065f46;
}

.kampio-smart-pricing__saved-intro {
    margin: 0 0 16px;
    font-size: .9rem;
    line-height: 1.5;
    color: #475569;
}

.kampio-smart-pricing__saved-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px 16px;
    margin-bottom: 18px;
}

.kampio-smart-pricing__saved-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #d1fae5;
}

.kampio-smart-pricing__saved-summary-item .label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.kampio-smart-pricing__saved-summary-item strong {
    font-size: 1.25rem;
    color: #0f2d3a;
}

.kampio-smart-pricing__saved-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kampio-manual-pricing {
    margin-top: 8px;
}

.kampio-smart-pricing__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.kampio-smart-pricing__badge--emplacement { background: #dbeafe; color: #1e40af; }
.kampio-smart-pricing__badge--vehicule { background: #fef3c7; color: #92400e; }
.kampio-smart-pricing__badge--visiteur,
.kampio-smart-pricing__badge--enfant,
.kampio-smart-pricing__badge--adulte { background: #d1fae5; color: #065f46; }
.kampio-smart-pricing__badge--extra { background: #fce7f3; color: #9d174d; }
.kampio-smart-pricing__badge--animal { background: #ede9fe; color: #5b21b6; }
.kampio-smart-pricing__badge--autre { background: #f1f5f9; color: #475569; }
.kampio-smart-pricing__badge--review { background: #fef2f2; color: #b91c1c; margin-left: 6px; }

.kampio-smart-pricing__card.is-needs-review {
    border-color: #fbbf24;
    box-shadow: 0 0 0 1px #fde68a;
}

.kampio-smart-pricing__card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

.kampio-smart-pricing__btn--sm {
    padding: 7px 12px;
    font-size: .8rem;
}

.kampio-smart-pricing__btn--danger {
    background: #fff;
    color: #b91c1c;
    border-color: #fecaca;
}

.kampio-smart-pricing__cell-label {
    display: block;
    font-size: .78rem;
    color: #334155;
    margin-bottom: 4px;
    word-break: break-word;
}

.kampio-smart-pricing__table tr.is-needs-review td {
    background: #fffbeb;
}

.kampio-smart-pricing__section-row--vehicule td { background: #fef3c7; color: #92400e; }
.kampio-smart-pricing__section-row--visitor td { background: #d1fae5; color: #065f46; }
.kampio-smart-pricing__section-row--extra td { background: #fce7f3; color: #9d174d; }
.kampio-smart-pricing__section-row--notes td { background: #f1f5f9; color: #475569; }

.kampio-smart-pricing__cards-section--vehicule { color: #92400e; }
.kampio-smart-pricing__cards-section--visitor { color: #065f46; }
.kampio-smart-pricing__cards-section--extra { color: #9d174d; }
.kampio-smart-pricing__cards-section--notes { color: #475569; }

.kampio-smart-pricing__summary-item--warn strong { color: #b45309; }

.kampio-smart-pricing__block-rates {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.kampio-smart-pricing__block-rate {
    position: relative;
    padding: 8px 0 8px 18px;
    font-size: 1rem;
    line-height: 1.5;
    color: #0f2d3a;
    word-break: break-word;
}

.kampio-smart-pricing__block-rate::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #64748b;
    font-weight: 700;
}

.kampio-smart-pricing__block-rate-price {
    font-weight: 800;
    color: #0f2d3a;
}

.kampio-smart-pricing__block-rate-review {
    font-size: .82rem;
    font-weight: 600;
    color: #b45309;
}

.kampio-smart-pricing__block-footer {
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

.kampio-smart-pricing__block-footer-taxes {
    margin: 0 0 6px;
    font-size: .95rem;
    font-weight: 700;
    color: #334155;
}

.kampio-smart-pricing__block-footer-meta {
    margin: 0 0 4px;
    font-size: .88rem;
    line-height: 1.45;
    color: #64748b;
    word-break: break-word;
    white-space: pre-wrap;
}

.kampio-smart-pricing__block-edit-shared {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #dbe3ea;
}

.kampio-smart-pricing__block-edit-shared label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
    color: #64748b;
}

.kampio-smart-pricing__block-edit-shared label.wide {
    grid-column: 1 / -1;
}

.kampio-smart-pricing__block-edit-lines {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
}

.kampio-smart-pricing__block-line-edit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.kampio-smart-pricing__block-line-edit label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
    color: #64748b;
}

.kampio-smart-pricing__block-line-edit label.wide {
    grid-column: 1 / -1;
}

.kampio-smart-pricing__extra-fees {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kampio-smart-pricing__extra-fee-name {
    font-weight: 700;
    color: #0f2d3a;
    font-size: .95rem;
    margin-bottom: 4px;
}

.kampio-smart-pricing__extra-fee-price {
    font-size: .92rem;
    color: #334155;
}

.kampio-smart-pricing__extra-conditions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.kampio-smart-pricing__extra-conditions-title {
    margin: 0 0 8px;
    font-size: .85rem;
    font-weight: 700;
    color: #64748b;
}

.kampio-smart-pricing__extra-conditions-list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: .88rem;
    color: #475569;
    line-height: 1.55;
}

.kampio-smart-pricing__extra-conditions-list li + li {
    margin-top: 4px;
}

.kampio-smart-pricing__cards-section--animal { color: #5b21b6; }
.kampio-smart-pricing__section-row--animal td { background: #ede9fe; color: #5b21b6; }

.kampio-smart-pricing__card-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.kampio-smart-pricing__card-edit-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
    color: #64748b;
}

.kampio-smart-pricing__card-edit-grid label.wide { grid-column: span 2; }
.kampio-smart-pricing__card-edit-grid label.full { grid-column: 1 / -1; }

@media (max-width: 720px) {
    .kampio-smart-pricing {
        padding: 16px;
    }
    .kampio-smart-pricing__toolbar,
    .kampio-smart-pricing__preview-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .kampio-smart-pricing__btn {
        width: 100%;
    }
    .kampio-smart-pricing__btn--ghost {
        width: auto;
        align-self: flex-start;
    }
    .kampio-smart-pricing__cards-grid {
        grid-template-columns: 1fr;
    }
    .kampio-smart-pricing__card-details {
        grid-template-columns: 1fr;
    }
    .kampio-smart-pricing__block-line-edit {
        grid-template-columns: 1fr;
    }
    .kampio-smart-pricing__block-edit-shared {
        grid-template-columns: 1fr;
    }
}
