.apc-cmp-hidden { display: none !important; }

.apc-cmp-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: #1d1d1d;
  color: #fff;
  border-top: 3px solid #6cb33f;
  padding: 18px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
}

.apc-cmp-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.apc-cmp-bar__text { flex: 1 1 320px; }
.apc-cmp-bar__text p { margin: 0 0 4px 0; }
.apc-cmp-bar__text a { color: #6cb33f; text-decoration: underline; }

.apc-cmp-bar__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.apc-cmp-btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 18px;
  min-width: 130px;
  border-radius: 4px;
  border: 2px solid #6cb33f;
  background: #6cb33f;
  color: #fff;
  cursor: pointer;
  line-height: 1.2;
}

.apc-cmp-btn:hover { background: #5ba032; border-color: #5ba032; }
.apc-cmp-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.apc-cmp-btn--secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.apc-cmp-btn--secondary:hover { background: #fff; color: #1d1d1d; }

@media (max-width: 575.98px) {
  .apc-cmp-bar__actions { width: 100%; }
  .apc-cmp-btn { flex: 1 1 100%; min-width: 0; }
}

.apc-cmp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.apc-cmp-modal {
  background: #fff;
  color: #222;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  font-family: 'Montserrat', sans-serif;
}

.apc-cmp-modal__header {
  padding: 20px 24px 12px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.apc-cmp-modal__header h2 { margin: 0; font-size: 1.35rem; }

.apc-cmp-modal__close {
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
  padding: 4px 8px;
}
.apc-cmp-modal__close:hover { color: #000; }

.apc-cmp-modal__body { padding: 16px 24px; }
.apc-cmp-modal__body > p { margin-top: 0; }
.apc-cmp-modal__body a { color: #6cb33f; }

.apc-cmp-cat {
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.apc-cmp-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.apc-cmp-cat__title { font-weight: 600; font-size: 1rem; }
.apc-cmp-cat__desc { font-size: 0.875rem; color: #555; margin: 8px 0 0; }

.apc-cmp-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}
.apc-cmp-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.apc-cmp-toggle__slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 12px;
  transition: background 0.15s;
  cursor: pointer;
}
.apc-cmp-toggle__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
}
.apc-cmp-toggle input:checked + .apc-cmp-toggle__slider { background: #6cb33f; }
.apc-cmp-toggle input:checked + .apc-cmp-toggle__slider::before { transform: translateX(20px); }
.apc-cmp-toggle input:disabled + .apc-cmp-toggle__slider { background: #6cb33f; opacity: 0.55; cursor: not-allowed; }
.apc-cmp-toggle input:focus-visible + .apc-cmp-toggle__slider { outline: 2px solid #1d1d1d; outline-offset: 2px; }

.apc-cmp-modal__footer {
  padding: 14px 24px 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.apc-cmp-modal__footer .apc-cmp-btn { min-width: 140px; }
.apc-cmp-modal__footer .apc-cmp-btn--secondary { border-color: #6cb33f; color: #6cb33f; }
.apc-cmp-modal__footer .apc-cmp-btn--secondary:hover { background: #6cb33f; color: #fff; }

@media (max-width: 575.98px) {
  .apc-cmp-modal__footer .apc-cmp-btn { flex: 1 1 100%; }
}
