.ai1wpsa-fix-sticky {
  &.sticky {
    position: fixed !important;
    width: 100% !important;
  }
}

.customize-partial-edit-shortcuts-shown.wp-theme-astra {
  .ai1wpsa-fix-sticky {
    &.sticky {
      display: block;
    }
  }
}

.ai1wpsa-social-icons {
  position: fixed;
  top: 50%;
  right: 0;
  -webkit-transform: translateY(-50%) !important;
  -ms-transform: translateY(-50%) !important;
  transform: translateY(-50%) !important;
  background: var(--aiwpsa-sticky-social-icon-menu-bg-color, #004bcb);
  padding: 5px;

  &.left {
    left: 0 !important;
    right: auto !important;
  }

  // "Bottom" is a Premium-only position — its styling lives in the
  // Premium add-on's own stylesheet (see StickySocial module), loaded
  // only when that position is actually in use.

  ul {
    list-style: none;
    margin: 0;
    padding: 0;

    li {
      padding: 5px;
      background: var(--aiwpsa-sticky-social-icon-bg-color, #000);
      margin-bottom: 5px;
      border-radius: var(--aiwpsa-sticky-social-icon-style, 0);
      width: 35px;
      height: 35px;
      transition: all 0.3s ease-in-out;
      text-align: center;

      &:last-child {
        margin-bottom: 0;
      }

      &:hover {
        background: var(--aiwpsa-sticky-social-icon-bg-hover-color, #fff);

        a {
          i {
            color: var(--aiwpsa-sticky-social-icon-hover-color, #000);
          }
        }
      }

      a {
        text-decoration: none;

        i {
          color: var(--aiwpsa-sticky-social-icon-color, #fff);
          font-size: 25px;
          line-height: 1;
          width: 25px;
          height: 25px;
          transition: all 0.3s ease-in-out;

          &:hover {
            color: var(--aiwpsa-sticky-social-icon-hover-color, #000);
          }
        }
      }
    }
  }
}

// Floating/Modal-specific presentation (overlay backdrop, scroll lock,
// &--floating / &--modal modifiers) lives in the Premium add-on's own
// stylesheet — the free plugin only ever renders the "long" layout below.

.ai1wpsa-cookie-consent {
  position: fixed;
  background: var(--ai1wpsa-cookie-consent-bg-color, #fff);
  padding: 15px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: flex;
  align-items: center;

  // ─── Long Banner: full-width bar flush against the bottom edge ───
  &--long {
    bottom: 0;
    left: 0;
    right: 0;
    bottom: 30px;
    margin: 0 auto;
    width: 70%;
    max-width: 90%;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);

    @media (max-width: 767px) {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
  }

  &-message {
    flex: 1;
    color: var(--ai1wpsa-cookie-consent-text-color, #5c637e);
    font-size: var(--ai1wpsa-cookie-consent-font-size, 16px);
    font-weight: 400;
    line-height: 150%;
  }

  &-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  &-button {
    background: var(--ai1wpsa-cookie-consent-accept-btn-bg, #004bcb);
    border: 1px solid var(--ai1wpsa-cookie-consent-accept-btn-bg, #004bcb);
    color: var(--ai1wpsa-cookie-consent-accept-text-color, #fff);
    padding: 8px 15px;
    margin: 0;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-weight: 400;
    font-size: 16px;

    &:hover {
      opacity: 0.9;
    }

    &.accept {
      &:hover {
        background: var(--ai1wpsa-cookie-consent-accept-btn-bg, #003bb8);
        border-color: var(--ai1wpsa-cookie-consent-accept-btn-bg, #003bb8);
        color: var(--ai1wpsa-cookie-consent-accept-text-color, #fff);
      }
    }

    &.reject {
      background: var(--ai1wpsa-cookie-consent-reject-btn-bg, #ffffff00);
      border-color: var(--ai1wpsa-cookie-consent-reject-btn-bg, #000);
      color: var(--ai1wpsa-cookie-consent-reject-text-color, #000);
    }
  }

  .close-button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-self: center;
    position: absolute;
    top: -12px;
    right: -12px;

    i {
      color: #000;
      font-size: 16px;
      line-height: 1;
      width: 16px;
      height: 16px;
    }
  }
}

.ai1wpsa-fix-sticky-widget {
  position: fixed;
  top: 100px;
  max-width: 100%;
  display: inline-block;
}