/* Public customer flow only; the QR management and print surfaces retain their styles. */
body:has(.customer-feedback) { background: #f3f7f4; }
.qr-shell:has(.customer-feedback) { max-width: 872px; padding: 24px 16px; }
.customer-feedback { padding: clamp(20px, 4vw, 40px); margin: 0; box-shadow: 0 10px 36px #18332f0a; overflow-wrap: anywhere; }
.customer-feedback h1, .customer-feedback h2, .customer-feedback p { margin: 0; }
.customer-feedback .feedback-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .9rem; letter-spacing: 0; margin-bottom: 24px; }
.feedback-brand img { object-fit: contain; }
.feedback-brand span { color: #50685f; font-weight: 500; }
.feedback-identity { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid #e0e9e4; }
.feedback-identity > div:last-child { min-width: 0; }
.feedback-avatar { position: relative; flex: 0 0 76px; width: 76px; height: 76px; border-radius: 16px; background: #e3f0ea; display: grid; place-items: center; overflow: hidden; color: #086d56; font-size: 2rem; font-weight: 700; }
.feedback-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: white; }
.customer-feedback h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.feedback-branch { font-weight: 650; margin-top: 4px !important; }
.feedback-location { display: flex; align-items: start; gap: 6px; color: #50685f; margin-top: 6px !important; font-size: .95rem; }
.feedback-location svg { flex: 0 0 18px; margin-top: 4px; }
.feedback-intro { padding-top: 24px; }
.feedback-intro p { margin-top: 8px; color: #50685f; }
.feedback-badge { display: inline-block; margin-top: 12px; color: #08604d; background: #eaf5ef; border-radius: 20px; padding: 4px 12px; font-size: .9rem; font-weight: 650; }
.customer-feedback .qr-form { gap: 22px; margin: 24px 0 0; }
.customer-feedback fieldset { min-width: 0; }
.customer-feedback legend, .feedback-field > label { font-weight: 650; }
.customer-feedback .qr-muted { font-size: .9rem; font-weight: 400; }
.customer-feedback .feedback-stars { display: flex; width: fit-content; max-width: 100%; flex-wrap: nowrap; gap: 0; background: #f3f7f4; border-radius: 14px; padding: 4px; margin-top: 8px; }
.customer-feedback .feedback-stars label { border: 0; background: transparent; min-width: 44px; width: 54px; min-height: 52px; border-radius: 10px; }
.feedback-star { display: flex; }
.feedback-star svg { width: 34px; height: 34px; fill: transparent; stroke: #64786f; stroke-width: 1.5; transition: fill .12s ease, transform .12s ease; }
.feedback-stars label:has(input:checked) svg, .feedback-stars label:has(~ label input:checked) svg,
.feedback-stars[data-preview] label.is-preview svg { fill: #086d56; stroke: #086d56; }
.feedback-stars[data-preview] label:not(.is-preview) svg { fill: transparent; stroke: #64786f; }
.feedback-stars label:has(input:checked) { box-shadow: inset 0 -3px #086d56; }
.feedback-stars label:has(input:focus-visible) { outline: 3px solid #1473d2; outline-offset: 1px; z-index: 1; }
.customer-feedback .feedback-rating-status { font-size: .95rem; margin-top: 8px; font-weight: 650; }
.feedback-field { display: grid; gap: 6px; min-width: 0; }
.customer-feedback textarea { resize: vertical; min-height: 100px; field-sizing: content; }
.feedback-counter { text-align: right; font-size: .8rem; color: #50685f; }
.feedback-info { border: 1px solid #d6e9de; border-radius: 12px; background: #f0f7f3; padding: 16px; font-size: .95rem; }
.feedback-info p { margin-top: 4px; }
.feedback-error { color: #a91c24; font-size: .95rem; }
.feedback-error:empty, .feedback-error:has(.field-validation-valid) { display: none; }
.customer-feedback [aria-invalid="true"] { border-color: #a91c24; }
.customer-feedback button { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 650; min-height: 50px; }
.customer-feedback button:active, .customer-feedback .qr-button:active { transform: translateY(1px); }
.customer-feedback button:disabled { opacity: .7; cursor: wait; }
.feedback-spinner { width: 18px; height: 18px; border: 2px solid #ffffff70; border-top-color: white; border-radius: 50%; animation: feedback-spin .8s linear infinite; }
.customer-feedback [hidden] { display: none !important; }
.customer-feedback .feedback-confirmation { padding: 32px 0 16px; }
.feedback-confirmation p { margin-top: 10px; }
.feedback-check { display: grid; place-items: center; width: 56px; height: 56px; background: #e3f0ea; color: #086d56; border-radius: 50%; font-size: 1.8rem; margin-bottom: 16px; }
.customer-feedback .feedback-secondary { background: #eaf2ed; color: #08604d; }
@keyframes feedback-spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) { .qr-shell:has(.customer-feedback) { padding: 16px; } .customer-feedback { padding: 20px 16px; } .feedback-identity { flex-wrap: wrap; gap: 12px; } .feedback-brand span { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .customer-feedback *, .customer-feedback *::before { animation: none !important; transition: none !important; } }
