.customer-history-panel{margin:32px auto 0;max-width:1080px;padding:0 20px 32px}
.customer-history-card{border:1px solid #d7dce3;border-radius:18px;background:#fff;padding:24px;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.customer-history-card .history-eyebrow{margin:0 0 6px;font-size:.78rem;font-weight:800;letter-spacing:.08em;color:#5d6572}
.customer-history-card h2{margin:0 0 8px}
.customer-history-card .history-lead{margin:0 0 18px;color:#4b5563;line-height:1.7}
.history-consent-note,.history-privacy-note{background:#f6f7f9;border-radius:12px;padding:14px 16px;line-height:1.65}
.history-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.history-actions button,.history-primary{border:0;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer}
.history-primary{background:#1f2937;color:#fff}
.history-secondary{background:#eef1f5;color:#1f2937}
.history-danger{background:#fff1f2;color:#9f1239;border:1px solid #fecdd3!important}
.history-analytics{display:flex;gap:10px;align-items:flex-start;margin:18px 0;padding:14px 16px;border:1px solid #e5e7eb;border-radius:12px}
.history-analytics input{margin-top:4px}
.history-analytics small{display:block;color:#6b7280;margin-top:4px}
.history-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.history-counts div{background:#f6f7f9;border-radius:12px;padding:14px;text-align:center}
.history-counts strong{display:block;font-size:1.35rem}
.history-counts span{font-size:.84rem;color:#6b7280}
#historySummary details{border-top:1px solid #e5e7eb;padding:12px 0}
#historySummary summary{font-weight:700;cursor:pointer}
#historySummary ul{margin:10px 0 0;padding-left:20px}
#historySummary li{margin:8px 0}
#historySummary li span{display:block;color:#6b7280;font-size:.86rem;margin-top:2px}
.history-save-block{margin:18px 0;padding:16px;border:1px solid #dbe3ec;border-radius:12px;background:#fbfcfe}
.history-save-block h3{margin:0 0 6px;font-size:1rem}
.history-save-block p{margin:0 0 12px;color:#5d6572}
.history-claim-pet{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-bottom:12px}
.history-claim-pet label{display:flex;flex-direction:column;gap:6px;font-weight:700}
.history-claim-pet select,.history-claim-pet input{min-height:44px;border:1px solid #cbd5e1;border-radius:9px;padding:8px;background:#fff}
.history-status{min-height:1.5em;margin:14px 0 0;font-weight:700}
.history-status.success{color:#166534}.history-status.error{color:#b42318}
.customer-history-card button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:640px){.customer-history-panel{padding:0 14px 24px}.customer-history-card{padding:18px}.history-claim-pet{grid-template-columns:1fr}.history-actions{display:grid}.history-actions button{width:100%}}


.history-cookie-notice{margin-top:14px;padding:16px;border:1px solid #cbd5e1;border-radius:12px;background:#fbfcfe}
.history-cookie-notice h3{margin:0 0 8px;font-size:1rem}
.history-cookie-notice p{margin:8px 0;line-height:1.7;color:#374151}
.history-cookie-notice a{text-decoration:underline}
.history-cookie-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
@media(max-width:640px){.history-cookie-actions{display:grid}.history-cookie-actions button{width:100%}}
