.cbm-direct-link[hidden],
.room-dialog-actions #modal-consult[hidden] {
  display: none !important;
}

.cbm-direct-modal {
  padding: 0;
  width: min(70rem, calc(100% - 1.25rem));
  max-width: none;
  max-height: calc(100dvh - 1.25rem);
  margin: auto;
  border: 1px solid #947752;
  border-radius: 1rem;
  background: #faf7f0;
  color: #28231e;
  overflow: auto;
  box-sizing: border-box;
}

.cbm-direct-modal[open] {
  display: flex;
  flex-direction: column;
}

.cbm-direct-modal::backdrop {
  background: rgb(24 18 11 / 70%);
}

.cbm-direct-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.2rem 0.75rem;
  padding: 0.75rem 1.1rem;
}

.cbm-direct-header h2,
.cbm-direct-header p {
  margin: 0;
}

.cbm-direct-header p,
.cbm-direct-external {
  grid-column: 1 / -1;
}

.cbm-direct-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #947752;
  border-radius: 0.4rem;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: 1.45rem;
}

.cbm-direct-external {
  justify-self: start;
}

.cbm-direct-modal iframe {
  display: block;
  width: 100%;
  height: min(45rem, 70dvh);
  min-height: 16rem;
  flex: 1 0 auto;
  border: 0;
  background: #fff;
}
