/* Floating Ads - includes variables for close button insets */
.ffa-corner-ad {
  position: fixed;
  margin: 0;
  padding: 0;
  background: transparent;
  z-index: var(--ffa-z, 999999);
  width: var(--ffa-w, 300px);
  height: var(--ffa-h, 250px);
  box-sizing: border-box;
  overflow: hidden;
  border-radius: var(--ffa-radius, 0px);
}

.ffa-top-left     { top: var(--ffa-y, 12px); left:  var(--ffa-x, 12px); }
.ffa-top-right    { top: var(--ffa-y, 12px); right: var(--ffa-x, 12px); }
.ffa-bottom-left  { bottom: var(--ffa-y, 12px); left:  var(--ffa-x, 12px); }
.ffa-bottom-right { bottom: var(--ffa-y, 12px); right: var(--ffa-x, 12px); }

.ffa-shadow {
  box-shadow: 0 10px 20px rgba(0,0,0,0.15), 0 6px 6px rgba(0,0,0,0.12);
}

.ffa-close {
  position: absolute;
  top: var(--ffa-close-y, 8px);
  right: var(--ffa-close-x, 8px);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  z-index: calc(var(--ffa-z, 999999) + 1);
}

.ffa-close:hover { background: rgba(0,0,0,0.85); }

@media (max-width: 640px) {
  .ffa-corner-ad {
    width: var(--ffa-mw, 240px);
    height: var(--ffa-mh, 135px);
  }
}
