.r316ss-fixed-block {
  position: fixed;
  z-index: 99990;
  width: min(calc(100vw - var(--r316ss-fixed-offset) - var(--r316ss-fixed-offset)), var(--r316ss-fixed-width));
  max-height: calc(100vh - var(--r316ss-fixed-offset) - var(--r316ss-fixed-offset));
}

.r316ss-fixed-top {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  right: 0;
  left: 0;
  width: 100%;
  max-width: none;
  max-height: none;
}

.r316ss-fixed-bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  max-height: none;
}

.r316ss-fixed-slot {
  width: 100%;
}

.r316ss-fixed-spacer {
  width: 100%;
  height: var(--r316ss-fixed-bar-height, 0px);
  pointer-events: none;
}

.r316ss-fixed-bottom-left {
  bottom: var(--r316ss-fixed-offset);
  left: var(--r316ss-fixed-offset);
  overflow: auto;
}

.r316ss-fixed-bottom-right {
  right: var(--r316ss-fixed-offset);
  bottom: var(--r316ss-fixed-offset);
  overflow: auto;
}

.r316ss-fixed-top > .r316ss-hooked-block,
.r316ss-fixed-bottom > .r316ss-hooked-block {
  width: 100%;
  max-width: none;
}

.r316ss-fixed-dismiss {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: currentColor;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .18);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.r316ss-fixed-dismiss:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
