/*
  방문 통계 동의 막대(public/gtag-init.js)와 ‘쿠키 설정’ 단추. 색은 사이트 토큰(src/styles/global.css)을 쓴다.
  거부와 허용은 같은 모양·같은 크기다.
*/

/* 분석이 꺼진 곳(로컬·시험)에서는 ‘쿠키 설정’을 숨긴다 — gimotty.irumx.app 에서만 gtag-init.js 가 html.irx-analytics 를 붙인다 */
html:not(.irx-analytics) [data-irx-consent-open] {
  display: none !important;
}

/* 막대가 떠 있는 동안 바닥글 마지막 줄이 가리지 않게 */
html.irx-consent-open body {
  padding-bottom: var(--irx-consent-space, 160px);
}

.irx-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 45;
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 16px;
  border: 2px solid var(--ink, #10233a);
  border-radius: 14px;
  background: var(--surface, #fff);
  color: var(--ink, #10233a);
  box-shadow: 0 4px 0 var(--ink, #10233a);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
:lang(ko) .irx-consent {
  word-break: keep-all;
}
.irx-consent-text {
  flex: 1 1 300px;
  margin: 0;
}
.irx-consent-text a {
  color: var(--teal, #0b6f5c);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.irx-consent-now {
  color: var(--muted, #55687d);
}
.irx-consent-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.irx-consent .irx-consent-btn {
  min-width: 84px;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--ink, #10233a);
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--ink, #10233a);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.irx-consent .irx-consent-btn:hover {
  background: var(--mochi-2, #e3f8ef);
}
.irx-consent a:focus-visible,
.irx-consent .irx-consent-btn:focus-visible {
  outline: 3px solid var(--focus, #0b6f5c);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .irx-consent-actions {
    width: 100%;
  }
  .irx-consent .irx-consent-btn {
    flex: 1;
  }
}
