/* Auto-generated RTL version of ../css/cookie-consent.css (rtlcss) for /ar/ pages. Regenerate when the original changes. */
/* ============================================================
   Cookie Consent Banner - Stylesheet
   カラーやサイズは :root の変数を書き換えるだけでブランドに合わせられます。
   ============================================================ */

:root {
  --cc-bg: #1f2430;
  --cc-text: #f4f5f7;
  --cc-muted: #b7bcc9;
  --cc-accent: #3d8bfd;
  --cc-accent-text: #ffffff;
  --cc-border: rgba(255, 255, 255, 0.12);
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-border: rgba(255, 255, 255, 0.35);
  --cc-radius: 10px;
  --cc-font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    "Segoe UI", sans-serif;
  --cc-z: 2147483000;
}

/* ---------- Banner (bottom bar) ---------- */
.cc-banner {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: var(--cc-z);
  background: var(--cc-bg);
  color: var(--cc-text);
  font-family: var(--cc-font);
  border-top: 1px solid var(--cc-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  padding: 18px 20px;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.cc-banner.cc-visible {
  transform: translateY(0);
}
.cc-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.cc-banner__text {
  flex: 1 1 360px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cc-text);
}
.cc-banner__text a {
  color: var(--cc-accent);
  text-decoration: underline;
}
.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

/* ---------- Buttons ---------- */
.cc-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--cc-radius);
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.cc-btn:active {
  transform: scale(0.98);
}
.cc-btn:hover {
  opacity: 0.88;
}
.cc-btn--primary {
  background: var(--cc-accent);
  color: var(--cc-accent-text);
}
.cc-btn--secondary {
  background: var(--cc-btn-secondary-bg);
  color: var(--cc-text);
  border: 1px solid var(--cc-btn-secondary-border);
}
.cc-btn--text {
  background: transparent;
  color: var(--cc-muted);
  text-decoration: underline;
  padding: 10px 4px;
}

/* ---------- Modal (詳細設定) ---------- */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.55);
  z-index: calc(var(--cc-z) + 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cc-modal-overlay.cc-visible {
  opacity: 1;
  pointer-events: auto;
}
.cc-modal {
  background: #ffffff;
  color: #1f2430;
  font-family: var(--cc-font);
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.cc-modal h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.cc-modal__desc {
  font-size: 13px;
  color: #555b66;
  line-height: 1.6;
  margin: 0 0 20px;
}
.cc-category {
  border: 1px solid #e4e6ea;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.cc-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cc-category__title {
  font-size: 14px;
  font-weight: 700;
}
.cc-category__desc {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.6;
  margin-top: 6px;
}

/* Toggle switch */
.cc-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}
.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-switch__track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cc-switch__track::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  right: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.cc-switch input:checked + .cc-switch__track {
  background: var(--cc-accent);
}
.cc-switch input:checked + .cc-switch__track::before {
  transform: translateX(-18px);
}
.cc-switch input:disabled + .cc-switch__track {
  background: #a9c9ff;
  cursor: not-allowed;
}
.cc-switch input:focus-visible + .cc-switch__track {
  outline: 2px solid var(--cc-accent);
  outline-offset: 2px;
}

.cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.cc-modal .cc-btn--secondary {
  border-color: #d1d5db;
  color: #1f2430;
}

/* ---------- Reopen (floating) button ---------- */
.cc-reopen {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: var(--cc-z);
  background: var(--cc-bg);
  color: var(--cc-text);
  font-family: var(--cc-font);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--cc-border);
  border-radius: 999px;
  padding: 9px 10px 9px 14px;
  display: none;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.cc-reopen.cc-visible {
  display: inline-flex;
}
.cc-reopen:hover {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .cc-banner {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .cc-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cc-banner__text {
    /* Reset the desktop row-layout min-width (360px); in a column flex
       container flex-basis sets height, not width, and left unset here
       it was stretching this block to a 360px-tall empty box. */
    flex: 1 1 auto;
  }
  .cc-banner__actions {
    justify-content: stretch;
  }
  .cc-banner__actions .cc-btn {
    flex: 1 1 auto;
  }
}
