#sumita-cookie-consent {
  font-family: inherit;
  color: #222;
}

.scc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  padding: 20px;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.scc-banner[hidden],
.scc-settings[hidden],
.scc-backdrop[hidden] {
  display: none !important;
}

.scc-banner-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.scc-text {
  flex: 1;
}

.scc-text h2,
.scc-settings-box h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.5;
}

.scc-text p {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.8;
}

.scc-text a {
  color: inherit;
  text-decoration: underline;
}

.scc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.scc-actions button,
.scc-settings-actions button {
  min-width: 120px;
  padding: 12px 18px;
  border: 1px solid #333;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.scc-actions button:hover,
.scc-settings-actions button:hover {
  opacity: 0.8;
}

.scc-actions .scc-primary,
.scc-settings-actions .scc-primary {
  background: #222;
  color: #fff;
}

/* 設定画面 */

.scc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99991;
  background: rgba(0, 0, 0, 0.5);
}

.scc-settings {
  position: fixed;
  inset: 0;
  z-index: 99992;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.scc-settings-box {
  position: relative;
  width: min(600px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  background: #fff;
  box-sizing: border-box;
}

.scc-close {
  position: absolute;
  top: 12px;
  right: 15px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.scc-settings-intro {
  margin: 0 0 25px;
  font-size: 14px;
  line-height: 1.8;
}

.scc-category {
  padding: 20px 0;
  border-top: 1px solid #ddd;
}

.scc-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.scc-category p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.8;
}

.scc-always {
  font-size: 12px;
  font-weight: bold;
}

/* Switch */

.scc-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.scc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scc-slider {
  position: relative;
  width: 46px;
  height: 24px;
  background: #aaa;
  border-radius: 24px;
  transition: 0.2s;
}

.scc-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.scc-switch input:checked + .scc-slider {
  background: #222;
}

.scc-switch input:checked + .scc-slider::before {
  transform: translateX(22px);
}

.scc-switch-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.scc-settings-actions {
  padding-top: 20px;
  text-align: right;
}

/* Smartphone */

@media (max-width: 767px) {

  .scc-banner {
    padding: 18px;
  }

  .scc-banner-inner {
    display: block;
  }

  .scc-actions {
    margin-top: 16px;
  }

  .scc-actions button {
    flex: 1 1 calc(50% - 5px);
  }

  .scc-actions .scc-primary {
    flex-basis: 100%;
  }

  .scc-settings-box {
    padding: 28px 20px 20px;
  }

  .scc-category-header {
    align-items: flex-start;
  }
}