.mac-widget-btn {
  height: auto;
  width: auto;
  cursor: pointer;
  text-align: center;
  padding: 8px 10px;
  font-family: sans-serif;
  display: inline-block;
  font-weight: bold;
  z-index: 10;
}

.mac-btn-icon {
  margin-right: 10px;
  margin-bottom: 0;
}

.mac-widget-btn span {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.mac-widget-btn.sticky {
  position: fixed;
}

.mac-widget-btn.r {
  right: 0;
  bottom: 45%;
  transform: scale(-1);
  border-radius: 0 4px 4px 0;
  writing-mode: vertical-rl;
  padding: 12px 10px;
}

.mac-widget-btn.r span {
  align-items: baseline;
}

.mac-widget-btn.r .mac-btn-icon {
  rotate: 90deg;
  margin-bottom: 7px;
  margin-right: 0;
}

.mac-widget-btn.l {
  left: 0;
  bottom: 45%;
  transform: scale(1);
  border-radius: 0 4px 4px 0;
  writing-mode: vertical-lr;
  padding: 12px 10px;
}

.mac-widget-btn.l span {
  align-items: baseline;
}

.mac-widget-btn.l .mac-btn-icon {
  margin-bottom: 7px;
  margin-right: 0;
  rotate: 90deg;
}

.mac-widget-btn.t {
  top: 0;
  border-radius: 0 0 4px 4px;
}

.mac-widget-btn.b {
  bottom: 0;
  border-radius: 4px 4px 0 0;
}

.mac-widget-btn.tr {
  right: 20px;
  top: 20px;
  border-radius: 4px;
}

.mac-widget-btn.tl {
  left: 20px;
  top: 20px;
  border-radius: 4px;
}

.mac-widget-btn.br {
  right: 20px;
  bottom: 20px;
  border-radius: 4px;
}

.mac-widget-btn.bl {
  left: 20px;
  bottom: 20px;
  border-radius: 4px;
}

.mac-modal-layer {
  position: fixed;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.mac-modal {
  z-index: 1010;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
}

.mac-modal iframe {
  height: 100%;
}

.mac-cancel-btn {
  height: 32px;
  width: 32px;
  background: url('./cross.svg') no-repeat rgba(0, 0, 0, 0) center center;
  background-size: contain;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 50%;
}

.mac-widget-btn:before {
  --opacity: 0.2;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  content: "";
  opacity: var(--opacity);
  position: absolute;
  top: 30px;
  transform: translate(-50%, -50%) scale(0);
  width: 8%;
  z-index: -1;
  -webkit-animation: enlarge 2s forwards infinite;
  animation: enlarge 2s forwards infinite;
}

.mac-widget-btn.sticky:before {
  --opacity: 0.2;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  content: "";
  left: 50%;
  opacity: var(--opacity);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  z-index: -1;
  -webkit-animation: enlarge 2s forwards infinite;
  animation: enlarge 2s forwards infinite;
}
.mac-widget-btn.sticky.r:before, .mac-widget-btn.sticky.l:before {
  width: 200%;
}

@-webkit-keyframes enlarge {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
  }
}
@keyframes enlarge {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
  }
}
