.ar360-consent[hidden],
.ar360-consent-modal[hidden],
.ar360-consent-settings[hidden] {
  display: none !important;
}

.ar360-consent {
  position: fixed;
  z-index: 2147483000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  font-family: inherit;
  color: #222;
}

.ar360-consent__panel {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  gap: 24px;
  align-items: center;
}

.ar360-consent__copy {
  flex: 1 1 auto;
}

.ar360-consent__copy h2,
.ar360-consent-modal__dialog h2 {
  margin: 0 0 8px;
  color: #222;
  font-size: 22px;
  line-height: 1.25;
}

.ar360-consent__copy p,
.ar360-consent-choice p {
  margin: 0 0 8px;
  color: #4b4b4b;
  font-size: 14px;
  line-height: 1.5;
}

.ar360-consent__copy a {
  color: #b24800;
  font-size: 14px;
  text-decoration: underline;
}

.ar360-consent__actions,
.ar360-consent-modal__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ar360-consent__button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #c6c6c6;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.ar360-consent__button--primary {
  border-color: #e85b00;
  background: #e85b00;
  color: #fff;
}

.ar360-consent__button--primary:hover,
.ar360-consent__button--primary:focus-visible {
  border-color: #b94700;
  background: #b94700;
}

.ar360-consent__button--secondary {
  background: #fff;
  color: #222;
}

.ar360-consent__button--secondary:hover,
.ar360-consent__button--secondary:focus-visible {
  background: #f2f2f2;
}

.ar360-consent-modal {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ar360-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.ar360-consent-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 24px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.3);
  color: #222;
}

.ar360-consent-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.ar360-consent-choice {
  display: flex;
  margin-top: 14px;
  padding: 14px 0;
  border-top: 1px solid #e6e6e6;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.ar360-consent-choice p {
  margin: 4px 0 0;
}

.ar360-consent-choice input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: #e85b00;
}

.ar360-consent-choice__always {
  flex: 0 0 auto;
  color: #287b3c;
  font-size: 13px;
  font-weight: 700;
}

.ar360-consent-modal__actions {
  margin-top: 20px;
}

.ar360-consent-settings {
  position: fixed;
  z-index: 2147482999;
  bottom: 10px;
  left: 10px;
  padding: 7px 10px;
  border: 1px solid #b24800;
  border-radius: 4px;
  background: #fff;
  color: #7e3300;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.ar360-consent-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .ar360-consent {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .ar360-consent__panel {
    display: block;
    padding: 16px;
  }

  .ar360-consent__actions {
    margin-top: 14px;
    justify-content: stretch;
  }

  .ar360-consent__button {
    flex: 1 1 100%;
  }
}
