.bcc {
  --bcc-orange: #ff600a;
  --bcc-orange-hover: #e85200;
  --bcc-orange-soft: rgba(255, 96, 10, 0.08);
  --bcc-orange-soft-hover: rgba(255, 96, 10, 0.14);
  --bcc-text: #1b1b1b;
  --bcc-text-muted: #4d4d4d;
  --bcc-border: #e6e6e6;
  --bcc-switch-off: #7d8085;
  --bcc-switch-locked: #b4b6b9;

  position: fixed;
  inset: 0;
  z-index: 2147483000;
  font-family: 'BOG-Regular', 'Noto Sans Georgian', sans-serif;
  color: var(--bcc-text);
  -webkit-font-smoothing: antialiased;
}

.bcc[hidden],
.bcc[data-view='main'] .bcc__view--manage,
.bcc[data-view='manage'] .bcc__view--main {
  display: none;
}

html.bcc-open {
  overflow: hidden;
}

.bcc *,
.bcc *::before,
.bcc *::after {
  box-sizing: border-box;
}

.bcc__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.bcc__dialog {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  outline: none;
}

/* Both views share the card in the bottom-right corner */
.bcc__dialog {
  right: 40px;
  bottom: 40px;
  width: 434px;
  max-height: calc(100% - 80px);
}

.bcc[data-view='main'] .bcc__dialog {
  overflow-y: auto;
  padding: 28px;
}

/* Manage view: scrolling body and fixed footer */
.bcc[data-view='manage'] .bcc__dialog {
  display: flex;
  flex-direction: column;
}

.bcc__view--manage {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bcc__icon {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  color: var(--bcc-text);
}

.bcc__icon svg {
  display: block;
}

.bcc .bcc__title {
  margin: 0 0 12px;
  padding: 0;
  font-family: 'BOG-Bold', 'BOG-Regular', sans-serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.4;
  color: var(--bcc-text);
  text-transform: none;
}

.bcc .bcc__subtitle {
  margin: 0 0 12px;
  padding: 0;
  font-family: 'BOG-Bold', 'BOG-Regular', sans-serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.4;
  color: var(--bcc-text);
}

.bcc .bcc__text {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bcc-text-muted);
}

.bcc .bcc__link {
  display: block;
  margin-top: 4px;
  color: var(--bcc-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bcc .bcc__link:hover {
  color: var(--bcc-orange-hover);
}

.bcc__link svg {
  display: inline-block;
  margin-left: 4px;
  vertical-align: -2px;
}

.bcc__actions,
.bcc__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bcc__actions {
  margin-top: 24px;
}

.bcc .bcc__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  font-family: 'BOG-Medium', 'BOG-Regular', sans-serif;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bcc .bcc__btn:focus-visible,
.bcc .bcc__back:focus-visible,
.bcc .bcc__link:focus-visible {
  outline: 2px solid var(--bcc-orange);
  outline-offset: 2px;
}

.bcc .bcc__btn--primary {
  background: var(--bcc-orange);
  color: #fff;
}

.bcc .bcc__btn--primary:hover {
  background: var(--bcc-orange-hover);
}

.bcc .bcc__btn--secondary {
  background: var(--bcc-orange-soft);
  color: var(--bcc-orange);
}

.bcc .bcc__btn--secondary:hover {
  background: var(--bcc-orange-soft-hover);
}

.bcc .bcc__btn--text {
  background: transparent;
  color: var(--bcc-orange);
}

.bcc .bcc__btn--text:hover {
  color: var(--bcc-orange-hover);
  text-decoration: underline;
}

.bcc__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 32px 8px;
}

.bcc__head .bcc__title {
  margin: 0;
}

.bcc .bcc__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 0 0 -6px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bcc-text);
  cursor: pointer;
}

.bcc .bcc__back:hover {
  background: #f4f4f4;
}

.bcc__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 32px;
}

.bcc .bcc__divider {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--bcc-border);
}

.bcc__category + .bcc__category {
  margin-top: 28px;
}

.bcc__category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.bcc .bcc__category-title {
  margin: 0;
  font-family: 'BOG-Bold', 'BOG-Regular', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--bcc-text);
  cursor: pointer;
}

.bcc__switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
}

.bcc__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.bcc__switch input:disabled {
  cursor: not-allowed;
}

.bcc__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--bcc-switch-off);
  transition: background-color 0.2s ease;
}

.bcc__slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.bcc__switch input:checked + .bcc__slider {
  background: var(--bcc-orange);
}

.bcc__switch input:checked + .bcc__slider::before {
  transform: translateX(18px);
}

.bcc__switch input:disabled + .bcc__slider {
  background: var(--bcc-switch-locked);
}

.bcc__switch input:disabled + .bcc__slider::before {
  background: #4d4f53;
}

.bcc__switch input:focus-visible + .bcc__slider {
  outline: 2px solid var(--bcc-orange);
  outline-offset: 2px;
}

.bcc__foot {
  padding: 24px 32px 28px;
  border-top: 1px solid var(--bcc-border);
}

@media (max-width: 600px) {
  .bcc__dialog {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100% - 32px);
  }

  .bcc[data-view='main'] .bcc__dialog {
    padding: 24px;
  }

  .bcc__head {
    padding: 24px 24px 4px;
  }

  .bcc__body {
    padding: 20px 24px;
  }

  .bcc__foot {
    padding: 20px 24px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bcc *,
  .bcc *::before {
    transition: none !important;
  }
}
