/* hide permalink */
.hide-if-no-js {
  display: none;
}

/* panorama shortcode */
.panorama_shortcode {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding-left: 10px;

  .shortcode_copy {
    display: inline-block;
    padding: 6px 10px;
    font-family: monospace;
    font-size: 13px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.15s ease;

    &:hover {
      background-color: #f0f0f1;
      border-color: #2271b1;
    }
  }

  .shortcode_desc {
    font-size: 16px;
    font-weight: bold;
    color: #646970;
  }

  .bppiv-embed-btn {
    padding: 6px 12px;
    border: 1px solid #2271b1;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
  }

}

/* panorama embed url modal */
.bppiv-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);

  .bppiv-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 500px;
    border-radius: 6px;
    position: relative;

    .bppiv-close {
      position: absolute;
      right: 10px;
      top: 10px;
      font-size: 20px;
      cursor: pointer;
      cursor: pointer;
      background: #ccc;
      padding: 4px 7px 7px;
      border-radius: 5px;
    }

    textarea {
      width: 100%;
      font-family: monospace;
    }

    .bppiv-embed-note {

      background: #f0f8ff;
      border-left: 4px solid #2271b1;
      padding: 8px 10px;
      margin-top: 8px;
      color: #1a3e6f;
      border-radius: 4px;

      code {
        background: #f6f7f7;
        padding: 2px 5px;
        border-radius: 3px;
        border: 1px solid #dcdcde;
      }
    }



    .bppiv-copy-embed-btn {
      padding: 6px 12px;
      border: 1px solid #2271b1;
      background: #2271b1;
      color: #fff;
      border-radius: 4px;
      cursor: pointer;
      margin-top: 5px;

      &:hover {
        background-color: #0960a7;
        border-color: #2271b1;
      }
    }
  }
}

.bppiv-save-note {
  background: #f0f8ff;
  border-left: 4px solid #2271b1;
  padding: 8px 10px;
  margin-top: 8px;
  color: #1a3e6f;
  border-radius: 4px;
}

/* Style the Configuration section split separator when viewing other tabs */
.csf-content .csf-section.csf-section-split {
  border-bottom: 2px solid #f0f3f5 !important;
  padding-bottom: 20px !important;
  margin-bottom: 20px !important;
}

/* Helper class to dynamically hide secondary fields in Configuration section */
.bppiv-hide-field {
  display: none !important;
}