/* Live price list editor (price-list-live-editor.js) — Hollywood palette */

/* Saved changes, visible to everyone */
.pe-old { color: #A99C8D; font-weight: 400; font-size: 0.85em; margin: 0 0.25rem; }
.pe-old-block { display: block; margin-top: 0.2rem; color: #A99C8D; text-decoration: line-through; font-size: 0.8rem; }
.pe-badge, [data-pe-removed-badge]:not([data-pe-removed-badge=""])::after {
    display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.4rem; vertical-align: middle;
    font: 600 0.55rem/1.4 Montserrat, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
    color: #F5F1EB; background: #806553; border-radius: 0.25rem; white-space: nowrap;
}
[data-pe-removed-badge]:not([data-pe-removed-badge=""])::after { content: attr(data-pe-removed-badge); background: #8A6B45; }
.pe-changed { box-shadow: -3px 0 0 #B08A5A; padding-left: 0.5rem; }
.pe-removed { opacity: 0.45; }
.pe-removed, .pe-removed * { text-decoration: line-through; }
.pe-removed [data-pe-removed-badge]::after { text-decoration: none; }
body:not(.pe-editing) .pe-hidden { display: none !important; }
.pe-editing .pe-hidden { opacity: 0.3; }

/* Edit mode */
.pe-editing main [data-pe-id] { cursor: pointer; border-radius: 2px; transition: background-color .15s, outline-color .15s; outline: 1px dashed transparent; outline-offset: 2px; }
.pe-editing main [data-pe-id]:hover { background: rgba(176,138,90,0.12); outline-color: rgba(176,138,90,0.6); }
.pe-editing main { padding-bottom: 5rem; }
.pe-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
    align-items: center; justify-content: space-between; padding: 0.75rem 1rem;
    background: #395556; color: #F5F1EB; font: 400 0.8rem/1.4 Montserrat, sans-serif; border-top: 1px solid #B08A5A;
}
.pe-bar[hidden] { display: none; }
.pe-bar-actions { display: flex; gap: 0.5rem; align-items: center; }
.pe-bar button, .pe-bar a {
    padding: 0.35rem 0.75rem; border: 1px solid rgba(176,138,90,0.7); color: #F5F1EB; background: transparent;
    font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.pe-bar button:hover, .pe-bar a:hover { background: rgba(245,241,235,0.12); }

.pe-pop {
    position: fixed; z-index: 95; left: 50%; bottom: 4.5rem; transform: translateX(-50%);
    width: min(28rem, calc(100vw - 2rem)); padding: 1.1rem; background: #F5F1EB; color: #2B2B2B;
    border: 1px solid #B08A5A; box-shadow: 0 12px 40px rgba(0,0,0,0.25); font-family: Montserrat, sans-serif;
}
.pe-pop[hidden] { display: none; }
.pe-pop-title { font: 500 1.35rem/1.2 "Cormorant Garamond", serif; color: #395556; margin-bottom: 0.75rem; }
.pe-pop-hint { font-size: 0.85rem; margin-bottom: 0.5rem; }
.pe-pop label { display: block; margin: 0.5rem 0 0.25rem; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: #8A6B45; }
.pe-pop input, .pe-pop textarea { width: 100%; padding: 0.5rem 0.6rem; border: 1px solid rgba(176,138,90,0.5); background: #fff; font-size: 0.9rem; }
.pe-pop input:focus, .pe-pop textarea:focus { outline: 2px solid #395556; outline-offset: 0; }
.pe-pop-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.pe-pop-actions button { padding: 0.45rem 0.8rem; font-size: 0.75rem; font-weight: 600; border: 1px solid rgba(43,43,43,0.25); background: #fff; }
.pe-pop-actions .pe-primary { background: #395556; border-color: #395556; color: #F5F1EB; }
.pe-pop-actions .pe-danger { color: #8A3B2E; border-color: rgba(138,59,46,0.4); }
.pe-pop-actions button:disabled { opacity: 0.5; }
.pe-pop-error { margin-top: 0.5rem; font-size: 0.8rem; color: #8A3B2E; }
