.bcc-cookie-banner,
.bcc-modal,
.bcc-policy {
  box-sizing: border-box;
  font-family: inherit;
}

.bcc-cookie-banner[hidden],
.bcc-modal[hidden] {
  display: none !important;
}

.bcc-cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
  color: #222;
}

.bcc-cookie-banner__content {
  max-width: 760px;
}

.bcc-cookie-banner__title {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.bcc-cookie-banner p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}

.bcc-cookie-banner__link {
  font-size: 14px;
  text-decoration: underline;
}

.bcc-cookie-banner__actions,
.bcc-modal__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bcc-btn {
  appearance: none;
  border: 1px solid #222;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: transform .15s ease, opacity .15s ease;
}

.bcc-btn:hover {
  transform: translateY(-1px);
}

.bcc-btn--primary {
  background: #222;
  color: #fff;
}

.bcc-btn--secondary {
  background: #fff;
  color: #222;
}

.bcc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
}

.bcc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.bcc-modal__box {
  position: relative;
  max-width: 680px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  color: #222;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.bcc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bcc-modal__header h2 {
  margin: 0;
  font-size: 22px;
}

.bcc-modal__close {
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.bcc-preferences-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.bcc-preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fafafa;
}

.bcc-preference-row small {
  display: block;
  margin-top: 4px;
  color: #555;
  line-height: 1.35;
}

.bcc-preference-row input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.bcc-policy-table-wrap {
  overflow-x: auto;
}

.bcc-policy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.bcc-policy-table th,
.bcc-policy-table td {
  border: 1px solid #e2e2e2;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.bcc-policy-table th {
  background: #f6f6f6;
}

@media (max-width: 760px) {
  .bcc-cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .bcc-cookie-banner__actions,
  .bcc-modal__actions {
    justify-content: stretch;
  }

  .bcc-btn {
    flex: 1 1 auto;
  }

  .bcc-modal__box {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
}
