/* RC12.11 functional UI: full KKM visual CSS pass remains a separate task. */
.kkm-digital-center-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.kkm-center-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:166px;padding:24px;border:1px solid #d8e6e2;background:#f4fbf9;color:#252525!important;text-decoration:none!important;transition:background .2s,border-color .2s}
.kkm-center-card:hover,.kkm-center-card:focus-visible{background:#eaf7f3;border-color:#009bbb}
.kkm-center-card strong{font-size:19px}.kkm-center-card span:last-child{font-size:14px}.kkm-center-card-icon{font-size:32px;color:#006b80}
.kkm-ticket-list-row,.kkm-ticket-detail{border:1px solid #d8e6e2;padding:20px;margin:16px 0;background:#fff}
.kkm-ticket-detail dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kkm-ticket-detail dl>div{background:#f5f7f7;padding:12px;overflow-wrap:anywhere}
.kkm-ticket-detail dt{font-size:12px;color:#666}.kkm-ticket-detail dd{font-weight:600;margin:4px 0 0}
.kkm-ticket-qr{display:flex;justify-content:center;margin:24px 0;max-width:100%;overflow:hidden}
.kkm-ticket-qr svg{max-width:100%;height:auto}.kkm-ticket-warning,.kkm-checker-warning{padding:12px;border-left:3px solid #bd5a33;background:#fff5f0}
.kkm-ticket-done,.kkm-checker-valid{padding:12px;border-left:3px solid #006b80;background:#eaf7f3}
.kkm-checker{max-width:650px;margin:24px auto;padding:20px;border:1px solid #d8e6e2;color:#252525}
.kkm-checker-camera video{max-width:100%;max-height:300px;display:block;margin:12px 0}
.kkm-checker-camera video[hidden]{display:none}
.kkm-checker-form{display:flex;flex-direction:column;gap:10px;margin:20px 0}
.kkm-checker-form input{font-size:16px;min-height:44px}.kkm-checker button{padding:12px 16px;cursor:pointer}
.kkm-ticket-health-note{font-size:14px;color:#555}
@media(max-width:640px){.kkm-digital-center-cards{grid-template-columns:1fr}.kkm-ticket-detail dl{grid-template-columns:1fr}}
/* RC12.11.2 scanner workflow – functional UX only; final brand CSS follows later. */
.kkm-checker-steps{padding-left:23px;margin:14px 0 20px}.kkm-checker-steps li{margin:8px 0;line-height:1.5}
.kkm-checker .kkm-camera-start{display:block;width:100%;min-height:52px;background:#006b80;color:#fff;border:0;font:600 16px Montserrat,sans-serif;white-space:normal}
.kkm-checker .kkm-camera-start:hover,.kkm-checker .kkm-camera-start:focus-visible{background:#009bbb;color:#fff}
.kkm-checker .kkm-camera-start[hidden]{display:none}.kkm-checker .kkm-camera-start:disabled{opacity:.65;cursor:wait}
.kkm-checker .kkm-camera-stop{margin:10px 0}.kkm-checker .kkm-camera-stop[hidden]{display:none}
.kkm-checker .kkm-camera-message{font-size:14px;margin:12px 0;color:#454545}
.kkm-checker .kkm-camera-reader{width:100%;max-width:500px;margin:12px auto}.kkm-checker .kkm-camera-reader[hidden]{display:none}
.kkm-checker .kkm-camera-reader video{max-width:100%;height:auto}
.kkm-checker .kkm-checker-note{padding:12px;border-left:3px solid #79ceb8;background:#eaf7f3;margin:18px 0}
.kkm-checker .kkm-checker-manual{margin-top:18px;padding:12px;border:1px solid #d8e6e2}
.kkm-checker .kkm-checker-manual summary{cursor:pointer;font-weight:600}
.kkm-checker .kkm-checker-manual .kkm-checker-form{margin-bottom:0}

/* RC12.11.3 – focused KKM checker UI fixes, without changing the customer dashboard. */
.kkm-checker .kkm-checker-manual{
  margin-top:18px;
  border:1px solid #d8e6e2;
  border-radius:0;
  background:#fff;
}
.kkm-checker .kkm-checker-manual summary{
  padding:12px 14px;
  color:#252525;
  background:#eaf7f3;
  font-weight:600;
  cursor:pointer;
}
.kkm-checker .kkm-checker-manual[open] summary{border-bottom:1px solid #d8e6e2}
.kkm-checker .kkm-checker-manual-help{
  margin:14px 14px 0;
  font-size:13px;
  line-height:1.6;
  color:#252525;
}
.kkm-checker .kkm-checker-manual .kkm-checker-form{
  padding:4px 14px 16px;
  margin:0;
}
.kkm-checker .kkm-checker-manual .kkm-checker-verify{
  display:block;
  width:100%;
  min-height:50px;
  padding:12px 18px;
  border:1px solid #252525 !important;
  border-radius:0 !important;
  background:#252525 !important;
  color:#fff !important;
  box-shadow:none !important;
  font:600 15px/1.4 Montserrat,sans-serif;
  text-transform:none;
  cursor:pointer;
  transition:background-color .25s ease,border-color .25s ease;
}
.kkm-checker .kkm-checker-manual .kkm-checker-verify:hover,
.kkm-checker .kkm-checker-manual .kkm-checker-verify:focus-visible{
  background:#006b80 !important;
  border-color:#006b80 !important;
  color:#fff !important;
}
.kkm-checker .kkm-checker-verify:focus-visible,
.kkm-camera-overlay .kkm-camera-stop:focus-visible{
  outline:3px solid #79ceb8;
  outline-offset:3px;
}
.kkm-checker .kkm-camera-hint{font-size:13px;color:#545454;margin:10px 0}
.kkm-checker .kkm-checker-result{scroll-margin-top:95px;margin-top:16px}
.kkm-checker .kkm-checker-result:empty{display:none}

/* Overlay is moved to document.body to avoid sticky Elementor header clipping. */
.kkm-camera-overlay[hidden]{display:none !important}
.kkm-camera-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:2147482000 !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(12,20,22,.94);
  box-sizing:border-box;
  font-family:Montserrat,sans-serif;
  overscroll-behavior:contain;
}
.kkm-camera-overlay *, .kkm-camera-overlay *::before, .kkm-camera-overlay *::after{box-sizing:border-box}
.kkm-camera-overlay .kkm-camera-dialog{
  width:min(100%,490px);
  max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px);
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:auto;
  padding:18px;
  border:1px solid #79ceb8;
  border-radius:0;
  background:#252525;
  color:#fff;
  box-shadow:0 16px 48px rgba(0,0,0,.25);
}
.kkm-camera-overlay .kkm-camera-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.kkm-camera-overlay .kkm-camera-toolbar strong{
  color:#fff;
  font:700 16px/1.4 Montserrat,sans-serif;
}
.kkm-camera-overlay .kkm-camera-stop{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  flex:0 0 auto;
  gap:6px;
  min-height:46px;
  padding:10px 14px;
  border:1px solid #79ceb8 !important;
  border-radius:0 !important;
  background:#79ceb8 !important;
  color:#252525 !important;
  box-shadow:none !important;
  font:600 13px/1.4 Montserrat,sans-serif;
  text-transform:none;
  cursor:pointer;
}
.kkm-camera-overlay .kkm-camera-stop:hover{
  background:#009bbb !important;
  border-color:#009bbb !important;
  color:#fff !important;
}
.kkm-camera-overlay .kkm-camera-message,
.kkm-camera-overlay .kkm-camera-guide{
  margin:0;
  font:500 13px/1.55 Montserrat,sans-serif;
  color:#fff;
}
.kkm-camera-overlay .kkm-camera-message{color:#a3e8d5}
.kkm-camera-overlay .kkm-camera-viewport{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  width:100%;
  min-height:160px;
  overflow:hidden;
  border:1px solid #455b55;
  background:#111;
}
.kkm-camera-overlay .kkm-camera-reader{
  width:100%;
  max-width:100%;
  margin:0;
  color:#fff;
}
.kkm-camera-overlay .kkm-camera-reader[hidden],
.kkm-camera-overlay video[hidden]{display:none !important}
.kkm-camera-overlay .kkm-camera-reader video,
.kkm-camera-overlay .kkm-camera-viewport>video{
  display:block;
  width:100% !important;
  max-width:100%;
  max-height:60vh;
  max-height:60dvh;
  object-fit:contain;
  background:#111;
}
.kkm-camera-overlay .kkm-camera-reader img,
.kkm-camera-overlay .kkm-camera-reader canvas{max-width:100%;height:auto}

/* Accessible fallback on the customer's own ticket page. */
.kkm-ticket-share{margin-top:16px;padding:14px;border:1px solid #d8e6e2;background:#f4fbf9}
.kkm-ticket-share p{font-size:13px;line-height:1.55}
.kkm-ticket-share label{display:block;font-size:13px;font-weight:600;margin:12px 0 6px}
.kkm-ticket-share-controls{display:flex;gap:8px;flex-wrap:wrap}
.kkm-ticket-share-controls input{
  flex:1 1 240px;
  min-width:0;
  min-height:46px;
  padding:10px;
  border:1px solid #cbdcd7;
  border-radius:0;
  font:400 13px Montserrat,sans-serif;
  background:#fff;
  color:#252525;
}
.kkm-ticket-share .kkm-ticket-copy-link{
  flex:0 0 auto;
  min-height:46px;
  padding:10px 15px;
  border:1px solid #006b80;
  border-radius:0;
  background:#006b80;
  color:#fff;
  font:600 13px Montserrat,sans-serif;
  cursor:pointer;
}
.kkm-ticket-share .kkm-ticket-copy-link:hover{background:#009bbb;border-color:#009bbb;color:#fff}
.kkm-ticket-copy-feedback{min-height:1em;margin:8px 0 0;font-size:12px}
@media (max-width:640px){
  .kkm-camera-overlay{padding:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
  .kkm-camera-overlay .kkm-camera-dialog{
    width:100%;
    height:100vh;
    height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height:none;
    padding:14px 12px;
    border:0;
    gap:12px;
    justify-content:flex-start;
  }
  .kkm-camera-overlay .kkm-camera-viewport{min-height:180px;max-height:65dvh}
  .kkm-camera-overlay .kkm-camera-toolbar strong{font-size:15px}
  .kkm-camera-overlay .kkm-camera-stop{min-height:48px;padding:10px 12px;font-size:12px}
  .kkm-ticket-share-controls{flex-direction:column}
  .kkm-ticket-share .kkm-ticket-copy-link{width:100%}
}

/* RC12.11.4 – restricted participant search as scanner fallback. */
.kkm-checker .kkm-checker-search{margin-top:18px;border:1px solid #d8e6e2;background:#fff;border-radius:0}
.kkm-checker .kkm-checker-search summary{padding:15px 14px;cursor:pointer;background:#eaf7f3;color:#252525;font-weight:700}
.kkm-checker .kkm-checker-search[open] summary{border-bottom:1px solid #d8e6e2}
.kkm-checker .kkm-search-content{padding:16px 14px}
.kkm-checker .kkm-search-content > p{font-size:13px;line-height:1.6;color:#252525}
.kkm-checker .kkm-checker-search-form{display:flex;flex-direction:column;gap:10px;margin:0}
.kkm-checker .kkm-checker-search-form label{display:block;font-size:13px;font-weight:600;color:#252525;margin:0 0 5px}
.kkm-checker .kkm-checker-search-form input{width:100%;min-height:48px;padding:11px 12px;border:1px solid #cbdcd7;border-radius:0;background:#fff;color:#252525;font:400 16px Montserrat,sans-serif;box-shadow:none}
.kkm-checker .kkm-checker-search-form input:focus{outline:2px solid #79ceb8;outline-offset:1px;border-color:#006b80}
.kkm-checker .kkm-search-extra{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kkm-checker .kkm-search-submit,.kkm-checker .kkm-search-choose{width:100%;min-height:48px;border-radius:0!important;border:1px solid #006b80!important;background:#006b80!important;color:#fff!important;font:600 14px/1.45 Montserrat,sans-serif;cursor:pointer;transition:background .2s ease}
.kkm-checker .kkm-search-submit:hover,.kkm-checker .kkm-search-choose:hover{background:#009bbb!important;border-color:#009bbb!important}
.kkm-checker .kkm-search-submit:disabled{opacity:.6;cursor:wait}
.kkm-checker .kkm-search-results{margin-top:14px;font-size:13px}
.kkm-checker .kkm-search-results:empty{display:none}
.kkm-checker .kkm-search-candidate{margin:10px 0;padding:14px;border:1px solid #d8e6e2;background:#f7faf9}
.kkm-checker .kkm-search-candidate strong{font-size:15px;color:#252525}
.kkm-checker .kkm-search-candidate p{margin:8px 0 12px;font-size:13px;line-height:1.6;color:#252525}
.kkm-checker .kkm-search-narrow{padding:12px;border-left:3px solid #006b80;background:#eaf7f3}
.kkm-checker .kkm-search-privacy{font-size:12px!important;color:#565656!important;margin:12px 0 0}
@media(max-width:640px){.kkm-checker .kkm-search-extra{grid-template-columns:1fr}.kkm-checker .kkm-search-candidate{padding:12px}}

/* RC12.12.2: status-only medical declarations in Digital Competition Center. */
.kkm-account-health-notice{margin:18px 0;padding:18px 20px;border:1px solid #e6b756;border-left:4px solid #d2a23b;background:#fff7e6;color:#684b14;border-radius:0}
.kkm-account-health-notice h3{margin:0 0 8px;color:#684b14;font-size:17px;font-weight:700}
.kkm-account-health-notice p{margin:0 0 12px;line-height:1.6;color:#684b14}
.kkm-account-health-notice-link{display:inline-block;color:#006b80!important;font-weight:700;text-decoration:none!important;border-bottom:1px solid currentColor}
.kkm-account-health-notice-link:hover{color:#009bbb!important}
.kkm-digital-center-cards .kkm-center-card--health{grid-column:1 / -1;min-height:126px}
.kkm-account-health-page{border:1px solid #d8e6e2;border-top:4px solid #79ceb8;background:#fff;padding:24px;color:#252525;font-family:Montserrat,sans-serif}
.kkm-account-health-page h2{margin:0 0 12px;color:#252525;font-weight:700}
.kkm-account-health-page > p{line-height:1.65}
.kkm-account-health-list{display:flex;flex-direction:column;gap:12px;margin:22px 0}
.kkm-account-health-item{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px;background:#f6faf9;border:1px solid #d8e6e2}
.kkm-account-health-item strong{font-weight:700}.kkm-account-health-item p{margin:5px 0 0;font-size:13px;color:#51605b}
.kkm-account-health-state{padding:7px 11px;background:#fff4dd;color:#82530b;font-size:13px;font-weight:600}
.kkm-account-health-item[data-health-status="completed"] .kkm-account-health-state{background:#eaf7f3;color:#185b4b}
.kkm-account-health-item[data-health-status="expired"] .kkm-account-health-state{background:#fff0ee;color:#8c3230}
.kkm-account-health-privacy{margin-bottom:0;font-size:13px;color:#5c6561}
@media(max-width:640px){.kkm-digital-center-cards .kkm-center-card--health{grid-column:auto}.kkm-account-health-page{padding:16px}.kkm-account-health-item{align-items:flex-start;flex-direction:column;gap:10px}.kkm-account-health-state{align-self:flex-start}}

/* RC12.12.17: PDF actions, confined to KKM account and ticket pages. */
.kkm-account-order-members .kkm-ticket-pdf-actions,
.kkm-tickets .kkm-ticket-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.kkm-account-order-members .kkm-ticket-pdf-actions .button,
.kkm-tickets .kkm-ticket-pdf-actions .button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  border-radius: 0;
  min-height: 38px;
}
@media (max-width: 600px) {
  .kkm-account-order-members .kkm-ticket-pdf-actions,
  .kkm-tickets .kkm-ticket-pdf-actions { flex-direction: column; }
  .kkm-account-order-members .kkm-ticket-pdf-actions .button,
  .kkm-tickets .kkm-ticket-pdf-actions .button { width: 100%; }
}

/* RC12.12.19: three equally prominent ticket actions, keyboard and mobile friendly. */
.kkm-account-order-members .kkm-ticket-pdf-actions,
.kkm-tickets .kkm-ticket-pdf-actions { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:10px;width:100%; }
.kkm-account-order-members .kkm-ticket-pdf-actions .button,
.kkm-tickets .kkm-ticket-pdf-actions .button {display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 12px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;margin:0;text-align:center;border-radius:0;}
.kkm-account-order-members .kkm-ticket-pdf-actions .button:focus-visible,
.kkm-tickets .kkm-ticket-pdf-actions .button:focus-visible { outline:2px solid #009bbb;outline-offset:3px; }
@media(max-width:900px){.kkm-account-order-members .kkm-ticket-pdf-actions,.kkm-tickets .kkm-ticket-pdf-actions{grid-template-columns:1fr;}}
