/* /assets/consent-client/consent-client.css - Final Perfect Version */
:root{
  --cc-bg: #111827;
  --cc-fg: #f9fafb;
  --cc-muted: #C9D2E0;
  --cc-accent: #2563eb;
  --cc-accent-2: #374151;
  --cc-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.cc-banner-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483640;
  padding: 0.75rem;
}
#cc-banner {
  max-width: 980px;
  margin: 0 auto;
  background: var(--cc-bg);
  color: var(--cc-fg);
  border-radius: 12px;
  box-shadow: var(--cc-shadow);
  padding: 1rem;
  position: relative; /* バツ印の、親となるための、印 */
}
#cc-banner h4 {
  margin: .25rem 0 .5rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  padding-right: 40px; /* バツ印との、距離 */
}
#cc-banner p {
  margin: 0 0 .75rem 0;
  line-height: 1.5;
  color: var(--cc-muted);
}
#cc-banner a {
  color: #93c5fd;
  text-decoration: underline;
}
#cc-banner .cc-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#cc-banner .cc-primary,
#cc-banner .cc-secondary {
  cursor: pointer;
  border: none;
  padding: .6rem .9rem;
  border-radius: 10px;
  font-weight: 700;
}
#cc-banner .cc-primary {
  background: var(--cc-accent);
  color: white;
}
#cc-banner .cc-secondary {
  background: var(--cc-accent-2);
  color: var(--cc-fg);
}

/* Backdrop + Modal */
#cc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 2147483641;
}
#cc-modal {
  position: fixed;
  inset: auto;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: min(640px, 92vw);
  background: #0b1220;
  color: var(--cc-fg);
  padding: 1.2rem;
  border-radius: 14px;
  z-index: 2147483642;
  box-shadow: var(--cc-shadow);
}
#cc-modal h2 {
  margin: 0 0 .5rem 0;
  color: var(--cc-fg);
  font-size: 1.25rem;
  padding-right: 40px; /* バツ印との、距離 */
}
#cc-modal p {
  margin: 0 0 .75rem 0;
  color: var(--cc-muted);
}
#cc-modal p a {
  color: #93c5fd;
  text-decoration: underline;
}
#cc-modal fieldset {
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: .75rem;
}
#cc-modal label {
  display: block;
  margin: .35rem 0;
}
#cc-modal .cc-primary,
#cc-modal .cc-secondary {
  cursor: pointer;
  border: none;
  padding: .6rem .9rem;
  border-radius: 10px;
  font-weight: 700;
  margin-right: .5rem;
}
#cc-modal .cc-primary {
  background: var(--cc-accent);
  color: white;
}
#cc-modal .cc-secondary {
  background: var(--cc-accent-2);
  color: var(--cc-fg);
}
.screen-reader-only {
  position: absolute!important; /* これだけは、例外として、許容する */
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Floating settings button */
#cc-settings-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483643;
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #374151;
  padding: .55rem .8rem;
  border-radius: 999px;
  box-shadow: var(--cc-shadow);
  cursor: pointer;
}

/* small note under forms */
.cc-recaptcha-note {
  margin-top: .5rem;
  color: #b45309;
  font-size: .85rem;
}

/* ----------
   The Close Buttons - The Final, Beautiful, Perfect Code
---------- */
.cc-modal-close,
.cc-banner-close {
  position: absolute;
  padding: 0.5rem;
  background: transparent;
  border: none;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.cc-modal-close {
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.75rem;
  color: var(--cc-muted);
}
.cc-modal-close:hover,
.cc-modal-close:focus {
  color: var(--cc-fg);
  transform: scale(1.1);
  outline: none;
}

.cc-banner-close {
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #fff;
  opacity: 0.7;
}
.cc-banner-close:hover,
.cc-banner-close:focus {
  opacity: 1;
  transform: scale(1.1);
  outline: none;
}

#cc-modal fieldset + div {
  display: flex;
  flex-wrap: wrap; /* 画面が狭くなったら、自動で、折り返す */
  gap: 0.5rem;     /* ボタン間の、隙間を、指定する */
}

#cc-modal .cc-primary,
#cc-modal .cc-secondary {
  margin-right: 0;
}
